-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
141 lines (115 loc) · 3.18 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="./src/assets/favicon.ico" />
<meta name="viewport" content="width=device-width, maximum-scale=2, user-scalable=yes" />
<title>FreeDi App</title>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("/firebase-messaging-sw.js")
.then((registration) => {
registration.addEventListener("updatefound", () => {
// If update found is fired, it means that there's
// a new service worker being installed.
const installingWorker = registration.installing;
// You can listen for changes to the installing service worker's
// state via installingWorker.onstatechange
});
});
}
</script>
</head>
<style>
body {
overflow: hidden;
}
.loaderBox {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.loader {
transform: rotateZ(45deg);
border-radius: 50%;
width: 48px;
height: 48px;
color: navy;
}
.loader:before,
.loader:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: inherit;
height: inherit;
border-radius: 50%;
transform: rotateX(70deg);
animation: 1s spin linear infinite;
}
.loader:after {
color: #ff3d00;
transform: rotateY(70deg);
animation-delay: 0.4s;
}
@keyframes rotate {
0% {
transform: translate(-50%, -50%) rotateZ(0deg);
}
100% {
transform: translate(-50%, -50%) rotateZ(360deg);
}
}
@keyframes rotateccw {
0% {
transform: translate(-50%, -50%) rotate(0deg);
}
100% {
transform: translate(-50%, -50%) rotate(-360deg);
}
}
@keyframes spin {
0%,
100% {
box-shadow: 0.2em 0px 0 0px currentcolor;
}
12% {
box-shadow: 0.2em 0.2em 0 0 currentcolor;
}
25% {
box-shadow: 0 0.2em 0 0px currentcolor;
}
37% {
box-shadow: -0.2em 0.2em 0 0 currentcolor;
}
50% {
box-shadow: -0.2em 0 0 0 currentcolor;
}
62% {
box-shadow: -0.2em -0.2em 0 0 currentcolor;
}
75% {
box-shadow: 0px -0.2em 0 0 currentcolor;
}
87% {
box-shadow: 0.2em -0.2em 0 0 currentcolor;
}
}
</style>
<body>
<div id="root">
<div class="loaderBox">
<h1>Welcome to FreeDi app</h1>
<h4>Sit back and relax we are setting things up for you</h4>
<span class="loader"></span>
</div>
</div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>