-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (108 loc) · 2.9 KB
/
index.html
File metadata and controls
108 lines (108 loc) · 2.9 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="white" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#121212" />
<meta name="darkreader-lock" />
<meta name="color-scheme" content="dark light" />
<style>
html {
background-color: light-dark(white, #121212);
}
#app {
transition: opacity 0.15s;
}
#loading {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
height: 4px;
width: 200px;
background-color: light-dark(#dedede, #333);
border-radius: 2px;
overflow: hidden;
animation: l-enter 1s linear;
}
#loading::before {
content: '';
position: absolute;
background: var(--thumb-color);
inset-block-start: 0;
inset-inline-start: 0;
inset-block-end: 0;
will-change: inset-inline-start, inset-inline-end;
animation: l-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395)
infinite;
animation-delay: 1.3s;
}
#loading::after {
content: '';
position: absolute;
background: var(--thumb-color);
inset-block-start: 0;
inset-inline-start: 0;
inset-block-end: 0;
will-change: inset-inline-start, inset-inline-end;
animation: l-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1)
infinite;
animation-delay: 2.45s;
}
@keyframes l-enter {
0%,
85% {
opacity: 0;
}
}
@keyframes l-progressbar-indeterminate-anim {
0% {
inset-inline-start: -35%;
inset-inline-end: 100%;
}
60% {
inset-inline-start: 100%;
inset-inline-end: -90%;
}
100% {
inset-inline-start: 100%;
inset-inline-end: -90%;
}
}
@keyframes l-progressbar-indeterminate-anim-short {
0% {
inset-inline-start: -200%;
inset-inline-end: 100%;
}
60% {
inset-inline-start: 107%;
inset-inline-end: -8%;
}
100% {
inset-inline-start: 107%;
inset-inline-end: -8%;
}
}
</style>
<link
rel="icon"
type="image/svg+xml"
href="/favicons/favicon-light.svg"
media="(prefers-color-scheme: light)"
/>
<link
rel="icon"
type="image/svg+xml"
href="/favicons/favicon-dark.svg"
media="(prefers-color-scheme: dark)"
/>
</head>
<body>
<div id="app" style="opacity: 0"></div>
<div id="loading"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>