-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·65 lines (65 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Slot Machine Animation</title>
<style>
:root {
--size: 4.5rem;
}
body {
color: white;
background-color: rgb(31, 41, 55);
height: 80vh;
display: grid;
place-items: center;
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
}
h1 {
font-style: bold;
font-size: var(--size);
line-height: 1;
}
#animation-hero {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.slot {
position: relative;
width: var(--size);
height: var(--size);
margin: 0 1.5rem;
}
.slot-icon {
position: absolute;
width: var(--size);
height: var(--size);
}
.slot-label-wrapper {
position: absolute;
bottom: -34px;
width: 100%;
display: flex;
justify-content: center;
}
.slot-label {
padding: 0.125rem 0.375rem;
background-color: rgba(255, 255, 255, 0.85);
color: black;
font-weight: 600;
font-size: 12px;
border-radius: 0.25rem;
white-space: nowrap;
}
</style>
</head>
<body>
<div id="animation-hero"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>