generated from SandraBergstrom/Template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
114 lines (102 loc) · 3.19 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!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="assets/css/style.css">
<script src="https://kit.fontawesome.com/16606b6431.js" crossorigin="anonymous"></script>
<title>Tic Tac Toe</title>
</head>
<body>
<header>
<h1>Tic Tac Toe</h1>
</header>
<!-- Name area -->
<section id="name-area">
<div id="first-icon-roboto">
<img src="assets/images/roboto.png" alt="robot icon" class="roboto-icon">
</div>
<div id="presentation">
<h2>Hello!</h2>
<p>My name is Roboto.</p>
<p>What's your name?</p>
<div id="msg"></div>
<input type="text" name="username" id="uname-input" placeholder="My name is..." maxlength="15">
<div>
<button class="btn" id="submit-name-btn">Enter name!</button>
</div>
</div>
</section>
<div id="msg-name"></div>
<!-- Character area -->
<section id="character-area">
<h2>Who are you?</h2>
<!-- Buttons to chose character with icons from https://www.flaticon.com/-->
<div id="character-buttons">
<button class="btn" id="unicorn">
<img src="assets/images/unicorn.png" alt="unicorn icon">
</button>
<button class="btn" id="teddy">
<img src="assets/images/teddy-bear.png" alt="teddy bear icon">
</button>
<button class="btn" id="dragon">
<img src="assets/images/dragon.png" alt="dragon icon">
</button>
</div>
</section>
<!-- Message/button area during game-->
<section id="game-msg">
<div id="msg-win"><h2>Let's play!</h2></div>
</section>
<!-- Player information-->
<section id="game-section">
<div id="game-container">
<!-- Game board-->
<div class="game-board-container">
<div id="game-board">
<div class="board-box" id="0"></div>
<div class="board-box" id="1"></div>
<div class="board-box" id="2"></div>
<div class="board-box" id="3"></div>
<div class="board-box" id="4"></div>
<div class="board-box" id="5"></div>
<div class="board-box" id="6"></div>
<div class="board-box" id="7"></div>
<div class="board-box" id="8"></div>
</div>
</div>
<!-- Info container -->
<div class="info-container">
<div id="user-area">
<div id="display-character-icon"></div>
<div id="displayName">
<h2>Username</h2>
</div>
<div class="score-area">
<span id="player-score">0</span>
</div>
</div>
<!-- Roboto information -->
<div id="roboto-area">
<div class="icon">
<img src="assets/images/roboto.png" alt="Robot icon" class="roboto-icon" id="robot-player-icon">
</div>
<div>
<h2>Roboto</h2>
</div>
<div class="score-area">
<span id="roboto-score">0</span>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="btn" id="play-again-btn">
<button id="lets-play-button"></button>
</div>
</section>
<script src="assets/js/script.js"></script>
</body>
</html>