-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (71 loc) · 1.77 KB
/
index.html
File metadata and controls
81 lines (71 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>萤火笔记</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
<style>
/* 初始化 Loading 样式 */
body {
margin: 0;
}
#app {
min-height: 100vh;
}
.init-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
box-sizing: border-box;
background: #1a1a1a;
color: #888;
font-family: 'Noto Sans SC', sans-serif;
}
.init-loading .spinner {
width: 40px;
height: 40px;
border: 3px solid #333;
border-top-color: #f59e0b;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.init-loading .text {
margin-top: 16px;
font-size: 14px;
letter-spacing: 1px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* 亮色模式 */
@media (prefers-color-scheme: light) {
.init-loading {
background: #fafafa;
color: #666;
}
.init-loading .spinner {
border-color: #e5e5e5;
border-top-color: #f59e0b;
}
}
</style>
</head>
<body>
<div id="app">
<div class="init-loading">
<div class="spinner"></div>
<div class="text">正在加载...</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>