-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (122 loc) · 7.85 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
115
116
117
118
119
120
121
122
123
<!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="apple-touch-icon" sizes="180x180" href="./assets/favicon/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="./assets/favicon/favicon-16x16.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800;900&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap" />
<link rel="stylesheet" href="./css/index.min.css" />
<script src="./js/anime.min.js"></script>
<title>Tic Tac Toe</title>
</head>
<body>
<main class="tic-tac-toe">
<header class="tic-tac-toe__header">
<h1 class="tic-tac-toe__title">Tic Tac Toe</h1>
<h2 class="tic-tac-toe__author">Jakub Szaredko</h2>
</header>
<div class="tic-tac-toe__board">
<div class="tic-tac-toe__cell" data-index="0">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="1">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="2">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="3">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="4">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="5">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="6">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="7">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<div class="tic-tac-toe__cell" data-index="8">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
</div>
<div class="tic-tac-toe__game-over">
<h2 class="game-over__heading"><span class="game-over__player">Player X</span> has won</h2>
<div class="game-over__marks">
<svg class="tic-tac-toe__mark x hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71.99 71.99">
<line class="mark-svg" x1="4.24" y1="4.24" x2="67.74" y2="67.74" />
<line class="mark-svg" x1="4.24" y1="67.74" x2="67.74" y2="4.24" />
</svg>
<svg class="tic-tac-toe__mark o hidden" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 77 77">
<circle class="mark-svg" cx="38.5" cy="38.5" r="32.5" />
</svg>
</div>
<button class="game-over__button">PLAY AGAIN</button>
</div>
</main>
<script src="./js/app.js"></script>
</body>
</html>