-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (75 loc) · 2.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Galactic Football</title>
<script src="./libs/dat.gui/build/dat.gui.js"></script>
<style>
body {
margin: 0;
background-image: url("./background.png");
background-size: cover;
}
#menu {
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
#menu button{
padding: 25px 30px;
margin: 20px;
background-color: #050801;
color: #24AADF;
font-size: 20px;
font-weight: bold;
border: none;
border-radius: 5px;
letter-spacing: 4px;
overflow: hidden;
transition: 0.5s;
cursor: pointer;
}
#menu button:hover{
background: #24AADF;
color: #050801;
box-shadow: 0 0 5px #24AADF,
0 0 25px #24AADF,
0 0 50px #24AADF,
0 0 200px #24AADF;
-webkit-box-reflect:below 1px linear-gradient(transparent, #0005);
}
#instructionsContainer {
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div id="menu">
<button id="startButton">Start Game</button>
<button id="instructionsButton">Instructions</button>
<button id="modelsButton">Animations</button>
</div>
<div id="instructionsContainer">
<img id="instructionsImage" src="./instructions.png" alt="Instructions">
</div>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.154.0/build/three.module.js",
"GLTFLoader": "https://unpkg.com/three@0.154.0/examples/jsm/loaders/GLTFLoader.js",
"OrbitControls": "https://unpkg.com/three@0.154.0/examples/jsm/controls/OrbitControls.js",
"FontLoader": "https://unpkg.com/three@0.154.0/examples/jsm/loaders/FontLoader.js",
"TextGeometry": "https://unpkg.com/three@0.154.0/examples/jsm/geometries/TextGeometry.js"
}
}
</script>
<script type="module" src="./main.js"></script>
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.6.0/dist/confetti.browser.min.js"></script>
</body>
</html>