forked from XiaoDaiGua-Ray/ray-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (96 loc) · 2.7 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/ray.svg" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<title>Vite + Vue + TS</title>
</head>
<style>
:root {
--preloading-tag-color: <%= preloadingConfig.tagColor %>;
--preloading-title-color: <%= preloadingConfig.titleColor %>;
--ray-theme-primary-fade-color: <%= appPrimaryColor.primaryFadeColor %>;
--ray-theme-primary-color: <%= appPrimaryColor.primaryColor %>;
}
#pre-loading-animation {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: #ffffff;
color: var(--preloading-title-color);
text-align: center;
}
.ray-template--dark #pre-loading-animation {
background-color: #2a3146;
}
#pre-loading-animation .pre-loading-animation__wrapper {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#pre-loading-animation
.pre-loading-animation__wrapper
.pre-loading-animation__wrapper-title {
font-size: 32px;
padding-bottom: 48px;
font-weight: 500;
}
.pre-loading-animation__wrapper-loading {
display: block;
position: relative;
width: 6px;
height: 10px;
animation: rectangle infinite 1s ease-in-out -0.2s;
background-color: var(--preloading-tag-color);
}
.pre-loading-animation__wrapper-loading:before,
.pre-loading-animation__wrapper-loading:after {
position: absolute;
width: 6px;
height: 10px;
content: '';
background-color: var(--preloading-tag-color);
}
.pre-loading-animation__wrapper-loading:before {
left: -14px;
animation: rectangle infinite 1s ease-in-out -0.4s;
}
.pre-loading-animation__wrapper-loading:after {
right: -14px;
animation: rectangle infinite 1s ease-in-out;
}
@keyframes rectangle {
0%,
80%,
100% {
height: 20px;
box-shadow: 0 0 var(--preloading-tag-color);
}
40% {
height: 30px;
box-shadow: 0 -20px var(--preloading-tag-color);
}
}
</style>
<body>
<div id="app"></div>
<div id="pre-loading-animation">
<div class="pre-loading-animation__wrapper">
<div class="pre-loading-animation__wrapper-title">
<%= preloadingConfig.title %>
</div>
<div class="pre-loading-animation__wrapper-loading"></div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>