-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (59 loc) · 1.88 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>数字生命</title>
<link rel="icon" href="/favicon.ico" />
<script defer type="module" src="./src/main.tsx"></script>
</head>
<body style="overflow: hidden;">
<style id="loading-style">
#loading-content {
display: flex;
justify-content: center;
align-items: center;
width: 100dvw;
height: 100dvh;
position: fixed;
top: 0;
left: 0;
background-color: white;
z-index: 99999;
}
#loading-animation {
display: inline-block;
width: 1em;
height: 1em;
border-radius: 50%;
border: 0.1em solid currentColor;
border-top-color: transparent;
animation: loading 0.6s infinite linear;
margin-left: 0.3rem;
}
@keyframes loading {
to {
transform: rotate(1turn);
}
}
</style>
<div id="loading-content">
<span style="font-size: 1.2rem;">加载中</span>
<span id="loading-animation"></span>
</div>
<script id="loading-script">
window.onload = () => {
const loadingStyle = document.getElementById('loading-style')
const loadingContent = document.getElementById('loading-content')
const loadingScript = document.getElementById('loading-script')
loadingStyle?.remove()
loadingContent?.remove()
loadingScript?.remove()
}
</script>
<div style="width: calc(100dvw - 450px); height: 100dvh; position: fixed; top: 0; right: 0; z-index: -1000;">
<img id="back" src="/back.png" alt="background" style="width: 100%; height: 100%; object-fit: cover; object-position: center;" />
</div>
<div id="root"></div>
</body>
</html>