-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (61 loc) · 1.55 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="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bungee&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rubik's Cube</title>
<style>
body {
padding: 0;
margin: 0;
font-family: 'Bungee', cursive;
}
#canvas {
position: fixed;
top: 0;
left: 0;
}
main {
position: fixed;
width: 100%;
z-index: 10;
display: flex;
justify-content: center;
}
div.btn, a.btn {
color: #eee;
font-size: 1.2em;
line-height: 2em;
cursor: pointer;
margin-left: 10px;
margin-right: 10px;
text-decoration: none;
}
div.btn:hover, a.btn:hover {
color: #bbb;
}
#shuffle {
opacity: 1;
font-size: 48px;
color: white;
padding-bottom: 10%;
cursor: pointer;
}
#shuffle:hover {
opacity: 1;
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>
<main>
<div id="scramble" class="btn">Scramble</div>
<a id="reset" href="/" class="btn">Reset</a>
</main>
<script type="module" src="/main.js"></script>
</body>
</html>