-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (63 loc) · 1.41 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My first three.js app</title>
<style>
@import url('https://fonts.googleapis.com/css?family=Press+Start+2P');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap');
body {
margin: 0;
font-family: 'Press Start 2P', cursive;
font-size: 2em;
color: white;
overflow: hidden;
}
button {
outline: none;
cursor: pointer;
border: none;
}
#counter {
position: absolute;
top: 20px;
right: 20px;
}
#instruction {
position: absolute;
bottom: 10px;
width: 100%;
text-align: center;
z-index: 100;
display:block;
}
#end {
position: absolute;
min-width: 100%;
min-height: 100%;
display: flex;
align-items: center;
justify-content: center;
visibility: hidden;
}
#end button {
background-color: rgb(231, 50, 18);
padding: 20px 50px 20px 50px;
font-family: inherit;
font-size: inherit;
animation : colorPop 2s linear infinite;
}
</style>
</head>
<body>
<div id="counter"></div>
<div id="instruction">
<p>Use arrow keys to move</p>
</div>
<div id="end">
<button id="retry">Retry</button>
</div>
<script src="https://threejs.org/build/three.js"></script>
<script src="./js/app.js"></script>
</body>
</html>