-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
57 lines (53 loc) · 1.3 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
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>D·D</title>
</head>
<body oncontextmenu="event.preventDefault()">
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
<style>
* {
margin: 0;
padding: 0;
}
body {
height: 100vh;
overflow: hidden;
background-image: linear-gradient(
to right top,
#38438b,
#944b94,
#d75a88,
#ff7e71,
#ffb25f,
#ffeb68
);
font-family: system-ui, -apple-system, Arial, sans-serif;
}
#app {
height: 100%;
background-image: url('wallpaper/Mojave Day.webp');
background-size: cover;
transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark #app {
background-image: url('wallpaper/Mojave Night.webp');
transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 临时解决办法,写在 rules 里面会被转换为 __VITE_PUBLIC_ASSET__ */
.juejin-icon {
mask: url('/tmpIcon/juejin.svg');
-webkit-mask: url('/tmpIcon/juejin.svg');
mask-size: 100% 100%;
-webkit-mask-size: 100% 100%;
background-color: currentColor;
width: 1em;
height: 1em;
}
</style>