-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (95 loc) · 3.56 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
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="CSS/style.css" />
<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=Oswald:wght@700&family=Roboto:wght@400;500;900&display=swap"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/59943ffdf9.js"
crossorigin="anonymous"
></script>
<script src="./index.js" defer></script>
</head>
<body class="light-mode">
<header class="header">
<h1 class="main-heading">Tic Tac Toe</h1>
</header>
<div class="mode-toggle">
<div class="mode mode-border">
<i class="fas fa-sun light-toggle"></i>
</div>
<div class="mode"><i class="far fa-moon dark-toggle"></i></div>
</div>
<h2 class="help-prompt">Choose your players</h2>
<main class="main">
<section class="starting-page">
<div class="player-card">
<h3 class="player-selection first-player-selection">X</h3>
<div class="player-display">
<i class="fas fa-user"></i>
</div>
<div class="btn-container">
<button class="btn-secondary first-player-btn">Player</button>
<button class="btn-secondary first-player-btn">Bot</button>
</div>
</div>
<div class="start-game">
<h2>V/S</h2>
<button class="start-game-btn">Start Game</button>
</div>
<div class="player-card">
<h3 class="player-selection second-player-selection">O</h3>
<div class="player-display">
<i class="fas fa-robot"></i>
</div>
<div class="btn-container">
<button class="btn-secondary second-player-btn">Player</button>
<button class="btn-secondary second-player-btn">Bot</button>
</div>
</div>
</section>
<section class="game-section hidden">
<button class="return-btn">RETURN</button>
<div class="main-game">
<div class="active-player-display">
<button class="first-player btn-secondary selected">
Player One: <span class="player-one-score">0</span>
</button>
<button class="second-player btn-secondary">
Player Two: <span class="player-two-score">0</span>
</button>
</div>
<div class="main-grid">
<div data-index="0" class="grid-cell"></div>
<div data-index="1" class="grid-cell"></div>
<div data-index="2" class="grid-cell"></div>
<div data-index="3" class="grid-cell"></div>
<div data-index="4" class="grid-cell"></div>
<div data-index="5" class="grid-cell"></div>
<div data-index="6" class="grid-cell"></div>
<div data-index="7" class="grid-cell"></div>
<div data-index="8" class="grid-cell"></div>
</div>
<dialog class="reset-game-modal light-mode" id="modal">
<h2 class="win-message"></h2>
<button class="reset-game-btn">Play Again</button>
</dialog>
</div>
</section>
</main>
<footer>
<p>
Copyright © 2022 BlizZard |
<a href="https://github.com/BlizZard-bot/tic-tac-toe">View Code</a>
</p>
</footer>
</body>
</html>