-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
242 lines (238 loc) · 8.17 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!DOCTYPE html>
<html lang="pt-br">
<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, user-scalable=no"
/>
<title>Jogo de Memória</title>
<link rel="stylesheet" type="text/css" href="assets/css/reset.css" />
<link rel="stylesheet" type="text/css" href="assets/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=Fredoka:wght@300;400;700&family=Kdam+Thmor+Pro&display=swap"
rel="stylesheet"
/>
<script src="https://unpkg.com/phosphor-icons"></script>
</head>
<body>
<div class="jogo-de-memoria">
<h1 class="titulo">Jogo de Memória</h1>
<section class="jogo-de-memoria--tabuleiro">
<div class="carta" data-biro="cesta">
<img
src="img/gatos/gato-cesta.jpg"
alt="Gato dentro de cesta"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="cesta">
<img
src="img/gatos/gato-cesta.jpg"
alt="Gato dentro de cesta"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="coroa">
<img
src="img/gatos/gato-coroa.jpg"
alt="Gato com coroa"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="coroa">
<img
src="img/gatos/gato-coroa.jpg"
alt="Gato com coroa"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="natal">
<img
src="img/gatos/gato-natal.jpg"
alt="Gato com decoração natalina"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="natal">
<img
src="img/gatos/gato-natal.jpg"
alt="Gato com decoração natalina"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="pelado">
<img
src="img/gatos/gato-pelado.jpg"
alt="Gato Sphynx"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="pelado">
<img
src="img/gatos/gato-pelado.jpg"
alt="Gato Sphynx"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="ruivo">
<img
src="img/gatos/gato-ruivo.jpg"
alt="Gato do pelo laranja"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="ruivo">
<img
src="img/gatos/gato-ruivo.jpg"
alt="Gato do pelo laranja"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="soneca">
<img
src="img/gatos/gato-soneca.jpg"
alt="Gato tirando uma soneca"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="soneca">
<img
src="img/gatos/gato-soneca.jpg"
alt="Gato tirando uma soneca"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="susto">
<img
src="img/gatos/gato-susto.jpeg"
alt="Gato assustado"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="susto">
<img
src="img/gatos/gato-susto.jpeg"
alt="Gato assustado"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="vaso">
<img
src="img/gatos/gato-vaso.jpg"
alt="Gato dentro de vaso de planta"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
<div class="carta" data-biro="vaso">
<img
src="img/gatos/gato-vaso.jpg"
alt="Gato dentro de vaso de planta"
class="carta--frente"
/>
<span class="carta--costas"><i class="ph-cat"></i></span>
<div class="carta--coletada">
<i class="ph-circle-wavy-check"></i>
</div>
</div>
</section>
<section class="sideboard">
<span class="sideboard-titulo">
<!-- <div class="sideboard-icon"><i class="ph-cardholder"></i></div> -->
<p>cartas coletadas</p>
</span>
<div class="sideboard-cartas"></div>
<span id="sideboard-botao">
<div class="sideboard-icon sideboard-icon-visivel">
<i class="ph-caret-circle-double-left-fill"></i>
</div>
<div class="sideboard-icon">
<i class="ph-caret-circle-double-right-fill"></i>
</div>
</span>
</section>
<div class="sideboard-background" id="sideboard-background"></div>
<div class="score">
<span class="tentativas-titulo">
<!-- <div class="sideboard-icon">
<i class="ph-circle-wavy-warning"></i>
</div> -->
<p>tentativas</p>
</span>
<span class="tentativas-score"><p>0</p></span>
</div>
</div>
<div class="resetar-board">
<span class="score-final">
<p>cartas coletadas com sucesso!</p>
</span>
<button class="botao-reseta" id="restart">Jogar Novamente</button>
</div>
<script src="assets/js/cartas.js"></script>
<script src="assets/js/sideboard.js"></script>
<script src="assets/js/gameboard.js"></script>
</body>
</html>