-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (142 loc) · 4.54 KB
/
index.html
File metadata and controls
160 lines (142 loc) · 4.54 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="zh-CN" data-theme="mytheme">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/tauri.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tips</title>
<!-- Remix Icon -->
<link href="https://cdn.jsdelivr.net/npm/remixicon@4.5.0/fonts/remixicon.css" rel="stylesheet" />
<style>
/* 关键样式 - 确保立即显示 */
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* 防止白屏的基础样式 */
html, body {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
overflow: hidden;
}
@media (prefers-color-scheme: dark) {
html, body {
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}
}
#app {
display: none;
}
#app.loaded {
display: block;
}
/* 加载屏幕样式 */
#loading-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}
#loading-screen.hidden {
opacity: 0;
visibility: hidden;
}
.loading-logo {
width: 80px;
height: 80px;
margin-bottom: 30px;
animation: pulse 2s ease-in-out infinite;
}
.loading-title {
color: white;
font-size: 28px;
font-weight: 600;
margin-bottom: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.loading-subtitle {
color: rgba(255, 255, 255, 0.8);
font-size: 16px;
margin-bottom: 40px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-top: 3px solid white;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 20px;
}
.loading-progress {
width: 200px;
height: 4px;
background: rgba(255, 255, 255, 0.2);
border-radius: 2px;
overflow: hidden;
margin-bottom: 15px;
}
.loading-progress-bar {
height: 100%;
background: white;
border-radius: 2px;
width: 0%;
animation: progress 3s ease-in-out infinite;
}
.loading-status {
color: rgba(255, 255, 255, 0.9);
font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
text-align: center;
min-height: 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes progress {
0% { width: 0%; }
50% { width: 70%; }
100% { width: 100%; }
}
/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
#loading-screen {
background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}
}
</style>
</head>
<body>
<!-- 加载屏幕 -->
<div id="loading-screen">
<svg class="loading-logo" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12 2L2 7L12 12L22 7L12 2Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
<path d="M2 17L12 22L22 17" stroke="white" stroke-width="2" stroke-linejoin="round"/>
<path d="M2 12L12 17L22 12" stroke="white" stroke-width="2" stroke-linejoin="round"/>
</svg>
<div class="loading-title">mytips</div>
<div class="loading-subtitle">智能笔记管理工具</div>
<div class="loading-spinner"></div>
<div class="loading-progress">
<div class="loading-progress-bar"></div>
</div>
<div class="loading-status" id="loading-status">正在初始化应用...</div>
</div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>