-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
184 lines (183 loc) · 5.07 KB
/
index.html
File metadata and controls
184 lines (183 loc) · 5.07 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/icon" href="/icons/favicon.ico" />
<link rel="preload" href="/fonts/logo.woff2" as="font" type="font/woff2" crossorigin />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="referrer" content="no-referrer" />
<title>SPlayer Next</title>
<style>
@font-face {
font-family: "logo";
src: url("/fonts/logo.woff2") format("woff2");
font-display: swap;
}
html,
body {
margin: 0;
height: 100%;
}
body {
background: #101014;
}
html.light body {
background: #f6f6f6;
}
#app-loading {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
background: inherit;
color: #e8e8ea;
transition: opacity 0.3s;
}
html.light #app-loading {
color: #1a1a1c;
}
#app-loading.hidden {
opacity: 0;
pointer-events: none;
}
.splash {
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
}
.splash-logo {
width: 72px;
height: 72px;
animation:
splash-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both,
splash-flicker 1.8s ease-in-out 0.5s infinite;
}
.splash-brand {
display: flex;
align-items: center;
gap: 10px;
}
.splash-name {
font-family: "logo", sans-serif;
font-size: 34px;
line-height: 1;
animation: splash-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.splash-next {
width: 98px;
height: 24px;
animation: splash-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}
.splash-next .letter {
stroke: currentColor;
stroke-width: 10;
fill: none;
stroke-linecap: round;
stroke-linejoin: round;
stroke-dasharray: 400;
stroke-dashoffset: 400;
animation: splash-draw 1s ease forwards;
}
.splash-next .letter:nth-child(1) {
animation-delay: 0.2s;
}
.splash-next .letter:nth-child(2) {
animation-delay: 0.45s;
}
.splash-next .letter:nth-child(3) {
animation-delay: 0.7s;
}
.splash-next .letter:nth-child(4) {
animation-delay: 0.95s;
}
.splash-footer {
position: absolute;
left: 0;
right: 0;
bottom: 32px;
text-align: center;
font-size: 12px;
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
"Microsoft YaHei", sans-serif;
animation: splash-rise-footer 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both;
}
@keyframes splash-rise {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes splash-rise-footer {
from {
opacity: 0;
transform: translateY(12px);
}
to {
opacity: 0.4;
transform: translateY(0);
}
}
@keyframes splash-flicker {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
@keyframes splash-draw {
to {
stroke-dashoffset: 0;
}
}
</style>
<script>
// 确定明暗模式
(function () {
let mode = "system";
try {
const raw = localStorage.getItem("theme");
if (raw) mode = JSON.parse(raw).mode || "system";
} catch (e) {}
const isDark =
mode === "dark" ||
(mode === "system" && window.matchMedia("(prefers-color-scheme: dark)").matches);
if (!isDark) document.documentElement.classList.add("light");
})();
</script>
</head>
<body>
<div id="app-loading">
<div class="splash">
<img src="/icons/logo.svg" alt="SPlayer" class="splash-logo" />
<div class="splash-brand">
<span class="splash-name">SPlayer</span>
<svg class="splash-next" viewBox="15 15 450 110" aria-hidden="true">
<path d="M20 120 L20 20 L100 120 L100 20" class="letter" />
<path
d="M140 20 L140 120 M140 20 L220 20 M140 70 L200 70 M140 120 L220 120"
class="letter"
/>
<path d="M260 20 L340 120 M340 20 L260 120" class="letter" />
<path d="M380 20 L460 20 M420 20 L420 120" class="letter" />
</svg>
</div>
</div>
<div class="splash-footer">SPlayer Next · © 2026 imsyy</div>
</div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>