-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
672 lines (648 loc) · 25.8 KB
/
index.html
File metadata and controls
672 lines (648 loc) · 25.8 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/erickay_fav.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="/src/assets/styles/style.css" rel="stylesheet" />
<title>To Do List Avancee</title>
</head>
<body
class="h-screen bg-slate-50 text-gray-900 transition-colors duration-300 dark:bg-slate-950 dark:text-slate-100">
<main
id="app"
class="grid gap-4 p-2 h-full"
data-sidebar-collapsed="false"
data-form-visible="false"
data-density="comfortable">
<!-- Sidebar -->
<header
id="sidebar"
class="px-4 py-6 rounded-xl h-full overflow-auto flex flex-col border border-transparent transition-colors duration-300 dark:border-slate-800"
data-collapsed="false">
<div class="sidebar-header flex items-center justify-between mb-4">
<h1
class="text-2xl font-bold sidebar-title text-gray-900 dark:text-slate-100">
TaskZen
</h1>
<button
id="menuToggleBtn"
type="button"
class="p-2 rounded-lg focus:outline-none transition hover:bg-gray-200 dark:text-slate-200 dark:hover:bg-slate-800"
aria-label="Masquer le menu"
title="Afficher/masquer le menu"
aria-controls="sidebarContent"
aria-expanded="true">
<svg
class="w-6 h-6"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 6h16M4 12h16M4 18h16" />
</svg>
</button>
</div>
<div
id="sidebarContent"
class="flex flex-col flex-1 overflow-auto sidebar-hideable space-y-4">
<div>
<input
id="sidebarSearchInput"
type="text"
placeholder="Rechercher"
class="w-full px-3 py-2 rounded-lg border border-gray-200 text-gray-700 focus:outline-none focus:ring-2 focus:ring-emerald-400 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100" />
</div>
<div class="space-y-2">
<h2
class="text-xs font-bold text-gray-500 uppercase dark:text-slate-400">
Tâches
</h2>
<ul id="sidebarTaskFilters" class="space-y-2 text-sm">
<li
data-view="dashboard"
class="flex items-center justify-between px-2 py-1 rounded text-gray-600 transition hover:bg-gray-200 dark:text-slate-300 dark:hover:bg-slate-800">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" data-icon="dashboard"></svg>
<span>Tableau de bord</span>
</span>
<span
class="bg-gray-200 rounded-full px-2 text-xs font-semibold text-gray-700 dark:bg-slate-700 dark:text-slate-200"
data-count="dashboard"
>0</span
>
</li>
<li
data-period="upcoming"
class="flex items-center justify-between px-2 py-1 rounded text-gray-600 transition hover:bg-gray-200 dark:text-slate-300 dark:hover:bg-slate-800">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" data-icon="upcoming"></svg>
<span>À venir</span>
</span>
<span
class="bg-gray-200 rounded-full px-2 text-xs font-semibold text-gray-700 dark:bg-slate-700 dark:text-slate-200"
data-count="upcoming"
>0</span
>
</li>
<li
data-period="today"
class="flex items-center justify-between px-2 py-1 rounded text-gray-600 transition hover:bg-gray-200 dark:text-slate-300 dark:hover:bg-slate-800">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" data-icon="today"></svg>
<span>Aujourd'hui</span>
</span>
<span
class="bg-gray-200 rounded-full px-2 text-xs font-semibold text-gray-700 dark:bg-slate-700 dark:text-slate-200"
data-count="today"
>0</span
>
</li>
<li
data-status="overdue"
class="flex items-center justify-between px-2 py-1 rounded text-gray-600 transition hover:bg-gray-200 dark:text-slate-300 dark:hover:bg-slate-800">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" data-icon="overdue"></svg>
<span>En retard</span>
</span>
<span
class="bg-gray-200 rounded-full px-2 text-xs font-semibold text-gray-700 dark:bg-slate-700 dark:text-slate-200"
data-count="overdue"
>0</span
>
</li>
<li
data-status="completed"
class="flex items-center justify-between px-2 py-1 rounded text-gray-600 transition hover:bg-gray-200 dark:text-slate-300 dark:hover:bg-slate-800">
<span class="flex items-center gap-2">
<svg class="w-4 h-4" data-icon="completed"></svg>
<span>Terminées</span>
</span>
<span
class="bg-gray-200 rounded-full px-2 text-xs font-semibold text-gray-700 dark:bg-slate-700 dark:text-slate-200"
data-count="completed"
>0</span
>
</li>
</ul>
</div>
<div class="space-y-2">
<h2
class="text-xs font-bold text-gray-500 uppercase dark:text-slate-400">
Catégorie
</h2>
<ul
id="categoryList"
class="space-y-2 max-h-40 overflow-y-auto pr-1"></ul>
<button
id="addCategoryBtn"
type="button"
class="mt-2 flex w-full items-center justify-center gap-2 rounded-lg border border-dashed border-gray-300 px-3 py-2 text-xs font-semibold text-gray-600 transition hover:border-gray-400 hover:text-gray-800 dark:border-slate-700 dark:text-slate-300 dark:hover:border-slate-500">
<span class="text-lg leading-none">+</span>
Créer une nouvelle catégorie
</button>
</div>
<div class="mt-auto space-y-2">
<button
id="openSettingsBtn"
class="flex items-center gap-2 text-gray-700 transition hover:text-gray-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-slate-800 rounded-md px-2 py-1">
<svg
class="w-5 h-5"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z" />
<path
d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 8.1 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H2a2 2 0 1 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H8a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V8a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z" />
</svg>
Paramètres
</button>
<button
class="flex items-center gap-2 text-gray-700 transition hover:text-gray-900 dark:text-slate-300 dark:hover:text-white dark:hover:bg-slate-800 rounded-md px-2 py-1">
<svg
class="w-5 h-5"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
<polyline points="16 17 21 12 16 7" />
<line x1="21" y1="12" x2="9" y2="12" />
</svg>
Déconnexion
</button>
</div>
</div>
</header>
<section
id="taskSection"
class="p-4 h-full overflow-auto text-gray-900 dark:text-slate-100 transition-colors duration-300 space-y-6">
<header class="flex flex-col gap-4 lg:flex-row lg:items-end lg:justify-between">
<div>
<h1 class="text-3xl font-semibold text-gray-900 dark:text-slate-50">Tableau de bord</h1>
<p class="text-sm text-gray-500 dark:text-slate-400">Concentrez-vous sur vos priorités quotidiennes.</p>
</div>
<div class="flex gap-2">
<button
type="button"
class="hidden sm:inline-flex items-center gap-2 rounded-md bg-emerald-500 px-4 py-2 text-sm font-semibold text-white shadow hover:bg-emerald-400 focus:outline-none focus:ring-2 focus:ring-emerald-400 dark:bg-emerald-600 dark:hover:bg-emerald-500"
data-open-form
title="Créer une nouvelle tâche (N)">
<svg
class="w-4 h-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<title>Nouvelle tâche</title>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 4v16m8-8H4" />
</svg>
Nouvelle tâche
</button>
</div>
</header>
<div id="stats"></div>
<section
id="todaySection"
class="rounded-xl border border-gray-200 bg-white/80 p-4 shadow-sm dark:border-slate-700 dark:bg-slate-900/60">
<div class="flex items-center justify-between flex-wrap gap-2">
<h2 class="text-lg font-semibold text-gray-900 dark:text-slate-100 flex items-center gap-2">
<svg
class="w-5 h-5 text-emerald-500"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<title> Aujourd'hui </title>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10m-13 8h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2Z" />
</svg>
Aujourd’hui
</h2>
<button
type="button"
class="inline-flex items-center gap-2 rounded-md border border-emerald-200 px-3 py-1 text-xs font-medium text-emerald-600 hover:bg-emerald-50 focus:outline-none focus:ring-2 focus:ring-emerald-400 dark:border-emerald-800 dark:text-emerald-300 dark:hover:bg-emerald-900/40"
data-period-shortcut="today"
title="Filtrer les tâches du jour">
<svg
class="w-4 h-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<title>Filtrer</title>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 4h18l-7 8v6l-4 2v-8L3 4Z" />
</svg>
Voir toutes les tâches du jour
</button>
</div>
<ul id="todayTaskList" class="mt-3 space-y-2" aria-live="polite"></ul>
</section>
<hr class="border-t border-dashed border-gray-200 dark:border-slate-700" />
<div class="space-y-4">
<div class="flex flex-wrap items-center justify-between gap-3">
<h2
id="tasksViewTitle"
class="text-2xl font-semibold tracking-tight text-gray-800 dark:text-slate-100">
Mes tâches
</h2>
<div class="flex gap-2">
<button
type="button"
class="inline-flex items-center gap-2 rounded-md bg-emerald-500 px-4 py-2 text-sm font-semibold text-white shadow hover:bg-emerald-400 focus:outline-none focus:ring-2 focus:ring-emerald-400 dark:bg-emerald-600 dark:hover:bg-emerald-500"
data-open-form
title="Créer une nouvelle tâche (N)">
<svg
class="w-4 h-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<title>Nouvelle tâche</title>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 4v16m8-8H4" />
</svg>
Nouvelle tâche
</button>
</div>
</div>
<ul id="taskList" class="space-y-3"></ul>
</div>
</section>
<aside
id="formAside"
class="bg-gray-50 dark:bg-slate-900 p-4 rounded-xl h-full flex flex-col hidden border border-transparent dark:border-slate-800 transition-colors duration-300">
<form id="taskForm" class="flex flex-col h-full">
<div class="flex-grow space-y-4 overflow-auto p-6">
<div class="flex items-start justify-between">
<h2
id="task-title"
class="text-lg font-semibold text-gray-900 dark:text-slate-100">
Nouvelle tâche
</h2>
<button
type="button"
id="closeFormBtn"
class="rounded-full p-2 text-gray-500 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-emerald-400 dark:text-slate-300 dark:hover:bg-slate-800"
aria-label="Fermer le formulaire"
title="Fermer le formulaire">
<svg
class="w-4 h-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M6 18 18 6M6 6l12 12" />
</svg>
</button>
</div>
<div
id="formFeedback"
class="hidden"
role="status"
aria-live="polite"></div>
<!-- Champ Titre -->
<div>
<label
for="title"
class="block text-sm font-normal text-gray-500 dark:text-slate-300">
Titre
</label>
<div
class="mt-2 flex items-center rounded-md pl-3 outline outline-1 -outline-offset-1 outline-gray-300 focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-emerald-500 dark:outline-slate-700">
<input
type="text"
id="title"
name="title"
placeholder="Entrez un titre"
required
class="block w-full py-1.5 pr-3 pl-1 text-base text-gray-900 placeholder:text-gray-400 focus:outline-none sm:text-sm dark:bg-slate-800 dark:text-slate-100 dark:placeholder:text-slate-400" />
</div>
</div>
<!-- Champ Description -->
<div>
<label
for="description"
class="block text-sm font-normal text-gray-500 dark:text-slate-300">
Description
</label>
<div
class="mt-2 flex rounded-md outline outline-1 -outline-offset-1 outline-gray-300 focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-emerald-500 dark:outline-slate-700">
<textarea
id="description"
name="description"
rows="5"
placeholder="Décrivez la tâche..."
class="block w-full resize-none py-1.5 px-3 text-base text-gray-900 placeholder:text-gray-400 focus:outline-none sm:text-sm dark:bg-slate-800 dark:text-slate-100 dark:placeholder:text-slate-400"></textarea>
</div>
</div>
<div class="grid grid-cols-6 gap-y-3">
<!-- Champ Catégorie -->
<div class="col-span-5">
<div class="flex flex-row items-center justify-between gap-6">
<label
for="category"
class="block text-sm font-normal text-gray-500 dark:text-slate-300">
Catégorie
</label>
<div
class="mt-2 flex rounded-md outline outline-1 -outline-offset-1 outline-gray-300 focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-emerald-500 dark:outline-slate-700">
<select
id="category"
name="category"
class="block w-36 py-1.5 px-3 text-base text-gray-900 focus:outline-none sm:text-sm bg-transparent dark:bg-slate-800 dark:text-slate-100">
<option value="Par defaut">Par défaut</option>
<option value="Étude">Étude</option>
<option value="Travail">Travail</option>
<option value="Santé">Santé</option>
<option value="Personnel">Personnel</option>
</select>
</div>
</div>
</div>
<!-- Champ Date -->
<div class="col-span-5">
<div class="flex flex-row items-center justify-between gap-6">
<label
for="dueDate"
class="block text-sm font-normal text-gray-500 dark:text-slate-300">
Date d'échéance
</label>
<div
class="mt-2 flex rounded-md pl-3 outline outline-1 -outline-offset-1 outline-gray-300 focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-emerald-500 dark:outline-slate-700">
<input
type="date"
id="dueDate"
name="dueDate"
class="block w-32 py-1.5 pr-3 pl-1 text-base text-gray-900 focus:outline-none sm:text-sm bg-transparent dark:bg-slate-800 dark:text-slate-100" />
</div>
</div>
</div>
<!-- Champ Statut -->
<div class="col-span-5">
<div class="flex flex-row items-center justify-between gap-6">
<label
for="status"
class="block text-sm font-normal text-gray-500 dark:text-slate-300">
Statut
</label>
<div
class="mt-2 flex w-36 rounded-md outline outline-1 -outline-offset-1 outline-gray-300 focus-within:outline-2 focus-within:-outline-offset-2 focus-within:outline-emerald-500 dark:outline-slate-700">
<select
id="status"
name="status"
class="block w-full py-1.5 px-3 text-base text-gray-900 focus:outline-none sm:text-sm bg-transparent dark:bg-slate-800 dark:text-slate-100">
<option value="pending">À faire</option>
<option value="in-progress">En cours</option>
<option value="overdue">En retard</option>
<option value="completed">Terminée</option>
</select>
</div>
</div>
</div>
<!-- Priorité -->
<div class="col-span-5">
<div class="flex items-center justify-between gap-3">
<label
for="priority"
class="block text-sm font-normal text-gray-500 dark:text-slate-300">
Prioritaire
</label>
<div class="mt-2 flex items-center gap-2">
<input
type="checkbox"
id="priority"
name="priority"
class="h-4 w-4 rounded border-gray-300 text-amber-500 focus:ring-2 focus:ring-amber-400 dark:border-slate-600" />
<span class="text-xs font-medium text-amber-500">Tag “Prioritaire”</span>
</div>
</div>
</div>
</div>
<!-- Footer collé en bas -->
<div
class="sticky bottom-0 pt-4 pb-6 flex flex-col sm:flex-row gap-4 px-6 bg-gray-50">
<button
type="submit"
id="submit-btn"
class="w-full sm:w-auto grow rounded-lg bg-emerald-500 px-6 py-3 text-lg font-bold text-white shadow hover:bg-emerald-400 focus:outline-none focus:ring-2 focus:ring-emerald-400">
Ajouter une tâche
</button>
</div>
</form>
</aside>
</main>
<div id="settingsModal" class="fixed inset-0 z-40 hidden">
<div id="settingsOverlay" class="absolute inset-0 bg-black/40"></div>
<div
class="absolute right-0 top-0 h-full w-full max-w-lg bg-white shadow-2xl flex flex-col dark:bg-slate-900 dark:text-slate-100">
<header class="flex items-center justify-between border-b px-6 py-4">
<div>
<h2 class="text-lg font-semibold text-gray-900">Paramètres</h2>
<p class="text-sm text-gray-500">Personnalisez votre expérience.</p>
</div>
<button
id="closeSettingsBtn"
class="rounded-full p-2 text-gray-500 hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-emerald-400"
aria-label="Fermer les paramètres"
title="Fermer les paramètres">
<svg
class="w-4 h-4"
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round">
<path d="M6 18 18 6M6 6l12 12" />
</svg>
</button>
</header>
<div class="flex-1 overflow-y-auto px-6 py-4 space-y-6">
<section class="space-y-3">
<h3
class="text-sm font-semibold text-gray-700 uppercase tracking-wide">
Langue & Affichage
</h3>
<div class="grid gap-3">
<label class="flex flex-col text-sm text-gray-600">
<span>Langue de l’interface</span>
<select
id="settingsLanguage"
class="mt-1 rounded-md border border-gray-300 px-3 py-2 text-sm text-gray-700 focus:border-emerald-400 focus:outline-none">
<option value="fr">Français</option>
<option value="en" disabled>English (bientôt)</option>
</select>
</label>
<label class="flex flex-col text-sm text-gray-600">
<span>Thème</span>
<select
id="settingsTheme"
class="mt-1 rounded-md border border-gray-300 px-3 py-2 text-sm text-gray-700 focus:border-emerald-400 focus:outline-none">
<option value="light">Clair</option>
<option value="dark">Sombre</option>
</select>
</label>
<label class="flex flex-col text-sm text-gray-600">
<span>Densité de la liste</span>
<select
id="settingsDensity"
class="mt-1 rounded-md border border-gray-300 px-3 py-2 text-sm text-gray-700 focus:border-emerald-400 focus:outline-none">
<option value="comfortable">Confortable</option>
<option value="compact">Compact</option>
</select>
</label>
</div>
</section>
<section class="space-y-3">
<h3
class="text-sm font-semibold text-gray-700 uppercase tracking-wide">
Notifications
</h3>
<label class="flex items-center gap-2 text-sm text-gray-600">
<input
type="checkbox"
id="settingsFeedback"
class="h-4 w-4 rounded border-gray-300 text-emerald-500 focus:ring-emerald-400" />
<span>Afficher les messages de confirmation</span>
</label>
</section>
<section class="space-y-3">
<h3
class="text-sm font-semibold text-gray-700 uppercase tracking-wide">
Gestion des catégories
</h3>
<p class="text-xs text-gray-500">
Renommez ou supprimez vos catégories personnalisées.
</p>
<ul id="settingsCategoriesList" class="space-y-2"></ul>
<form id="settingsAddCategoryForm" class="flex gap-2">
<input
type="text"
id="settingsAddCategoryInput"
placeholder="Nouvelle catégorie"
class="w-full rounded-md border border-gray-300 px-3 py-2 text-sm text-gray-700 focus:border-emerald-400 focus:outline-none" />
<button
type="submit"
class="rounded-md bg-emerald-500 px-3 py-2 text-sm font-semibold text-white hover:bg-emerald-400">
Ajouter
</button>
</form>
</section>
<section class="space-y-3">
<h3
class="text-sm font-semibold text-gray-700 uppercase tracking-wide">
Données
</h3>
<div class="flex flex-col gap-2 text-sm text-gray-600">
<button
id="settingsExportBtn"
type="button"
class="rounded-md border border-gray-300 px-3 py-2 text-left hover:bg-gray-100">
Exporter les tâches (JSON)
</button>
<button
id="settingsImportBtn"
type="button"
class="rounded-md border border-gray-300 px-3 py-2 text-left hover:bg-gray-100">
Importer des tâches (JSON)
</button>
<button
id="settingsResetBtn"
type="button"
class="rounded-md border border-rose-300 px-3 py-2 text-left text-rose-600 hover:bg-rose-50">
Réinitialiser l’application
</button>
</div>
</section>
</div>
</div>
</div>
<input
type="file"
id="settingsImportFile"
class="hidden"
accept="application/json" />
<button
type="button"
id="floatingNewTaskBtn"
class="fixed bottom-5 right-5 z-30 inline-flex h-14 w-14 items-center justify-center rounded-full bg-emerald-500 text-white shadow-lg shadow-emerald-500/30 transition hover:scale-105 focus:outline-none focus:ring-2 focus:ring-emerald-400 sm:hidden"
data-open-form
title="Créer une nouvelle tâche (N)">
<span class="text-2xl leading-none">+</span>
</button>
<div
id="undoToast"
class="pointer-events-none fixed bottom-6 left-1/2 z-40 hidden w-[90%] max-w-sm -translate-x-1/2 transform rounded-lg bg-gray-900/95 px-4 py-3 text-sm text-white shadow-lg"
role="status"
aria-live="assertive">
<div class="flex items-center justify-between gap-3">
<p id="undoToastMessage" class="text-sm"></p>
<button
id="undoToastAction"
type="button"
class="pointer-events-auto rounded-md bg-white/10 px-3 py-1 text-xs font-semibold text-white hover:bg-white/20 focus:outline-none focus:ring-2 focus:ring-white/70">
Annuler
</button>
</div>
</div>
<div
id="onboardingModal"
class="fixed inset-0 z-50 hidden items-center justify-center bg-black/50 p-4"
tabindex="-1"
role="dialog"
aria-modal="true"
aria-labelledby="onboardingTitle">
<div class="w-full max-w-lg rounded-xl bg-white p-6 shadow-xl dark:bg-slate-900 dark:text-slate-100">
<div class="flex items-start justify-between">
<h2 id="onboardingTitle" class="text-xl font-semibold text-gray-900 dark:text-slate-100">
Bienvenue sur TaskZen
</h2>
<button
type="button"
id="onboardingSkip"
class="text-sm font-medium text-gray-500 hover:text-gray-700 focus:outline-none focus:ring-2 focus:ring-emerald-400 dark:text-slate-400 dark:hover:text-slate-200"
title="Ignorer l’introduction">
Sauter
</button>
</div>
<div id="onboardingBody" class="mt-4 space-y-3 text-sm text-gray-600 dark:text-slate-300"></div>
<div class="mt-6 flex items-center justify-between">
<button
type="button"
id="onboardingPrev"
class="rounded-md border border-gray-300 px-4 py-2 text-sm font-medium text-gray-600 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-emerald-400 disabled:cursor-not-allowed disabled:opacity-40 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
disabled>
Précédent
</button>
<div class="flex items-center gap-2">
<div class="flex items-center gap-1" id="onboardingDots" aria-hidden="true"></div>
<button
type="button"
id="onboardingNext"
class="rounded-md bg-emerald-500 px-4 py-2 text-sm font-semibold text-white shadow hover:bg-emerald-400 focus:outline-none focus:ring-2 focus:ring-emerald-400 dark:bg-emerald-600 dark:hover:bg-emerald-500">
Suivant
</button>
</div>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>