-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (59 loc) · 1.78 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>IMGC</title>
<style>
.dark-bg {
background-color: #18181b;
}
.light-bg {
background-color: #f1f5f9;
}
</style>
</head>
<body>
<div id="preloader"
style="z-index: 1; position: absolute; width: 100%; height: 100%; display: grid; place-items: center; top: 0; left: 0;">
<svg width="80" height="80" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#ccc">
<style>
.spinner_a {
animation: spinner_keyframe .8s linear infinite;
animation-delay: -.8s
}
.spinner_b {
animation-delay: -.65s
}
.spinner_c {
animation-delay: -.5s
}
@keyframes spinner_keyframe {
93.75%,
100% {
opacity: .2
}
}
</style>
<circle class="spinner_a" cx="4" cy="12" r="3" />
<circle class="spinner_a spinner_b" cx="12" cy="12" r="3" />
<circle class="spinner_a spinner_c" cx="20" cy="12" r="3" />
</svg>
</div>
<script>
if (
localStorage.getItem('isDarkMode') === 'true' ||
(localStorage.getItem('isDarkMode') === null && window.matchMedia(`(prefers-color-scheme: dark)`).matches)
) {
document.getElementsByTagName('body')[0].className = 'dark-bg';
document.getElementById('preloader').className = 'dark-bg';
} else {
document.getElementsByTagName('body')[0].className = 'light-bg';
document.getElementById('preloader').className = 'light-bg';
document.querySelector('svg').style.fill = '#6b7280';
}
</script>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>