-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
258 lines (226 loc) · 10.3 KB
/
index.html
File metadata and controls
258 lines (226 loc) · 10.3 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
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Application de résolutions du Nouvel An style arcade rétro">
<meta name="theme-color" content="#0a0a12">
<title>🎮 RÉSOLUTIONS ARCADE 2025 🎮</title>
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<link rel="apple-touch-icon" href="favicon.svg">
<!-- Fonts -->
<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=Press+Start+2P&display=swap" rel="stylesheet">
<!-- Styles -->
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<!-- Background Effects -->
<div class="stars" id="stars" aria-hidden="true"></div>
<div class="scanlines" aria-hidden="true"></div>
<!-- HUD -->
<div class="hud">
<div class="hud__score">
HIGH SCORE<br>
<span id="highScore" data-testid="high-score">0</span> RÉSOLUTIONS
</div>
</div>
<!-- Decorative Joystick -->
<div class="joystick" aria-hidden="true"></div>
<!-- FLIP BUTTON - Always visible -->
<button id="flipButton" class="flip-button" aria-label="Basculer entre résolutions et Pong">
<span class="flip-button__icon">🕹️</span>
<span class="flip-button__text">PONG!</span>
</button>
<!-- MODE RÉSOLUTIONS -->
<main id="modeResolutions" class="container mode-container">
<!-- Header -->
<header class="header">
<h1 class="header__title">🎮 RÉSOLUTIONS 2025 🎮</h1>
<p class="header__subtitle">>>> INSERT COIN TO PLAY <<<</p>
<p class="header__credits">CRÉDITS: ∞ | VIES: 💖💖💖</p>
</header>
<!-- Fun Buttons Bar -->
<section class="fun-buttons" aria-label="Boutons rigolos">
<button class="btn btn--fun btn--fun-1" data-action="funny" aria-label="Message rigolo">
🎲 RANDOM
</button>
<button class="btn btn--fun btn--fun-2" data-action="funny" aria-label="Message rigolo">
🎰 CHANCE
</button>
<button class="btn btn--fun btn--fun-3" data-action="funny" aria-label="Message rigolo">
🔮 DESTIN
</button>
<button class="btn btn--fun btn--fun-4" data-action="funny" aria-label="Message rigolo">
⚡ WOW
</button>
</section>
<!-- Add Resolution Form -->
<section class="panel panel--form" aria-labelledby="form-title">
<h2 id="form-title" class="panel__title panel__title--pink">
⭐ NOUVELLE RÉSOLUTION ⭐
</h2>
<form id="resolutionForm" class="form" novalidate>
<div class="form__group">
<label class="form__label" for="title">🎯 TITRE DE LA QUÊTE</label>
<input
type="text"
id="title"
class="form__input"
placeholder="Ex: Devenir un champion!"
required
maxlength="100"
autocomplete="off"
>
<span class="form__error" data-error="title"></span>
</div>
<div class="form__group">
<label class="form__label" for="description">📜 DESCRIPTION DE LA MISSION</label>
<textarea
id="description"
class="form__input form__input--textarea"
placeholder="Décris ta mission épique..."
maxlength="500"
></textarea>
</div>
<div class="form__row">
<div class="form__group">
<label class="form__label" for="targetDate">📅 DATE CIBLE</label>
<input
type="date"
id="targetDate"
class="form__input"
required
>
<span class="form__error" data-error="targetDate"></span>
</div>
<div class="form__group">
<label class="form__label" for="reminder">⏰ RAPPEL (JOURS AVANT)</label>
<input
type="number"
id="reminder"
class="form__input"
value="7"
min="1"
max="365"
>
</div>
</div>
<button type="submit" class="btn btn--add">
🚀 LANCER LA RÉSOLUTION! 🚀
</button>
</form>
</section>
<!-- Resolutions List -->
<section class="panel panel--list" aria-labelledby="list-title">
<div class="panel__header">
<h2 id="list-title" class="panel__title panel__title--cyan">
🏆 TES QUÊTES EN COURS 🏆
</h2>
<div class="panel__score">
SCORE: <span id="score" data-testid="score">0</span> PTS
</div>
</div>
<div id="resolutionList" class="resolution-list" role="list" aria-live="polite">
<!-- Resolutions rendered here by JS -->
</div>
</section>
<!-- Footer -->
<footer class="footer">
<p>© 2025 RÉSOLUTIONS ARCADE | CRÉÉ AVEC 💖 ET BEAUCOUP DE ☕</p>
<p>APPUIE SUR START POUR RECOMMENCER TA VIE</p>
</footer>
</main>
<!-- MODE PONG -->
<div id="modePong" class="container mode-container is-hidden">
<header class="header header--pong">
<h1 class="header__title header__title--pong">🏓 ARCADE PONG 🏓</h1>
<p class="header__subtitle">PAUSE GAMING MÉRITÉE!</p>
</header>
<div class="pong-container">
<canvas id="pongCanvas" class="pong-canvas"></canvas>
<!-- Bouton Start overlay -->
<div id="pongStartOverlay" class="pong-start-overlay">
<button id="pongStartBtn" class="btn btn--pong-start">
<span class="pong-start__icon">▶</span>
<span class="pong-start__text">START GAME!</span>
</button>
</div>
</div>
<div class="pong-instructions">
<p>🎮 Utilise <kbd>↑</kbd> <kbd>↓</kbd> ou <kbd>W</kbd> <kbd>S</kbd> pour bouger</p>
<p>⏸️ <kbd>ESPACE</kbd> pour pause | <kbd>ESC</kbd> pour quitter</p>
<p>📱 Sur mobile: glisse ton doigt!</p>
</div>
</div>
<!-- Victory Overlay -->
<div id="victoryOverlay" class="overlay overlay--victory" role="dialog" aria-hidden="true">
<div class="overlay__content">
<div class="overlay__title">🎉 LEVEL UP! 🎉</div>
<div class="overlay__subtitle" id="victoryMessage">NOUVELLE RÉSOLUTION AJOUTÉE!</div>
</div>
</div>
<!-- Funny Message Overlay -->
<div id="funnyOverlay" class="overlay overlay--funny" role="dialog" aria-hidden="true">
<div class="funny-bubble">
<div class="funny-bubble__content" id="funnyMessage"></div>
<button class="funny-bubble__close" aria-label="Fermer">✕</button>
</div>
</div>
<!-- Edit Modal -->
<div id="editModal" class="overlay overlay--modal" role="dialog" aria-hidden="true" aria-labelledby="modal-title">
<div class="modal">
<h2 id="modal-title" class="modal__title">✏️ MODIFIER LA QUÊTE ✏️</h2>
<form id="editForm" class="form" novalidate>
<input type="hidden" id="editId">
<div class="form__group">
<label class="form__label" for="editTitle">🎯 TITRE DE LA QUÊTE</label>
<input
type="text"
id="editTitle"
class="form__input"
required
maxlength="100"
>
</div>
<div class="form__group">
<label class="form__label" for="editDescription">📜 DESCRIPTION DE LA MISSION</label>
<textarea
id="editDescription"
class="form__input form__input--textarea"
maxlength="500"
></textarea>
</div>
<div class="form__row">
<div class="form__group">
<label class="form__label" for="editTargetDate">📅 DATE CIBLE</label>
<input type="date" id="editTargetDate" class="form__input" required>
</div>
<div class="form__group">
<label class="form__label" for="editReminder">⏰ RAPPEL (JOURS AVANT)</label>
<input
type="number"
id="editReminder"
class="form__input"
min="1"
max="365"
>
</div>
</div>
<div class="modal__actions">
<button type="button" class="btn btn--cancel" data-action="close-modal">
❌ ANNULER
</button>
<button type="submit" class="btn btn--save">
💾 SAUVEGARDER
</button>
</div>
</form>
</div>
</div>
<!-- Scripts -->
<script src="js/app.js"></script>
</body>
</html>