-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (44 loc) · 1.25 KB
/
index.html
File metadata and controls
45 lines (44 loc) · 1.25 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>tic tac toe</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="web/scss/style.css" />
<script src="./script.js" defer></script>
</head>
<body>
<dialog open id="start-game-dialog">
<form method="dialog">
<div class="o tic">O</div>
<h1 class="title">Tic Tac Toe</h1>
<div class="x tic">x</div>
<div class="choose-mode">
<button value="one-player">One player</button>
<button value="two-players">Two players</button>
</div>
</form>
</dialog>
<main>
<div>
<h1 class="page-title">Hello, Player <span>O</span></h1>
<p>Click a cell to start</p>
</div>
<ul id="board"></ul>
<div class="o tic">O</div>
<div class="x tic">x</div>
</main>
<dialog id="game-over-dialog">
<div class="game-over">
<p id="game-over-message"></p>
<button id="restart">restart</button>
</div>
</dialog>
</body>
</html>