-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
126 lines (111 loc) · 2.98 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<script>
(() => {
let htmlRoot = document.documentElement
let theme = window.localStorage.getItem('vueuse-color-scheme')
const hasLoading = window.localStorage.getItem('vp_has_fp_loading')
if (hasLoading === 'false') htmlRoot.classList.add('hide-loading')
if (htmlRoot && theme) {
htmlRoot.setAttribute('data-theme', theme)
theme = htmlRoot = null
}
})()
</script>
<div id="app">
<style>
html, body {
margin: 0;
padding: 0;
}
.hide-loading .fp-loading-container {
display: none;
}
html[data-theme='dark'] .fp-loading-container {
background-color: black;
}
.fp-loading-container {
width: 100vw;
height: 100vh;
}
@keyframes rotate {
to {
transform: rotate(405deg)
}
}
.fp-loading {
width: 300px;
height: 300px;
position:absolute;
top: 45%;
left: 50%;
transform: translate(-50%, -50%);
filter: url(#gooey);
}
.fp-loading span {
position: absolute;
top: 20%;
left: 20%;
width: 60%;
height: 60%;
transform: rotate(45deg);
animation: rotate 2s ease-in-out infinite;
}
.fp-loading span:before{
content: '';
width: 40px;
height: 40px;
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
background: #377dff;
box-shadow: 0 0 30px #377dff;
}
.fp-loading span:nth-child(1){
animation-delay: 0.15s;
}
.fp-loading span:nth-child(2){
animation-delay: 0.3s;
}
.fp-loading span:nth-child(3){
animation-delay: 0.45s;
}
.fp-loading span:nth-child(4){
animation-delay: 0.6s;
}
.fp-loading span:nth-child(5){
animation-delay: 0.75s;
}
.fp-loading span:nth-child(6){
animation-delay: 0.9s;
}
</style>
<div class="fp-loading-container">
<div class="fp-loading">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<svg>
<filter id="gooey">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur"/>
<feColorMatrix in="blur" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -10"/>
</filter>
</svg>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>