-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
236 lines (236 loc) · 12.2 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CESARdle</title>
<link rel="stylesheet" href="./styles/styles.css">
<link rel="stylesheet" href="./styles/stats.css">
<link rel="stylesheet" href="./styles/header.css">
<link rel="stylesheet" href="./styles/result.css">
<link rel="stylesheet" href="./styles/keyboard.css">
<link rel="stylesheet" href="./styles/keyframes.css">
<link rel="stylesheet" href="./styles/instructions.css">
<link rel="stylesheet" href="./styles/mediaqueries.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=Mitr:wght@200;300;400;500;600;700&family=Roboto:wght@400;900&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
<link rel="shortcut icon" href="./assets/images/favicon.png" type="image/x-icon">
</head>
<body>
<div id="screen"></div>
<div id="stats-wrapper" class="modal">
<div id="stats">
<svg xmlns="http://www.w3.org/2000/svg" id="close-stats" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
<h2>Seu desempenho</h2>
<div id="stats-message">
<h3>Jogue pelo menos uma vez para visualizar o seu desempenho</h3>
<p>Se seus dados não apareceram, recarregue a página.</p>
</div>
<div id="stats-display">
<div id="1rows" class="stats-content">
<div class="stats-bar">
<span class="bar-title">?</span>
<div class="fill-wrapper">
<div class="stats-bar-fill" id="one"></div>
</div>
</div>
<p class="stats-title">1º tentativa</p>
</div>
<div id="2rows" class="stats-content">
<div class="stats-bar">
<span class="bar-title">?</span>
<div class="fill-wrapper">
<div class="stats-bar-fill" id="two"></div>
</div>
</div>
<p class="stats-title">2º tentativa</p>
</div>
<div id="3rows" class="stats-content">
<div class="stats-bar">
<span class="bar-title">?</span>
<div class="fill-wrapper">
<div class="stats-bar-fill" id="three"></div>
</div>
</div>
<p class="stats-title">3º tentativa</p>
</div>
<div id="4rows" class="stats-content">
<div class="stats-bar">
<span class="bar-title">?</span>
<div class="fill-wrapper">
<div class="stats-bar-fill" id="four"></div>
</div>
</div>
<p class="stats-title">4º tentativa</p>
</div>
<div id="5rows" class="stats-content">
<div class="stats-bar">
<span class="bar-title">?</span>
<div class="fill-wrapper">
<div class="stats-bar-fill" id="five"></div>
</div>
</div>
<p class="stats-title">5º tentativa</p>
</div>
<div id="lost" class="stats-content">
<div class="stats-bar">
<span class="bar-title">?</span>
<div class="fill-wrapper">
<div class="stats-bar-fill" id="lostGame"></div>
</div>
</div>
<p class="stats-title">Errou todas</p>
</div>
</div>
<div id="stats-data-wrapper">
<div class="data-stats" id="games-amount">
<span class="data-number" id="data-amount">
?
</span>
<span class="data-title">
jogos
</span>
</div>
<div class="data-stats" id="win-percentual">
<span class="data-number" id="data-percentual">
?
</span>
<span class="data-title">
acertos
</span>
</div>
<div class="data-stats" id="win-streak">
<span class="data-number" id="data-streak">
?
</span>
<span class="data-title">
sequência
</span>
</div>
</div>
</div>
</div>
<div id="instructions-wrapper">
<div id="instructions">
<svg xmlns="http://www.w3.org/2000/svg" id="close-instructions" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
<h2>Você tem <strong>5 chances</strong> para acertar a palavra do dia</h2>
<p>Todas as palavras possuem relação com tecnologia e/ou com a CESAR School</p>
<div id="instruction-wrapper">
<div class="instruction-wrapper">
<div class="letterInstructions" style="background-color: var(--key-green);">L</div>
<div class="letterInstructions" style="background-color: var(--key-yellow);">E</div>
<div class="letterInstructions" style="background-color: var(--key-red);">D</div>
</div>
<div class="instruction-wrapper" id="this">
<p>A palavra contém a letra <span>L</span> na posição correta</p>
<p>A palavra contém a letra <span>E</span> mas na posição errada</p>
<p>A palavra não contém a letra <span>D</span></p>
</div>
</div>
<p id="paulo">Desenvolvido por <a href="https://github.com/paulorosadodev" target="_blank">Paulo Rosado</a></p>
</div>
</div>
<div id="result-wrapper">
<div id="result-display">
<div id="result-data"></div>
<div id="game-data">
<div id="data">
<div id="time">
<span>Próxima palavra em: </span>
<div id="display-time"></div>
</div>
<button id="copyGame"><span id="copied" class="deactive">Copiado!</span>Copiar jogo <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-copy"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg></button>
<textarea id="hidden-text" readonly></textarea>
</div>
</div>
</div>
</div>
<header>
<button id="open-stats" class="modal-opener">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chart-no-axes-column"><line x1="18" x2="18" y1="18" y2="8"/><line x1="12" x2="12" y1="18" y2="4"/><line x1="6" x2="6" y1="18" y2="12"/></svg>
</button>
<a href="https://github.com/paulorosadodev/CESARdle" id="repository-link" target="_blank">
<img src="./assets/images/logo.png" alt="CESARdle Logo">
</a>
<button id="open-instructions" class="modal-opener">
<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-help"><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/></svg>
</button>
</header>
<div id="div-wrapper">
<div class="row" id="1">
<div class="letter" style="border-bottom: 7px solid #69140E"></div>
<div class="letter"></div>
<div class="letter"></div>
<div class="letter"></div>
<div class="letter"></div>
</div>
<div class="row" id="2">
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
</div>
<div class="row" id="3">
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
</div>
<div class="row" id="4">
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
</div>
<div class="row" id="5">
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
<div class="letter deactive"></div>
</div>
</div>
<div id="keyboard">
<div class="keyboardrow">
<div class="key" id="Q">Q</div>
<div class="key" id="W">W</div>
<div class="key" id="E">E</div>
<div class="key" id="R">R</div>
<div class="key" id="T">T</div>
<div class="key" id="Y">Y</div>
<div class="key" id="U">U</div>
<div class="key" id="I">I</div>
<div class="key" id="O">O</div>
<div class="key" id="P">P</div>
</div>
<div class="keyboardrow">
<div class="key" id="A">A</div>
<div class="key" id="S">S</div>
<div class="key" id="D">D</div>
<div class="key" id="F">F</div>
<div class="key" id="G">G</div>
<div class="key" id="H">H</div>
<div class="key" id="J">J</div>
<div class="key" id="K">K</div>
<div class="key" id="L">L</div>
<div class="key special"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-delete"><path d="M10 5a2 2 0 0 0-1.344.519l-6.328 5.74a1 1 0 0 0 0 1.481l6.328 5.741A2 2 0 0 0 10 19h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z"/><path d="m12 9 6 6"/><path d="m18 9-6 6"/></svg></div>
</div>
<div class="keyboardrow">
<div class="key" id="Z">Z</div>
<div class="key" id="X">X</div>
<div class="key" id="C">C</div>
<div class="key" id="V">V</div>
<div class="key" id="B">B</div>
<div class="key" id="N">N</div>
<div class="key" id="M">M</div>
<div class="key special" id="enter">ENTER</div>
</div>
</div>
<script src="./src/main.js" type="module"></script>
</body>
</html>