-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
49 lines (48 loc) · 1.38 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/ai.png" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>聊天助手</title>
<style>
.loading-container {
width: 100%;
height: 100%;
position:fixed;
top: 0;
left: 0;
z-index: 999;
background-color: whitesmoke;
transition: 0.2s ease-in;
transition-property: background-color;
}
.progress {
width: 120px;
height: 20px;
-webkit-mask: linear-gradient(90deg,#13227a 70%,#0000 0) 0/20%;
background: linear-gradient(#13227a 0 0) 0/0% no-repeat #ddd;
animation: p4 2s infinite steps(6);
}
@keyframes p4 {
100% { background-size: 120% }
}
.spinner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div id="root">
<!-- 防止首次加载是出现长时间白屏 -->
<div class="loading-container">
<div class="progress spinner"></div>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>