-
Notifications
You must be signed in to change notification settings - Fork 20
/
index.html
94 lines (88 loc) · 2.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<!-- Facebook Meta Tags -->
<meta property="og:url" content="https://ton.vote/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="TON DAO Vote" />
<meta property="og:description" content="" />
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="TON Dao Vote" />
<meta name="twitter:description" content="" />
<style>
@keyframes glow {
from {
transform: scale(1);
}
to {
transform: scale(1.1);
}
}
.app-loader {
opacity: 0;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 999;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
transition: 0.2s all;
}
.app-loader img {
width: 140px;
height: 140px;
-webkit-animation: glow 1s ease-in-out infinite alternate;
-moz-animation: glow 1s ease-in-out infinite alternate;
animation: glow 1s ease-in-out infinite alternate;
opacity: 0;
transition: 0.2s opacity;
}
.app-loader-dark {
background: #222830;
opacity: 1;
}
.app-loader-light {
background: #f8f9fb;
opacity: 1;
}
</style>
<title>TON Vote</title>
</head>
<body>
<div class="app-loader">
<img src="/logo.png" />
</div>
<script>
setTimeout(() => {
const loader = document.querySelector(".app-loader");
const appSettings = localStorage.getItem("app_settings");
var img = new Image();
img.onload = function () {
loader.querySelector("img").style.opacity = "1";
};
img.src = "/logo.png";
const theme = appSettings
? JSON.parse(appSettings).state.themeMode
: "light";
loader.classList.add(`app-loader-${theme}`);
}, 300);
</script>
<div id="root"></div>
<script type="module" src="./src/polyfills.ts"></script>
<script type="module" src="./src/main.tsx"></script>
</body>
</html>