-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (75 loc) · 2.26 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
<!DOCTYPE html>
<html lang="en">
<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>超の空间斩</title>
<style>
.breath-of-the-wild {
position: relative;
width: 12px;
height: 12px;
border-radius: 50%;
animation: breath 2s cubic-bezier(0.4, 0, 0.2, 1) 2s infinite ;
background: rgba(233, 0, 0, 0.2);
}
.breath-of-the-wild::after {
content: '';
display: block;
width: 50%;
height: 50%;
border-radius: 50%;
transform: translate(50%, 50%);
background: red;
}
.breath-of-the-wild-online {
position: relative;
width: 12px;
height: 12px;
border-radius: 50%;
animation: breathonline 2s cubic-bezier(0.4, 0, 0.2, 1) 2s infinite ;
background: rgba(87, 190, 43, 0.2);
}
.breath-of-the-wild-online::after {
content: '';
display: block;
width: 50%;
height: 50%;
border-radius: 50%;
transform: translate(50%, 50%);
background: rgba(87, 190, 43, 1);
}
@keyframes breath {
0% { background: rgba(233, 0, 0, 0.2); }
70% { background: rgba(233, 0, 0, .8); }
100% { background: rgba(233, 0, 0, .1); }
}
@keyframes breathonline {
0% { background: rgba(87, 190, 43, 0.2); }
70% { background: rgba(87, 190, 43, .8); }
100% { background: rgba(87, 190, 43, .1); }
}
.
</style>
</head>
<body class="transition-color duration-300">
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<script>
(function () {
if (!window.localStorage) return;
const theme = window.localStorage.getItem("theme");
const systemTheme = window.matchMedia("(prefers-color-scheme: dark)")
.matches
? "dark"
: "";
if (theme === "dark") {
document.documentElement.classList.add("dark");
} else if (systemTheme === "dark") {
document.documentElement.classList.add("dark");
}
})();
</script>
</body>
</html>