-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (105 loc) · 2.45 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<link
rel="shortcut icon"
type="image/ico"
href="images/favicon.ico"
id="favicon"
/>
<title id="title">PRESS SPACEBAR</title>
</head>
<body>
<style>
* {
box-sizing: border-box;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
margin: 0;
}
canvas {
display: none;
}
.background {
height: 100vh;
width: 100vw;
background-color: #000000;
background-image: linear-gradient(147deg, #000000 0%, #2c3e50 74%);
}
.page1 {
padding: 8rem;
color: white;
font-size: 2rem;
display: flex;
justify-content: space-evenly;
align-items: center;
flex-direction: column;
height: 100vh;
}
.page1 > div {
border: 2px solid white;
padding: 1rem 13rem;
border-radius: 2rem;
}
/* ///// */
.page2 {
color: white;
font-size: 4rem;
display: flex;
justify-content: space-evenly;
align-items: center;
flex-direction: column;
height: 100vh;
display: none;
}
.score {
font-size: 2rem;
}
.keys {
width: 10rem;
height: 10rem;
background-image: url("keys.png");
background-size: contain;
background-repeat: no-repeat;
filter: invert(100%);
}
/* ///// */
.page3 {
color: white;
font-size: 4rem;
display: flex;
justify-content: space-evenly;
align-items: center;
flex-direction: column;
height: 100vh;
display: none;
}
.page3 > div {
border: 2px solid white;
padding: 1rem 13rem;
border-radius: 2rem;
}
</style>
<canvas></canvas>
<div class="background">
<div class="page1">
<p>Look at the favicon 👆</p>
<p>and press</p>
<div>SPACE</div>
</div>
<div class="page2">
<div class="life">💙💙💙</div>
<div class="score">Score:12</div>
<div class="keys"></div>
</div>
<div class="page3">
<p class="highScore">High score: 0</p>
<div>SPACE</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>