generated from SWIC-Web-Dev/html-tailwind-js-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (42 loc) · 1.62 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Simon Game</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body
class="my-8 flex min-h-screen flex-col items-center justify-center gap-y-4 bg-slate-900 text-white md:gap-y-8 lg:gap-y-16"
>
<main
class="my-8 grid grid-cols-2 place-content-center gap-8 motion-duration-500 *:motion-preset-fade *:size-36 *:rounded-xl *:motion-scale-in-75 *:motion-translate-y-in-100 *:motion-rotate-in-90 *:focus:outline-none lg:*:size-48"
>
<button class="bg-red-500"></button>
<button class="bg-blue-500 motion-delay-150"></button>
<button class="bg-green-500 motion-delay-300"></button>
<button class="bg-yellow-500 motion-delay-500"></button>
</main>
<footer
class="flex flex-col gap-y-4 text-2xl font-extrabold lg:gap-y-8 [&>p]:text-center"
>
<p>Score: <span id="score">0</span></p>
<p class="invisible uppercase text-red-400" id="game-over">Game over</p>
<button
class="rounded-sm bg-slate-100 px-8 py-4 text-lg text-black hover:bg-slate-300"
>
Restart Game
</button>
<small class="text-center text-xs text-gray-400"
><a
href="https://github.com/SWIC-Web-Dev/simon-game"
target="_blank"
rel="noopener noreferrer"
>View the code 👨🏾💻</a
></small
>
</footer>
<script type="module" src="./src/main.js"></script>
</body>
</html>