admin-vben/index.html

162 lines
4.0 KiB
HTML
Raw Normal View History

2023-03-18 13:10:54 +00:00
<!DOCTYPE html>
2023-04-14 07:44:24 +00:00
<html lang="en" id="htmlRoot">
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-08-06 16:10:29 +00:00
<meta
name="viewport"
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
/>
2023-04-14 07:44:24 +00:00
<title>%VITE_GLOB_APP_TITLE%</title>
2023-03-18 13:10:54 +00:00
<link rel="icon" href="/favicon.ico" />
</head>
<body>
2023-04-14 07:44:24 +00:00
<script>
(() => {
2023-07-29 10:46:43 +00:00
let htmlRoot = document.getElementById('htmlRoot')
let theme = window.localStorage.getItem('__APP__DARK__MODE__')
2023-04-14 07:44:24 +00:00
if (htmlRoot && theme) {
2023-07-29 10:46:43 +00:00
htmlRoot.setAttribute('data-theme', theme)
theme = htmlRoot = null
2023-04-14 07:44:24 +00:00
}
2023-07-29 10:46:43 +00:00
})()
2023-04-14 07:44:24 +00:00
</script>
2023-03-18 13:10:54 +00:00
<div id="app">
<style>
2023-09-13 07:03:32 +00:00
html[data-theme="dark"] {
.app-loading {
background-color: #2c344a;
2023-03-18 13:10:54 +00:00
2023-09-13 07:03:32 +00:00
.app-loading-title {
color: rgb(255 255 255 / 85%);
}
}
2023-03-18 13:10:54 +00:00
}
2023-04-14 07:44:24 +00:00
.app-loading {
2023-03-18 13:10:54 +00:00
display: flex;
2023-04-14 07:44:24 +00:00
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #f4f7f9;
}
.app-loading .app-loading-wrap {
position: absolute;
2023-03-18 13:10:54 +00:00
top: 50%;
left: 50%;
2023-04-14 07:44:24 +00:00
display: flex;
2023-04-14 07:38:15 +00:00
transform: translate3d(-50%, -50%, 0);
2023-04-14 07:44:24 +00:00
justify-content: center;
align-items: center;
flex-direction: column;
2023-03-18 13:10:54 +00:00
}
2023-04-14 07:44:24 +00:00
.app-loading .dots {
display: flex;
padding: 98px;
justify-content: center;
align-items: center;
2023-03-18 13:10:54 +00:00
}
2023-04-14 07:44:24 +00:00
.app-loading .app-loading-title {
2023-03-18 13:10:54 +00:00
display: flex;
margin-top: 30px;
2023-04-14 07:38:15 +00:00
font-size: 30px;
2023-04-14 07:44:24 +00:00
color: rgb(0 0 0 / 85%);
justify-content: center;
align-items: center;
2023-03-18 13:10:54 +00:00
}
2023-04-14 07:44:24 +00:00
.app-loading .app-loading-logo {
display: block;
width: 90px;
2023-08-06 16:10:29 +00:00
margin: 0 auto;
margin-bottom: 20px;
2023-04-14 07:44:24 +00:00
}
.dot {
2023-04-14 07:38:15 +00:00
position: relative;
2023-04-14 07:44:24 +00:00
display: inline-block;
2023-03-18 13:10:54 +00:00
width: 48px;
height: 48px;
margin-top: 30px;
2023-04-14 07:38:15 +00:00
font-size: 32px;
2023-04-14 07:44:24 +00:00
transform: rotate(45deg);
box-sizing: border-box;
animation: antRotate 1.2s infinite linear;
2023-03-18 13:10:54 +00:00
}
2023-04-14 07:44:24 +00:00
.dot i {
2023-04-14 07:38:15 +00:00
position: absolute;
2023-04-14 07:44:24 +00:00
display: block;
2023-03-18 13:10:54 +00:00
width: 20px;
height: 20px;
2023-04-14 07:44:24 +00:00
background-color: #0065cc;
border-radius: 100%;
opacity: 30%;
2023-03-18 13:10:54 +00:00
transform: scale(0.75);
2023-04-14 07:44:24 +00:00
animation: antSpinMove 1s infinite linear alternate;
2023-03-18 13:10:54 +00:00
transform-origin: 50% 50%;
}
2023-04-14 07:44:24 +00:00
.dot i:nth-child(1) {
2023-03-18 13:10:54 +00:00
top: 0;
left: 0;
}
2023-04-14 07:44:24 +00:00
.dot i:nth-child(2) {
2023-03-18 13:10:54 +00:00
top: 0;
right: 0;
animation-delay: 0.4s;
}
2023-04-14 07:44:24 +00:00
.dot i:nth-child(3) {
2023-03-18 13:10:54 +00:00
right: 0;
bottom: 0;
animation-delay: 0.8s;
}
2023-04-14 07:44:24 +00:00
.dot i:nth-child(4) {
2023-03-18 13:10:54 +00:00
bottom: 0;
left: 0;
animation-delay: 1.2s;
}
2023-04-14 07:44:24 +00:00
@keyframes antRotate {
2023-03-18 13:10:54 +00:00
to {
transform: rotate(405deg);
}
}
2023-04-14 07:44:24 +00:00
@keyframes antRotate {
2023-03-18 13:10:54 +00:00
to {
transform: rotate(405deg);
}
}
2023-04-14 07:44:24 +00:00
@keyframes antSpinMove {
2023-03-18 13:10:54 +00:00
to {
2023-04-14 07:44:24 +00:00
opacity: 100%;
2023-03-18 13:10:54 +00:00
}
}
2023-04-14 07:44:24 +00:00
@keyframes antSpinMove {
2023-03-18 13:10:54 +00:00
to {
2023-04-14 07:44:24 +00:00
opacity: 100%;
2023-03-18 13:10:54 +00:00
}
}
</style>
2023-04-14 07:44:24 +00:00
<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>
2023-03-18 13:10:54 +00:00
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>