You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

160 lines
4.0 KiB

2 years ago
<!DOCTYPE html>
2 years ago
<html lang="en" id="htmlRoot">
2 years ago
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
2 years ago
<meta
name="viewport"
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
2 years ago
<title>%VITE_GLOB_APP_TITLE%</title>
2 years ago
<link rel="icon" href="/favicon.ico" />
</head>
<body>
2 years ago
<script>
(() => {
let htmlRoot = document.getElementById('htmlRoot')
let theme = window.localStorage.getItem('__APP__DARK__MODE__')
2 years ago
if (htmlRoot && theme) {
htmlRoot.setAttribute('data-theme', theme)
theme = htmlRoot = null
2 years ago
}
})()
2 years ago
</script>
2 years ago
<div id="app">
<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%);
}
2 years ago
.app-loading {
2 years ago
display: flex;
2 years ago
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #f4f7f9;
}
.app-loading .app-loading-wrap {
position: absolute;
2 years ago
top: 50%;
left: 50%;
2 years ago
display: flex;
2 years ago
transform: translate3d(-50%, -50%, 0);
2 years ago
justify-content: center;
align-items: center;
flex-direction: column;
2 years ago
}
2 years ago
.app-loading .dots {
display: flex;
padding: 98px;
justify-content: center;
align-items: center;
2 years ago
}
2 years ago
.app-loading .app-loading-title {
2 years ago
display: flex;
margin-top: 30px;
2 years ago
font-size: 30px;
2 years ago
color: rgb(0 0 0 / 85%);
justify-content: center;
align-items: center;
2 years ago
}
2 years ago
.app-loading .app-loading-logo {
display: block;
width: 90px;
2 years ago
margin: 0 auto;
margin-bottom: 20px;
2 years ago
}
.dot {
2 years ago
position: relative;
2 years ago
display: inline-block;
2 years ago
width: 48px;
height: 48px;
margin-top: 30px;
2 years ago
font-size: 32px;
2 years ago
transform: rotate(45deg);
box-sizing: border-box;
animation: antRotate 1.2s infinite linear;
2 years ago
}
2 years ago
.dot i {
2 years ago
position: absolute;
2 years ago
display: block;
2 years ago
width: 20px;
height: 20px;
2 years ago
background-color: #0065cc;
border-radius: 100%;
opacity: 30%;
2 years ago
transform: scale(0.75);
2 years ago
animation: antSpinMove 1s infinite linear alternate;
2 years ago
transform-origin: 50% 50%;
}
2 years ago
.dot i:nth-child(1) {
2 years ago
top: 0;
left: 0;
}
2 years ago
.dot i:nth-child(2) {
2 years ago
top: 0;
right: 0;
animation-delay: 0.4s;
}
2 years ago
.dot i:nth-child(3) {
2 years ago
right: 0;
bottom: 0;
animation-delay: 0.8s;
}
2 years ago
.dot i:nth-child(4) {
2 years ago
bottom: 0;
left: 0;
animation-delay: 1.2s;
}
2 years ago
@keyframes antRotate {
2 years ago
to {
transform: rotate(405deg);
}
}
2 years ago
@keyframes antRotate {
2 years ago
to {
transform: rotate(405deg);
}
}
2 years ago
@keyframes antSpinMove {
2 years ago
to {
2 years ago
opacity: 100%;
2 years ago
}
}
2 years ago
@keyframes antSpinMove {
2 years ago
to {
2 years ago
opacity: 100%;
2 years ago
}
}
</style>
2 years ago
<div class="app-loading">
<div class="app-loading-wrap">
<img src="/resource/img/logo.png" class="app-loading-logo" alt="Logo" />
<div class="app-loading-dots">
<span class="dot dot-spin"><i></i><i></i><i></i><i></i></span>
</div>
<div class="app-loading-title">%VITE_GLOB_APP_TITLE%</div>
</div>
2 years ago
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>