-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
77 lines (72 loc) · 2.05 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- 动态设置网页标题 -->
<title>%VITE_APP_TITLE%</title>
</head>
<body>
<div id="root">
<!-- 白屏阶段会执行的 CSS 加载loading动画 -->
<style>
.app-loading {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.app-loading .app-loading-title {
color: #269af2;
}
.app-loading .app-loading-loader {
--r1: 154%;
--r2: 68.5%;
width: 80px;
background: radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #269af2 80%),
radial-gradient(var(--r1) var(--r2) at bottom, #269af2 79.5%, #0000 80%),
radial-gradient(var(--r1) var(--r2) at top, #0000 79.5%, #269af2 80%), #ccc;
background-position:
-100% 0%,
0% 0%,
100% 0%;
background-repeat: no-repeat;
background-size: 50.5% 220%;
border-radius: 50%;
animation: l9 2s infinite linear;
aspect-ratio: 1;
}
@keyframes l9 {
33% {
background-position:
0% 33%,
100% 33%,
200% 33%;
}
66% {
background-position:
-100% 66%,
0% 66%,
100% 66%;
}
100% {
background-position:
0% 100%,
100% 100%,
200% 100%;
}
}
</style>
<div class="app-loading">
<div class="app-loading-loader"></div>
<h3 class="app-loading-title">%VITE_APP_TITLE%</h3>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>