-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (73 loc) · 2.81 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
<!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="stylesheet" href="style.css" />
<script src="main.js" defer></script>
<!-- https://fonts.google.com/specimen/Barlow -->
<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=Barlow:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<!-- https://fonts.google.com/specimen/Comfortaa -->
<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=Comfortaa:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
</head>
<body class="body">
<header class="header">
<h1 class="header__title">Tic-Tac-Toe</h1>
</header>
<main class="main">
<!-- Input names form -->
<form action="post" class="form">
<div class="field-group">
<div class="field">
<label class="label" for="player-x-name">Player X</label>
<input class="input" id="player-x-name" placeholder="Enter name" />
</div>
<div class="field">
<label class="label" for="player-o-name">Player O</label>
<input class="input" id="player-o-name" placeholder="Enter name" />
</div>
</div>
<button class="btn" id="play" type="submit">
<img class="btn-icon" src="icons/play.svg" alt="play-icon" />
<span>Play</span>
</button>
</form>
<!-- Game -->
<div class="game hidden">
<h2 class="display">·</h2>
<div class="grid">
<button class="cell" data-index="0"></button>
<button class="cell" data-index="1"></button>
<button class="cell" data-index="2"></button>
<button class="cell" data-index="3"></button>
<button class="cell" data-index="4"></button>
<button class="cell" data-index="5"></button>
<button class="cell" data-index="6"></button>
<button class="cell" data-index="7"></button>
<button class="cell" data-index="8"></button>
</div>
<div class="btn-group">
<button class="btn" id="back" type="button">
<img class="btn-icon" src="icons/back.svg" alt="back-icon" />
<span>Rename</span>
</button>
<button class="btn" id="restart" type="button">
<img class="btn-icon" src="icons/reset.svg" alt="reset-icon" />
<span>Restart</span>
</button>
</div>
</div>
</main>
</body>
</html>