-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (76 loc) · 1.52 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>todoList</title>
<style>
body {
margin: 0;
padding: 0;
width: 100%;
box-sizing: border-box;
}
#app {
width: 100%;
height: 100%;
}
.skeleton {
position: relative;
padding: 2rem;
width: 100%;
height: 100%;
box-sizing: border-box;
background-color: fff;
}
.skeleton div:first-child {
width: 100%;
height: 86px;
background-color: #ddd;
}
.skeleton div:last-child {
margin-top: 1rem;
width: 100%;
height: 10rem;
background-color: #ddd;
}
.skeleton div:first-child::before {
position: absolute;
top: 0;
left: 0;
width: 2rem;
height: 20rem;
content: '';
background-color: #fff;
box-shadow: 0 0 4rem #fff;
animation: skeleton-animation 1s ease-in-out infinite;
}
@keyframes skeleton-animation {
0% {
left: 0;
}
100% {
left: 100%;
}
}
@media (prefers-color-scheme: dark) {
.skeleton {
background-color: #1b1b1b;
}
.skeleton div {
background-color: #f9f9fb;
}
}
</style>
</head>
<body>
<div id="app">
<div class="skeleton">
<div></div>
<div></div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>