Pbuvard commited on
Commit
e995f10
·
verified ·
1 Parent(s): 9118e2e

undefined - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +597 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Test
3
- emoji: 🦀
4
- colorFrom: indigo
5
- colorTo: purple
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: test
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: gray
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,597 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="fr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>T-Shirt Store | Votre boutique de t-shirts premium</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ /* Animation pour le bouton panier */
11
+ @keyframes pulse {
12
+ 0% { transform: scale(1); }
13
+ 50% { transform: scale(1.1); }
14
+ 100% { transform: scale(1); }
15
+ }
16
+ .animate-pulse {
17
+ animation: pulse 1s infinite;
18
+ }
19
+
20
+ /* Transition pour les cartes produits */
21
+ .product-card {
22
+ transition: all 0.3s ease;
23
+ }
24
+ .product-card:hover {
25
+ transform: translateY(-5px);
26
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
27
+ }
28
+
29
+ /* Style personnalisé pour le menu déroulant */
30
+ .dropdown:hover .dropdown-menu {
31
+ display: block;
32
+ }
33
+ </style>
34
+ </head>
35
+ <body class="bg-gray-50 font-sans">
36
+ <!-- Barre de navigation -->
37
+ <nav class="bg-white shadow-lg sticky top-0 z-50">
38
+ <div class="max-w-7xl mx-auto px-4">
39
+ <div class="flex justify-between items-center h-16">
40
+ <!-- Logo -->
41
+ <div class="flex-shrink-0 flex items-center">
42
+ <span class="text-xl font-bold text-indigo-600">T-SHIRT STORE</span>
43
+ </div>
44
+
45
+ <!-- Menu principal -->
46
+ <div class="hidden md:block">
47
+ <div class="ml-10 flex items-center space-x-4">
48
+ <a href="#" class="text-gray-900 px-3 py-2 rounded-md text-sm font-medium hover:bg-gray-100">Accueil</a>
49
+ <div class="dropdown relative">
50
+ <button class="text-gray-900 px-3 py-2 rounded-md text-sm font-medium hover:bg-gray-100 flex items-center">
51
+ Collections <i class="fas fa-chevron-down ml-1 text-xs"></i>
52
+ </button>
53
+ <div class="dropdown-menu absolute hidden bg-white mt-2 py-2 w-48 rounded-md shadow-lg z-50">
54
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Nouveautés</a>
55
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Best-sellers</a>
56
+ <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Édition limitée</a>
57
+ </div>
58
+ </div>
59
+ <a href="#" class="text-gray-900 px-3 py-2 rounded-md text-sm font-medium hover:bg-gray-100">Homme</a>
60
+ <a href="#" class="text-gray-900 px-3 py-2 rounded-md text-sm font-medium hover:bg-gray-100">Femme</a>
61
+ <a href="#" class="text-gray-900 px-3 py-2 rounded-md text-sm font-medium hover:bg-gray-100">Enfant</a>
62
+ <a href="#" class="text-gray-900 px-3 py-2 rounded-md text-sm font-medium hover:bg-gray-100">Contact</a>
63
+ </div>
64
+ </div>
65
+
66
+ <!-- Icônes utilisateur/panier -->
67
+ <div class="flex items-center space-x-4">
68
+ <button class="p-2 rounded-full text-gray-600 hover:text-gray-900 hover:bg-gray-100">
69
+ <i class="fas fa-search"></i>
70
+ </button>
71
+ <button class="p-2 rounded-full text-gray-600 hover:text-gray-900 hover:bg-gray-100">
72
+ <i class="fas fa-user"></i>
73
+ </button>
74
+ <button id="cart-btn" class="p-2 rounded-full text-gray-600 hover:text-gray-900 hover:bg-gray-100 relative">
75
+ <i class="fas fa-shopping-cart"></i>
76
+ <span id="cart-count" class="absolute -top-1 -right-1 bg-indigo-600 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center hidden">0</span>
77
+ </button>
78
+
79
+ <!-- Menu mobile -->
80
+ <button id="mobile-menu-button" class="md:hidden p-2 rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-100">
81
+ <i class="fas fa-bars"></i>
82
+ </button>
83
+ </div>
84
+ </div>
85
+ </div>
86
+
87
+ <!-- Menu mobile (caché par défaut) -->
88
+ <div id="mobile-menu" class="md:hidden hidden">
89
+ <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
90
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 hover:bg-gray-100">Accueil</a>
91
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 hover:bg-gray-100">Collections</a>
92
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 hover:bg-gray-100">Homme</a>
93
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 hover:bg-gray-100">Femme</a>
94
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 hover:bg-gray-100">Enfant</a>
95
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 hover:bg-gray-100">Contact</a>
96
+ </div>
97
+ </div>
98
+ </nav>
99
+
100
+ <!-- Bannière hero -->
101
+ <div class="relative bg-indigo-700 overflow-hidden">
102
+ <div class="max-w-7xl mx-auto">
103
+ <div class="relative z-10 pb-8 bg-indigo-700 sm:pb-16 md:pb-20 lg:max-w-2xl lg:w-full lg:pb-28 xl:pb-32">
104
+ <div class="pt-10 sm:pt-16 lg:pt-8 lg:pb-14 lg:overflow-hidden">
105
+ <div class="mt-10 mx-auto max-w-7xl px-4 sm:mt-12 sm:px-6 md:mt-16 lg:mt-20 lg:px-8 xl:mt-28">
106
+ <div class="sm:text-center lg:text-left">
107
+ <h1 class="text-4xl tracking-tight font-extrabold text-white sm:text-5xl md:text-6xl">
108
+ <span class="block">Collection Été 2023</span>
109
+ <span class="block text-indigo-200">Des t-shirts uniques</span>
110
+ </h1>
111
+ <p class="mt-3 text-base text-indigo-200 sm:mt-5 sm:text-lg sm:max-w-xl sm:mx-auto md:mt-5 md:text-xl lg:mx-0">
112
+ Découvrez notre nouvelle collection de t-shirts fabriqués à partir de coton bio et conçus pour durer.
113
+ </p>
114
+ <div class="mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-start">
115
+ <div class="rounded-md shadow">
116
+ <a href="#" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-indigo-700 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10">
117
+ Voir la collection
118
+ </a>
119
+ </div>
120
+ <div class="mt-3 sm:mt-0 sm:ml-3">
121
+ <a href="#" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-500 bg-opacity-60 hover:bg-opacity-70 md:py-4 md:text-lg md:px-10">
122
+ En savoir plus
123
+ </a>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </div>
131
+ <div class="lg:absolute lg:inset-y-0 lg:right-0 lg:w-1/2">
132
+ <img class="h-56 w-full object-cover sm:h-72 md:h-96 lg:w-full lg:h-full" src="https://images.unsplash.com/photo-1529374255404-311a2a4f1fd9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80" alt="Collection de t-shirts">
133
+ </div>
134
+ </div>
135
+
136
+ <!-- Section produits populaires -->
137
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
138
+ <div class="text-center mb-12">
139
+ <h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">Nos best-sellers</h2>
140
+ <p class="mt-4 max-w-xl mx-auto text-gray-500">Découvrez les t-shirts les plus populaires de notre boutique.</p>
141
+ </div>
142
+
143
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8">
144
+ <!-- Produit 1 -->
145
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
146
+ <div class="relative">
147
+ <img class="w-full h-64 object-cover" src="https://images.unsplash.com/photo-1576566588028-4147f3842f27?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80" alt="T-shirt graphique">
148
+ <div class="absolute top-0 right-0 p-2">
149
+ <button class="p-2 rounded-full bg-white text-gray-800 hover:text-indigo-600">
150
+ <i class="far fa-heart"></i>
151
+ </button>
152
+ </div>
153
+ <div class="absolute bottom-0 left-0 bg-indigo-600 text-white px-2 py-1 text-xs font-bold">
154
+ NOUVEAU
155
+ </div>
156
+ </div>
157
+ <div class="p-4">
158
+ <h3 class="text-lg font-semibold text-gray-900">T-shirt Graphique</h3>
159
+ <p class="text-gray-600 text-sm mt-1">Design exclusif - Coton bio</p>
160
+ <div class="mt-3 flex justify-between items-center">
161
+ <span class="text-lg font-bold text-gray-900">29,99€</span>
162
+ <button class="add-to-cart bg-indigo-600 text-white px-3 py-1 rounded-md text-sm hover:bg-indigo-700 transition" data-id="1" data-name="T-shirt Graphique" data-price="29.99">
163
+ Ajouter au panier
164
+ </button>
165
+ </div>
166
+ </div>
167
+ </div>
168
+
169
+ <!-- Produit 2 -->
170
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
171
+ <div class="relative">
172
+ <img class="w-full h-64 object-cover" src="https://images.unsplash.com/photo-1527719327859-c6ce80353573?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80" alt="T-shirt uni">
173
+ <div class="absolute top-0 right-0 p-2">
174
+ <button class="p-2 rounded-full bg-white text-gray-800 hover:text-indigo-600">
175
+ <i class="far fa-heart"></i>
176
+ </button>
177
+ </div>
178
+ </div>
179
+ <div class="p-4">
180
+ <h3 class="text-lg font-semibold text-gray-900">T-shirt Uni</h3>
181
+ <p class="text-gray-600 text-sm mt-1">Couleurs vives - 100% coton</p>
182
+ <div class="mt-3 flex justify-between items-center">
183
+ <span class="text-lg font-bold text-gray-900">24,99€</span>
184
+ <button class="add-to-cart bg-indigo-600 text-white px-3 py-1 rounded-md text-sm hover:bg-indigo-700 transition" data-id="2" data-name="T-shirt Uni" data-price="24.99">
185
+ Ajouter au panier
186
+ </button>
187
+ </div>
188
+ </div>
189
+ </div>
190
+
191
+ <!-- Produit 3 -->
192
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
193
+ <div class="relative">
194
+ <img class="w-full h-64 object-cover" src="https://images.unsplash.com/photo-1521572163474-6864f9cf17ab?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80" alt="T-shirt vintage">
195
+ <div class="absolute top-0 right-0 p-2">
196
+ <button class="p-2 rounded-full bg-white text-gray-800 hover:text-indigo-600">
197
+ <i class="far fa-heart"></i>
198
+ </button>
199
+ </div>
200
+ <div class="absolute bottom-0 left-0 bg-red-500 text-white px-2 py-1 text-xs font-bold">
201
+ PROMO -20%
202
+ </div>
203
+ </div>
204
+ <div class="p-4">
205
+ <h3 class="text-lg font-semibold text-gray-900">T-shirt Vintage</h3>
206
+ <p class="text-gray-600 text-sm mt-1">Style rétro - Coupe oversize</p>
207
+ <div class="mt-3 flex justify-between items-center">
208
+ <div>
209
+ <span class="text-lg font-bold text-gray-900">22,49€</span>
210
+ <span class="text-sm text-gray-500 line-through ml-2">27,99€</span>
211
+ </div>
212
+ <button class="add-to-cart bg-indigo-600 text-white px-3 py-1 rounded-md text-sm hover:bg-indigo-700 transition" data-id="3" data-name="T-shirt Vintage" data-price="22.49">
213
+ Ajouter au panier
214
+ </button>
215
+ </div>
216
+ </div>
217
+ </div>
218
+
219
+ <!-- Produit 4 -->
220
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md">
221
+ <div class="relative">
222
+ <img class="w-full h-64 object-cover" src="https://images.unsplash.com/photo-1583743814966-8936f5b7be1a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80" alt="T-shirt sport">
223
+ <div class="absolute top-0 right-0 p-2">
224
+ <button class="p-2 rounded-full bg-white text-gray-800 hover:text-indigo-600">
225
+ <i class="far fa-heart"></i>
226
+ </button>
227
+ </div>
228
+ </div>
229
+ <div class="p-4">
230
+ <h3 class="text-lg font-semibold text-gray-900">T-shirt Sport</h3>
231
+ <p class="text-gray-600 text-sm mt-1">Respirant - Séchage rapide</p>
232
+ <div class="mt-3 flex justify-between items-center">
233
+ <span class="text-lg font-bold text-gray-900">34,99€</span>
234
+ <button class="add-to-cart bg-indigo-600 text-white px-3 py-1 rounded-md text-sm hover:bg-indigo-700 transition" data-id="4" data-name="T-shirt Sport" data-price="34.99">
235
+ Ajouter au panier
236
+ </button>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ </div>
241
+
242
+ <div class="mt-12 text-center">
243
+ <a href="#" class="inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700">
244
+ Voir tous les produits
245
+ <i class="fas fa-arrow-right ml-2"></i>
246
+ </a>
247
+ </div>
248
+ </div>
249
+
250
+ <!-- Section avantages -->
251
+ <div class="bg-gray-100 py-12">
252
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
253
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
254
+ <div class="text-center p-6 bg-white rounded-lg shadow-sm">
255
+ <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-indigo-100 text-indigo-600 mb-4">
256
+ <i class="fas fa-leaf text-xl"></i>
257
+ </div>
258
+ <h3 class="text-lg font-medium text-gray-900">Matériaux durables</h3>
259
+ <p class="mt-2 text-gray-600">Nos t-shirts sont fabriqués à partir de coton bio et de matériaux recyclés.</p>
260
+ </div>
261
+
262
+ <div class="text-center p-6 bg-white rounded-lg shadow-sm">
263
+ <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-indigo-100 text-indigo-600 mb-4">
264
+ <i class="fas fa-truck text-xl"></i>
265
+ </div>
266
+ <h3 class="text-lg font-medium text-gray-900">Livraison rapide</h3>
267
+ <p class="mt-2 text-gray-600">Expédition sous 24h et livraison gratuite à partir de 50€ d'achat.</p>
268
+ </div>
269
+
270
+ <div class="text-center p-6 bg-white rounded-lg shadow-sm">
271
+ <div class="mx-auto flex items-center justify-center h-12 w-12 rounded-md bg-indigo-100 text-indigo-600 mb-4">
272
+ <i class="fas fa-undo text-xl"></i>
273
+ </div>
274
+ <h3 class="text-lg font-medium text-gray-900">Retours faciles</h3>
275
+ <p class="mt-2 text-gray-600">30 jours pour changer d'avis, retour gratuit et sans frais.</p>
276
+ </div>
277
+ </div>
278
+ </div>
279
+ </div>
280
+
281
+ <!-- Section newsletter -->
282
+ <div class="bg-indigo-700 py-12">
283
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
284
+ <div class="md:flex md:items-center md:justify-between">
285
+ <div class="md:w-1/2">
286
+ <h2 class="text-2xl font-bold text-white">Abonnez-vous à notre newsletter</h2>
287
+ <p class="mt-2 text-indigo-200">Recevez en exclusivité nos offres spéciales et nouveautés.</p>
288
+ </div>
289
+ <div class="mt-4 md:mt-0 md:w-1/2">
290
+ <form class="flex">
291
+ <input type="email" placeholder="Votre email" class="flex-1 px-4 py-2 rounded-l-md focus:outline-none focus:ring-2 focus:ring-indigo-500">
292
+ <button type="submit" class="bg-indigo-900 text-white px-6 py-2 rounded-r-md hover:bg-indigo-800 focus:outline-none focus:ring-2 focus:ring-indigo-500">
293
+ S'abonner
294
+ </button>
295
+ </form>
296
+ <p class="mt-2 text-xs text-indigo-200">En vous abonnant, vous acceptez notre politique de confidentialité.</p>
297
+ </div>
298
+ </div>
299
+ </div>
300
+ </div>
301
+
302
+ <!-- Footer -->
303
+ <footer class="bg-gray-900 text-white pt-12 pb-8">
304
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
305
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
306
+ <div>
307
+ <h3 class="text-lg font-semibold mb-4">T-SHIRT STORE</h3>
308
+ <p class="text-gray-400 text-sm">Votre boutique en ligne de t-shirts premium depuis 2015.</p>
309
+ <div class="mt-4 flex space-x-4">
310
+ <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook-f"></i></a>
311
+ <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
312
+ <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></i></a>
313
+ <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-pinterest"></i></a>
314
+ </div>
315
+ </div>
316
+
317
+ <div>
318
+ <h3 class="text-lg font-semibold mb-4">Boutique</h3>
319
+ <ul class="space-y-2">
320
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Nouveautés</a></li>
321
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Collections</a></li>
322
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Homme</a></li>
323
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Femme</a></li>
324
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Enfant</a></li>
325
+ </ul>
326
+ </div>
327
+
328
+ <div>
329
+ <h3 class="text-lg font-semibold mb-4">Informations</h3>
330
+ <ul class="space-y-2">
331
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">À propos</a></li>
332
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Blog</a></li>
333
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Livraison</a></li>
334
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Retours</a></li>
335
+ <li><a href="#" class="text-gray-400 hover:text-white text-sm">Contact</a></li>
336
+ </ul>
337
+ </div>
338
+
339
+ <div>
340
+ <h3 class="text-lg font-semibold mb-4">Contact</h3>
341
+ <address class="text-gray-400 text-sm not-italic">
342
+ <p>123 Rue du Commerce</p>
343
+ <p>75000 Paris, France</p>
344
+ <p class="mt-2"><i class="fas fa-phone-alt mr-2"></i> +33 1 23 45 67 89</p>
345
+ <p><i class="fas fa-envelope mr-2"></i> contact@tshirtstore.com</p>
346
+ </address>
347
+ </div>
348
+ </div>
349
+
350
+ <div class="mt-12 pt-8 border-t border-gray-800 flex flex-col md:flex-row justify-between items-center">
351
+ <p class="text-gray-400 text-sm">© 2023 T-SHIRT STORE. Tous droits réservés.</p>
352
+ <div class="mt-4 md:mt-0 flex space-x-6">
353
+ <a href="#" class="text-gray-400 hover:text-white text-sm">Mentions légales</a>
354
+ <a href="#" class="text-gray-400 hover:text-white text-sm">CGV</a>
355
+ <a href="#" class="text-gray-400 hover:text-white text-sm">Politique de confidentialité</a>
356
+ </div>
357
+ </div>
358
+ </div>
359
+ </footer>
360
+
361
+ <!-- Panier latéral -->
362
+ <div id="cart-sidebar" class="fixed inset-y-0 right-0 w-full md:w-96 bg-white shadow-xl transform translate-x-full transition-transform duration-300 ease-in-out z-50 overflow-y-auto">
363
+ <div class="p-6">
364
+ <div class="flex justify-between items-center border-b pb-4">
365
+ <h2 class="text-xl font-bold text-gray-900">Votre panier</h2>
366
+ <button id="close-cart" class="text-gray-500 hover:text-gray-700">
367
+ <i class="fas fa-times"></i>
368
+ </button>
369
+ </div>
370
+
371
+ <div id="cart-items" class="mt-6 space-y-4">
372
+ <!-- Les articles du panier seront ajoutés ici dynamiquement -->
373
+ <div class="text-center py-8 text-gray-500" id="empty-cart-message">
374
+ <i class="fas fa-shopping-cart text-3xl mb-2"></i>
375
+ <p>Votre panier est vide</p>
376
+ </div>
377
+ </div>
378
+
379
+ <div class="border-t mt-6 pt-6">
380
+ <div class="flex justify-between mb-2">
381
+ <span class="text-gray-600">Sous-total</span>
382
+ <span id="cart-subtotal" class="font-medium">0,00€</span>
383
+ </div>
384
+ <div class="flex justify-between mb-2">
385
+ <span class="text-gray-600">Livraison</span>
386
+ <span class="font-medium">Gratuite</span>
387
+ </div>
388
+ <div class="flex justify-between text-lg font-bold mt-4">
389
+ <span>Total</span>
390
+ <span id="cart-total">0,00€</span>
391
+ </div>
392
+
393
+ <div class="mt-6">
394
+ <button id="checkout-btn" class="w-full bg-indigo-600 text-white py-3 px-4 rounded-md hover:bg-indigo-700 disabled:opacity-50 disabled:cursor-not-allowed" disabled>
395
+ Passer la commande
396
+ </button>
397
+ <a href="#" class="block text-center mt-2 text-indigo-600 hover:text-indigo-800 text-sm">
398
+ Continuer mes achats
399
+ </a>
400
+ </div>
401
+ </div>
402
+ </div>
403
+ </div>
404
+ <div id="cart-overlay" class="hidden fixed inset-0 bg-black bg-opacity-50 z-40"></div>
405
+
406
+ <script>
407
+ // Gestion du menu mobile
408
+ const mobileMenuButton = document.getElementById('mobile-menu-button');
409
+ const mobileMenu = document.getElementById('mobile-menu');
410
+
411
+ mobileMenuButton.addEventListener('click', () => {
412
+ mobileMenu.classList.toggle('hidden');
413
+ });
414
+
415
+ // Gestion du panier
416
+ const cartBtn = document.getElementById('cart-btn');
417
+ const closeCartBtn = document.getElementById('close-cart');
418
+ const cartSidebar = document.getElementById('cart-sidebar');
419
+ const cartOverlay = document.getElementById('cart-overlay');
420
+ const cartCount = document.getElementById('cart-count');
421
+ const cartItemsContainer = document.getElementById('cart-items');
422
+ const emptyCartMessage = document.getElementById('empty-cart-message');
423
+ const cartSubtotal = document.getElementById('cart-subtotal');
424
+ const cartTotal = document.getElementById('cart-total');
425
+ const checkoutBtn = document.getElementById('checkout-btn');
426
+
427
+ let cart = [];
428
+
429
+ // Ouvrir/fermer le panier
430
+ cartBtn.addEventListener('click', () => {
431
+ cartSidebar.classList.remove('translate-x-full');
432
+ cartOverlay.classList.remove('hidden');
433
+ document.body.style.overflow = 'hidden';
434
+ });
435
+
436
+ closeCartBtn.addEventListener('click', () => {
437
+ cartSidebar.classList.add('translate-x-full');
438
+ cartOverlay.classList.add('hidden');
439
+ document.body.style.overflow = 'auto';
440
+ });
441
+
442
+ cartOverlay.addEventListener('click', () => {
443
+ cartSidebar.classList.add('translate-x-full');
444
+ cartOverlay.classList.add('hidden');
445
+ document.body.style.overflow = 'auto';
446
+ });
447
+
448
+ // Ajouter au panier
449
+ document.querySelectorAll('.add-to-cart').forEach(button => {
450
+ button.addEventListener('click', (e) => {
451
+ const productId = e.target.getAttribute('data-id');
452
+ const productName = e.target.getAttribute('data-name');
453
+ const productPrice = parseFloat(e.target.getAttribute('data-price'));
454
+
455
+ // Animation du bouton
456
+ e.target.innerHTML = '<i class="fas fa-check mr-1"></i> Ajouté';
457
+ e.target.classList.add('bg-green-600');
458
+ e.target.classList.remove('bg-indigo-600');
459
+
460
+ setTimeout(() => {
461
+ e.target.innerHTML = 'Ajouter au panier';
462
+ e.target.classList.remove('bg-green-600');
463
+ e.target.classList.add('bg-indigo-600');
464
+ }, 2000);
465
+
466
+ // Ajouter au panier
467
+ addToCart(productId, productName, productPrice);
468
+ });
469
+ });
470
+
471
+ function addToCart(id, name, price) {
472
+ // Vérifier si le produit est déjà dans le panier
473
+ const existingItem = cart.find(item => item.id === id);
474
+
475
+ if (existingItem) {
476
+ existingItem.quantity += 1;
477
+ } else {
478
+ cart.push({
479
+ id,
480
+ name,
481
+ price,
482
+ quantity: 1
483
+ });
484
+ }
485
+
486
+ updateCart();
487
+ }
488
+
489
+ function updateCart() {
490
+ // Mettre à jour le compteur
491
+ const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0);
492
+ cartCount.textContent = totalItems;
493
+
494
+ if (totalItems > 0) {
495
+ cartCount.classList.remove('hidden');
496
+ cartCount.classList.add('animate-pulse');
497
+ setTimeout(() => cartCount.classList.remove('animate-pulse'), 1000);
498
+ } else {
499
+ cartCount.classList.add('hidden');
500
+ }
501
+
502
+ // Mettre à jour le contenu du panier
503
+ if (cart.length === 0) {
504
+ emptyCartMessage.classList.remove('hidden');
505
+ cartItemsContainer.innerHTML = '';
506
+ cartItemsContainer.appendChild(emptyCartMessage);
507
+ checkoutBtn.disabled = true;
508
+ } else {
509
+ emptyCartMessage.classList.add('hidden');
510
+
511
+ let itemsHTML = '';
512
+ let subtotal = 0;
513
+
514
+ cart.forEach(item => {
515
+ const itemTotal = item.price * item.quantity;
516
+ subtotal += itemTotal;
517
+
518
+ itemsHTML += `
519
+ <div class="flex justify-between items-center border-b pb-4">
520
+ <div>
521
+ <h4 class="font-medium">${item.name}</h4>
522
+ <p class="text-sm text-gray-500">${item.price.toFixed(2)}€</p>
523
+ </div>
524
+ <div class="flex items-center">
525
+ <button class="decrease-quantity text-gray-500 px-2 py-1" data-id="${item.id}">
526
+ <i class="fas fa-minus text-xs"></i>
527
+ </button>
528
+ <span class="mx-2">${item.quantity}</span>
529
+ <button class="increase-quantity text-gray-500 px-2 py-1" data-id="${item.id}">
530
+ <i class="fas fa-plus text-xs"></i>
531
+ </button>
532
+ <button class="remove-item text-red-500 ml-4" data-id="${item.id}">
533
+ <i class="fas fa-trash"></i>
534
+ </button>
535
+ </div>
536
+ </div>
537
+ `;
538
+ });
539
+
540
+ cartItemsContainer.innerHTML = itemsHTML;
541
+
542
+ // Ajouter les événements aux nouveaux boutons
543
+ document.querySelectorAll('.decrease-quantity').forEach(button => {
544
+ button.addEventListener('click', (e) => {
545
+ const id = e.target.closest('button').getAttribute('data-id');
546
+ updateQuantity(id, -1);
547
+ });
548
+ });
549
+
550
+ document.querySelectorAll('.increase-quantity').forEach(button => {
551
+ button.addEventListener('click', (e) => {
552
+ const id = e.target.closest('button').getAttribute('data-id');
553
+ updateQuantity(id, 1);
554
+ });
555
+ });
556
+
557
+ document.querySelectorAll('.remove-item').forEach(button => {
558
+ button.addEventListener('click', (e) => {
559
+ const id = e.target.closest('button').getAttribute('data-id');
560
+ removeItem(id);
561
+ });
562
+ });
563
+
564
+ checkoutBtn.disabled = false;
565
+ }
566
+
567
+ // Mettre à jour les totaux
568
+ cartSubtotal.textContent = subtotal.toFixed(2) + '€';
569
+ cartTotal.textContent = subtotal.toFixed(2) + '€';
570
+ }
571
+
572
+ function updateQuantity(id, change) {
573
+ const item = cart.find(item => item.id === id);
574
+
575
+ if (item) {
576
+ item.quantity += change;
577
+
578
+ if (item.quantity <= 0) {
579
+ cart = cart.filter(item => item.id !== id);
580
+ }
581
+
582
+ updateCart();
583
+ }
584
+ }
585
+
586
+ function removeItem(id) {
587
+ cart = cart.filter(item => item.id !== id);
588
+ updateCart();
589
+ }
590
+
591
+ // Gestion du checkout
592
+ checkoutBtn.addEventListener('click', () => {
593
+ alert('Fonctionnalité de paiement à implémenter !');
594
+ });
595
+ </script>
596
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Pbuvard/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
597
+ </html>