index.html
2.06 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
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="智能网联监管平台 · 风险热力图" />
<!-- 内联 favicon:不引外部文件,省掉 dev / 部署时对 /favicon.ico 的 404 请求 -->
<link
rel="icon"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%234655a2'/%3E%3Ccircle cx='16' cy='16' r='7' fill='%23ff7a45'/%3E%3C/svg%3E"
/>
<title>智能网联监管平台 · 风险热力图</title>
<!--
内联加载占位:dev 冷启动(重启后)首屏模块还没 ready 时,浏览器会白着等。
这段 HTML+内联样式在首字节解析后立刻绘制一个「加载中」占位,React 挂载后
会替换掉 #root 的内容,所以不会影响正常运行。至少把白屏变成可见的等待。
-->
<style>
#hm-splash {
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18px;
background: #0e1116;
color: #c7ced9;
font: 14px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#hm-splash__ring {
width: 42px;
height: 42px;
border: 3px solid rgba(255, 255, 255, 0.15);
border-top-color: #ff7a45;
border-radius: 50%;
animation: hm-spin 0.9s linear infinite;
}
@keyframes hm-spin {
to {
transform: rotate(360deg);
}
}
#hm-splash__txt {
letter-spacing: 0.05em;
opacity: 0.85;
}
</style>
</head>
<body>
<div id="root">
<div id="hm-splash">
<div id="hm-splash__ring"></div>
<div id="hm-splash__txt">智能网联监管平台 · 风险热力图 · 加载中…</div>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>