-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (65 loc) · 3.29 KB
/
Copy pathindex.html
File metadata and controls
70 lines (65 loc) · 3.29 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
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
<!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">
<link rel="stylesheet" href="styles.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=Caveat+Brush&family=Raleway:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet">
<title>Tic-Tac-Toe</title>
</head>
<body>
<!--Home Page-->
<div id="section-1">
<div class="home__background-img"></div>
<h1 class="home__header">Tic-Tac-Toe</h1>
<div class="player__container">
<div class="player__name-field-container">
<!--Player One Form Input-->
<label for="player-one-name" class="player__name player__name-one">Player One:</label>
<input type="text" name="player-one-name" id="player-one-name" placeholder="Enter Your Name Here" class="player__name-field">
<!--Player Two Form Input-->
<label for="player-two-name" class="player__name player__name-two">Player Two:</label>
<input type="text" name="player-two-name" id="player-two-name" placeholder="Enter Your Name Here" class="player__name-field">
</div>
</div>
<h2 class="home__instructions-header">Instructions</h2>
<p class="home__instructions-description">Play in turns and line up three “X’s” or “O’s” horizontally, vertically or diagonally on the grid to win the game. Good luck!</p>
<div class="start__btn-container">
<button class="start__btn">Start</button>
</div>
</div>
<!--Game Page-->
<div id="section-2">
<div class="game__background-img"></div>
<div class="back-to-home__btn-container">
<a href="#section-1" class="back-to-home__btn">Back to Home Page</a>
</div>
<div class="tic-tac-toe__container">
<div class="tic-tac-toe__grid-container">
<section class="tic-tac-toe__grid">
<div class="tic-tac-toe__square win-one win-two win-three" id="square-one"></div>
<div class="tic-tac-toe__square win-one win-four" id="square-two"></div>
<div class="tic-tac-toe__square win-one win-five win-six" id="square-three"></div>
<div class="tic-tac-toe__square win-two win-seven" id="square-four"></div>
<div class="tic-tac-toe__square win-three win-four win-five win-seven" id="square-five"></div>
<div class="tic-tac-toe__square win-six win-seven" id="square-six"></div>
<div class="tic-tac-toe__square win-two win-five win-eight" id="square-seven"></div>
<div class="tic-tac-toe__square win-four win-eight" id="square-eight"></div>
<div class="tic-tac-toe__square win-three win-six win-eight" id="square-nine"></div>
</section>
</div>
<h3 class="display-banner__one"></h3>
<h3 class="display-banner__two"></h3>
<h3 class="display-banner__draw"></h3>
<p class="tic-tac-toe__instruction">Click anywhere on the grid to start!</p>
<div class="reset__btn-container">
<button class="reset__btn">Reset</button>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>