2023-03-18 13:10:54 +00:00
|
|
|
<!DOCTYPE html>
|
2023-04-14 07:38:15 +00:00
|
|
|
<html lang="en">
|
2023-03-18 13:10:54 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
|
|
<meta name="renderer" content="webkit" />
|
2023-04-14 07:38:15 +00:00
|
|
|
<meta
|
|
|
|
name="viewport"
|
|
|
|
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
|
|
|
|
/>
|
|
|
|
<!-- 由 vite 注入 VITE_GLOB_APP_TITLE 变量,在 .env 内配置 -->
|
|
|
|
<title><%= VITE_GLOB_APP_TITLE %></title>
|
2023-03-18 13:10:54 +00:00
|
|
|
<link rel="icon" href="/favicon.ico" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="app">
|
2023-04-14 07:38:15 +00:00
|
|
|
<!-- 页面加载后会删除 loading 节点,所以无需担心污染 -->
|
2023-03-18 13:10:54 +00:00
|
|
|
<style>
|
|
|
|
html[data-theme='dark'] .app-loading {
|
|
|
|
background-color: #2c344a;
|
|
|
|
}
|
|
|
|
|
|
|
|
html[data-theme='dark'] .app-loading .app-loading-title {
|
|
|
|
color: rgb(255 255 255 / 85%);
|
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.loading {
|
2023-03-18 13:10:54 +00:00
|
|
|
display: flex;
|
2023-04-14 07:38:15 +00:00
|
|
|
position: fixed;
|
2023-03-18 13:10:54 +00:00
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
flex-direction: column;
|
2023-04-14 07:38:15 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
transform: translate3d(-50%, -50%, 0);
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.logo {
|
|
|
|
display: block;
|
|
|
|
width: 100px;
|
|
|
|
margin: 0 auto;
|
|
|
|
margin-bottom: 10px;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.title {
|
2023-03-18 13:10:54 +00:00
|
|
|
display: flex;
|
2023-04-14 07:38:15 +00:00
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-03-18 13:10:54 +00:00
|
|
|
margin-top: 30px;
|
|
|
|
color: rgb(0 0 0 / 85%);
|
2023-04-14 07:38:15 +00:00
|
|
|
font-size: 30px;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.dots {
|
2023-03-18 13:10:54 +00:00
|
|
|
display: inline-block;
|
2023-04-14 07:38:15 +00:00
|
|
|
position: relative;
|
|
|
|
box-sizing: border-box;
|
2023-03-18 13:10:54 +00:00
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
margin-top: 30px;
|
|
|
|
transform: rotate(45deg);
|
2023-04-14 07:38:15 +00:00
|
|
|
animation: rotate 1s infinite linear;
|
|
|
|
font-size: 32px;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.dots i {
|
2023-03-18 13:10:54 +00:00
|
|
|
display: block;
|
2023-04-14 07:38:15 +00:00
|
|
|
position: absolute;
|
2023-03-18 13:10:54 +00:00
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
transform: scale(0.75);
|
|
|
|
transform-origin: 50% 50%;
|
2023-04-14 07:38:15 +00:00
|
|
|
animation: spin-move 1s infinite linear alternate;
|
|
|
|
border-radius: 100%;
|
|
|
|
opacity: 0.3;
|
|
|
|
background-color: #0065cc;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.dots i:nth-child(1) {
|
2023-03-18 13:10:54 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.dots i:nth-child(2) {
|
2023-03-18 13:10:54 +00:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
animation-delay: 0.4s;
|
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.dots i:nth-child(3) {
|
2023-03-18 13:10:54 +00:00
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
animation-delay: 0.8s;
|
|
|
|
}
|
|
|
|
|
2023-04-14 07:38:15 +00:00
|
|
|
.dots i:nth-child(4) {
|
2023-03-18 13:10:54 +00:00
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
animation-delay: 1.2s;
|
|
|
|
}
|
2023-04-14 07:38:15 +00:00
|
|
|
|
|
|
|
@keyframes rotate {
|
2023-03-18 13:10:54 +00:00
|
|
|
to {
|
|
|
|
transform: rotate(405deg);
|
|
|
|
}
|
|
|
|
}
|
2023-04-14 07:38:15 +00:00
|
|
|
|
|
|
|
@keyframes rotate {
|
2023-03-18 13:10:54 +00:00
|
|
|
to {
|
|
|
|
transform: rotate(405deg);
|
|
|
|
}
|
|
|
|
}
|
2023-04-14 07:38:15 +00:00
|
|
|
|
|
|
|
@keyframes spin-move {
|
2023-03-18 13:10:54 +00:00
|
|
|
to {
|
2023-04-14 07:38:15 +00:00
|
|
|
opacity: 1;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
2023-04-14 07:38:15 +00:00
|
|
|
|
|
|
|
@keyframes spin-move {
|
2023-03-18 13:10:54 +00:00
|
|
|
to {
|
2023-04-14 07:38:15 +00:00
|
|
|
opacity: 1;
|
2023-03-18 13:10:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
2023-04-14 07:38:15 +00:00
|
|
|
<div class="loading">
|
|
|
|
<img src="/resource/img//logo.png" class="logo" alt="Logo" />
|
|
|
|
<span class="dots"><i></i><i></i><i></i><i></i></span>
|
|
|
|
<div class="title"><%= VITE_GLOB_APP_TITLE %></div>
|
2023-03-18 13:10:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="module" src="/src/main.ts"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|