-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (73 loc) · 3.86 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
82
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Tic Tac Toe</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./styles/style.css">
<!--Favicon-->
<link rel="icon" type="image/png" href="./images/favicon16x16.png" sizes="16x16">
<!--Font awsome icons-->
<script src="https://kit.fontawesome.com/5c6aa456cf.js" crossorigin="anonymous"></script>
<script src="./script.js" defer></script>
<!--Google fonts-->
<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=Architects+Daughter&display=swap" rel="stylesheet">
</head>
<body class="container">
<!--This will hold the start screen-->
<main class="start-screen">
</header>
<!--This will display the TIC TAC TOE in big letters-->
<h2 class="start-screen__header">TIC TAC TOE</h2>
<!--Those will be the inputs for player names-->
<!--Above each one there will be an icon indicating player's mark-->
<form class="start-screen__player-names-form">
<div class="start-screen__input-container">
<i class="fas fa-times start-screen__icon"></i>
<i class="far fa-circle start-screen__icon"></i>
<input class="start-screen__input start-screen__input--X" placeholder="X player name" type="text" />
<input class="start-screen__input start-screen__input--O" placeholder="O player name" type="text" />
</div>
<!--This will be the button starting the game-->
<button class="start-screen__btn" type="button">Play</button>
</form>
</main>
<!--This will display the game while it is played-->
<main class="game-screen game-screen__hidden">
<!--This will display which player's move it is-->
<h4 class="game-screen__header">Tic-Tac-Toe</h4>
<!--This will display the board-->
<div class="game-screen__game-board">
<div class="game-screen__board-square game-screen__board-square--0" id="0"></div>
<div class="game-screen__board-square game-screen__board-square--1" id="1"></div>
<div class="game-screen__board-square game-screen__board-square--2" id="2"></div>
<div class="game-screen__board-square game-screen__board-square--3" id="3"></div>
<div class="game-screen__board-square game-screen__board-square--4" id="4"></div>
<div class="game-screen__board-square game-screen__board-square--5" id="5"></div>
<div class="game-screen__board-square game-screen__board-square--6" id="6"></div>
<div class="game-screen__board-square game-screen__board-square--7" id="7"></div>
<div class="game-screen__board-square game-screen__board-square--8" id="8"></div>
</div>
<!--This will display the name of an active player-->
<h4 class="game-screen__player-move"><span class="game-screen__player-name"></span> move</h4>
<div class="game-screen__player-icon">
</div>
</main>
<main class="result-screen result-screen__hidden">
<h4 class="game-screen__header">Tic-Tac-Toe</h4>
<!--Two buttons instead of the board-->
<!--The container needs to be the size of the board and have the same margin-->
<div class="result-screen__btn-container">
<button class="result-screen__btn result-screen__btn--new-game">New</button>
<button class="result-screen__btn result-screen__btn--retry">Retry</button>
</div>
<h4 class="result-screen__result"></h4>
<div class="result-screen__icon-container">
</div>
</main>
</body>
</html>