-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (48 loc) · 2.02 KB
/
index.html
File metadata and controls
56 lines (48 loc) · 2.02 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
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Todo List Pro</title>
</head>
<body class="bg-gray-100">
<div id="app" class="min-h-screen flex items-center justify-center p-4">
<div class="bg-white rounded-lg shadow-lg w-full max-w-md p-6">
<!-- Titre -->
<h1 class="text-3xl font-bold text-gray-800 mb-6">Todo List</h1>
<!-- Input -->
<div class="flex gap-2 mb-6">
<input type="text" id="todoInput" placeholder="Ajouter une tâche..." class="flex-1 input-base" />
<button id="addBtn" class="btn-primary">
+
</button>
</div>
<!-- Liste des tâches -->
<ul id="todoList" class="space-y-2"></ul>
<!-- Compteur et Actions -->
<div class="mt-6 pt-4 border-t border-gray-200 flex items-center justify-between">
<div class="text-sm text-gray-600">
<span id="count">0</span> tâche(s)
</div>
<div id="actions" class="flex gap-2">
<!-- Input caché pour l'upload de fichier -->
<input type="file" id="fileInput" accept=".json" style="display: none;" />
<button id="import" class="btn-primary flex items-center gap-2">
<svg class="w-4 h-4" viewBox="0 0 24 24" stroke="currentColor" fill="none">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
</svg>
</button>
<button id="export" class="btn-primary flex items-center gap-2">
<svg class="w-4 h-4" viewBox="0 0 24 24" stroke="currentColor" fill="none">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 8v12a2 2 0 002 2h12a2 2 0 002-2V8m-4-4l-4-4m0 0l-4 4m4-4v12" />
</svg>
</button>
</div>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>