-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (70 loc) · 1.91 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
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>eyeOS</title>
<style>
#loading {
width: 100vw;
height: 100vh;
transition: all 1s;
background-color: #c8ff33;
position: fixed;
top: 0;
left: 0;
z-index: 9999;
background-image: url("Loading.png");
background-position: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 24px;
font-family: "JetBrainsMono Nerd Font", "Noto Sans JP", monospace;
}
#spinner {
width: 100px;
height: 100px;
margin: 200px auto;
background-color: #ff33b7;
border-radius: 100%;
animation: sk-scaleout 1s infinite ease-in-out forwards;
}
.loaded {
opacity: 0;
visibility: hidden;
}
/* ローディングアニメーション */
@keyframes sk-scaleout {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
opacity: 0;
}
}
</style>
</head>
<body>
<div id="loading">
<div id="spinner"></div>
<div style="color: white; font-size: 48px">Starting eyeOS</div>
<div style="color: gray; font-size: 32px">@eyemono.moe</div>
</div>
<div id="root"></div>
<script>
window.addEventListener("load", () => {
const loading = document.getElementById("loading");
const spinner = document.getElementById("spinner");
spinner.style.animationIterationCount = 1;
setTimeout(() => {
loading.classList.add("loaded");
}, 1000);
});
</script>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>