-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·94 lines (89 loc) · 3.5 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Gestion de Contacts</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"
rel="stylesheet"
/>
</head>
<body class="bg-gray-100 p-8">
<div id="app" class="max-w-5xl mx-auto bg-white rounded-lg shadow-lg flex">
<!-- Aside gauche pour le formulaire -->
<aside class="w-1/3 bg-gray-200 p-6 rounded-l-lg">
<h2 class="text-xl font-bold mb-4">Ajouter / Modifier Contact</h2>
<div class="mb-4">
<label class="block text-gray-700">Nom</label>
<input
type="text"
class="mt-1 block w-full px-3 py-2 bg-gray-100 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
placeholder="Nom du contact"
/>
</div>
<div class="mb-4">
<label class="block text-gray-700">Téléphone</label>
<input
type="text"
class="mt-1 block w-full px-3 py-2 bg-gray-100 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
placeholder="Numéro de téléphone"
/>
</div>
<div class="mb-4">
<label class="block text-gray-700">Email</label>
<input
type="email"
class="mt-1 block w-full px-3 py-2 bg-gray-100 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
placeholder="Adresse email"
/>
</div>
<button
class="w-full bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-md"
>
Ajouter/Modifier le contact
</button>
</aside>
<!-- Section droite pour la liste des contacts -->
<section class="w-2/3 p-6">
<h2 class="text-xl font-bold mb-4">Liste des Contacts</h2>
<p class="text-gray-600 mb-4">Nombre de contacts : xxx</p>
<!-- Filtre de recherche -->
<div class="mb-4">
<input
type="text"
class="mt-1 block w-full px-3 py-2 bg-gray-100 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
placeholder="Rechercher un contact"
/>
</div>
<!-- Liste des contacts triée et filtrée -->
<ul class="space-y-4">
<li
class="flex justify-between items-center bg-gray-50 p-4 rounded-lg shadow-sm"
>
<div>
<p class="text-lg font-semibold">Name</p>
<p class="text-gray-600">phone</p>
<p class="text-gray-600">email</p>
</div>
<div class="flex space-x-2">
<button
class="bg-yellow-400 hover:bg-yellow-500 text-white font-bold py-2 px-4 rounded-md"
>
Modifier
</button>
<button
class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-md"
>
Supprimer
</button>
</div>
</li>
</ul>
</section>
</div>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script></script>
</body>
</html>