-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
42 lines (37 loc) · 1.27 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OPPA STOPPA</title>
<link href="style.css" rel="stylesheet">
</head>
<body>
<!-- Overlay -->
<div class="overlay">
<div class="menu">
<h1 class="title text-[3.5rem]">OPPA<br>STOPPA</h1>
<div class="menu-buttons">
<h2 class="mb-[0.5rem] mt-[2.7rem] italic w-[20vw]">Ready to run from the opps?</h2>
<button id="start" class="w-auto m-auto">Start</button>
</div>
</div>
</div>
<div class="gameSpace">
<!-- Right Side stats -->
<!-- This should have its own animation of sliding in from the right -->
<div class="absolute w-auto right-[0.5vw] top-[50%] translate-y-[-50%] mr-0 h-[100px] bg-red-100 z-[2]">
<p>Score: <span id="score">0</span></p>
<p>Speed: <span id="speed">0</span><span id="metric"> MPH</span></p>
<p>Difficulty: <span id="dif">0</span></p>
<p>Stage: <span id="stage">0</span></p>
<button id="pause" class=" ">Pause</button>
</div>
<!-- Menu -->
<main>
<canvas id="gameCanvas" class="scale-[.7] w-auto m-auto mt-[-6%]"></canvas>
<script type="module" src="src/main.js"></script>
</main>
</div>
</body>
</html>