CIAG commited on
Commit
9e72fae
·
verified ·
1 Parent(s): ab75353

creé un site web comerce

Browse files
Files changed (2) hide show
  1. README.md +8 -5
  2. index.html +422 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Shopsphere
3
- emoji: 🌍
4
- colorFrom: indigo
5
- colorTo: green
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: ShopSphere 🛍️
3
+ colorFrom: red
4
+ colorTo: blue
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
index.html CHANGED
@@ -1,19 +1,423 @@
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="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>ShopSphere - Your Ultimate Shopping Destination</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <style>
12
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
13
+
14
+ body {
15
+ font-family: 'Poppins', sans-serif;
16
+ scroll-behavior: smooth;
17
+ }
18
+
19
+ .hero-gradient {
20
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
21
+ }
22
+
23
+ .product-card:hover {
24
+ transform: translateY(-5px);
25
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
26
+ }
27
+
28
+ .transition-all {
29
+ transition: all 0.3s ease;
30
+ }
31
+ </style>
32
+ </head>
33
+ <body class="bg-gray-50">
34
+ <!-- Navigation -->
35
+ <nav class="bg-white shadow-md sticky top-0 z-50">
36
+ <div class="container mx-auto px-6 py-3">
37
+ <div class="flex items-center justify-between">
38
+ <div class="flex items-center">
39
+ <a href="#" class="text-2xl font-bold text-gray-800">ShopSphere</a>
40
+ </div>
41
+ <div class="flex items-center space-x-4">
42
+ <a href="#" class="text-gray-600 hover:text-gray-800">Home</a>
43
+ <a href="#" class="text-gray-600 hover:text-gray-800">Shop</a>
44
+ <a href="#" class="text-gray-600 hover:text-gray-800">About</a>
45
+ <a href="#" class="text-gray-600 hover:text-gray-800">Contact</a>
46
+ </div>
47
+ <div class="flex items-center space-x-4">
48
+ <a href="#" class="text-gray-600 hover:text-gray-800">
49
+ <i data-feather="search"></i>
50
+ </a>
51
+ <a href="#" class="text-gray-600 hover:text-gray-800">
52
+ <i data-feather="user"></i>
53
+ </a>
54
+ <a href="#" class="text-gray-600 hover:text-gray-800 relative">
55
+ <i data-feather="shopping-cart"></i>
56
+ <span class="absolute -top-2 -right-2 bg-indigo-600 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
57
+ </a>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </nav>
62
+
63
+ <!-- Hero Section -->
64
+ <section class="hero-gradient text-white py-20">
65
+ <div class="container mx-auto px-6 text-center">
66
+ <h1 class="text-4xl md:text-6xl font-bold mb-6">Welcome to ShopSphere</h1>
67
+ <p class="text-xl md:text-2xl mb-8">Discover amazing products at unbeatable prices</p>
68
+ <button class="bg-white text-indigo-600 font-bold py-3 px-8 rounded-full hover:bg-gray-100 transition-all">
69
+ Shop Now
70
+ </button>
71
+ </div>
72
+ </section>
73
+
74
+ <!-- Featured Categories -->
75
+ <section class="py-16 bg-white">
76
+ <div class="container mx-auto px-6">
77
+ <h2 class="text-3xl font-bold text-center mb-12">Shop by Category</h2>
78
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
79
+ <!-- Category 1 -->
80
+ <div class="bg-gray-100 rounded-lg overflow-hidden transition-all hover:shadow-lg">
81
+ <img src="http://static.photos/technology/640x360/1" alt="Electronics" class="w-full h-48 object-cover">
82
+ <div class="p-6">
83
+ <h3 class="text-xl font-semibold mb-2">Electronics</h3>
84
+ <p class="text-gray-600">Latest gadgets and devices</p>
85
+ <a href="#" class="text-indigo-600 font-medium mt-4 inline-block">Explore →</a>
86
+ </div>
87
+ </div>
88
+
89
+ <!-- Category 2 -->
90
+ <div class="bg-gray-100 rounded-lg overflow-hidden transition-all hover:shadow-lg">
91
+ <img src="http://static.photos/fashion/640x360/2" alt="Fashion" class="w-full h-48 object-cover">
92
+ <div class="p-6">
93
+ <h3 class="text-xl font-semibold mb-2">Fashion</h3>
94
+ <p class="text-gray-600">Trendy clothes and accessories</p>
95
+ <a href="#" class="text-indigo-600 font-medium mt-4 inline-block">Explore →</a>
96
+ </div>
97
+ </div>
98
+
99
+ <!-- Category 3 -->
100
+ <div class="bg-gray-100 rounded-lg overflow-hidden transition-all hover:shadow-lg">
101
+ <img src="http://static.photos/home/640x360/3" alt="Home & Living" class="w-full h-48 object-cover">
102
+ <div class="p-6">
103
+ <h3 class="text-xl font-semibold mb-2">Home & Living</h3>
104
+ <p class="text-gray-600">Furniture and decor items</p>
105
+ <a href="#" class="text-indigo-600 font-medium mt-4 inline-block">Explore →</a>
106
+ </div>
107
+ </div>
108
+
109
+ <!-- Category 4 -->
110
+ <div class="bg-gray-100 rounded-lg overflow-hidden transition-all hover:shadow-lg">
111
+ <img src="http://static.photos/beauty/640x360/4" alt="Beauty" class="w-full h-48 object-cover">
112
+ <div class="p-6">
113
+ <h3 class="text-xl font-semibold mb-2">Beauty</h3>
114
+ <p class="text-gray-600">Skincare and makeup products</p>
115
+ <a href="#" class="text-indigo-600 font-medium mt-4 inline-block">Explore →</a>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ </section>
121
+
122
+ <!-- Featured Products -->
123
+ <section class="py-16 bg-gray-50">
124
+ <div class="container mx-auto px-6">
125
+ <h2 class="text-3xl font-bold text-center mb-12">Featured Products</h2>
126
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
127
+ <!-- Product 1 -->
128
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all">
129
+ <div class="relative">
130
+ <img src="http://static.photos/technology/640x360/5" alt="Wireless Headphones" class="w-full h-64 object-cover">
131
+ <div class="absolute top-2 right-2 bg-indigo-600 text-white text-xs px-2 py-1 rounded-full">NEW</div>
132
+ </div>
133
+ <div class="p-6">
134
+ <h3 class="text-xl font-semibold mb-2">Wireless Headphones</h3>
135
+ <div class="flex items-center mb-3">
136
+ <div class="flex text-yellow-400">
137
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
138
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
139
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
140
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
141
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
142
+ </div>
143
+ <span class="text-gray-600 text-sm ml-2">(48)</span>
144
+ </div>
145
+ <div class="flex justify-between items-center">
146
+ <span class="text-xl font-bold">$129.99</span>
147
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition-all">
148
+ <i data-feather="shopping-cart" class="w-4 h-4"></i>
149
+ </button>
150
+ </div>
151
+ </div>
152
+ </div>
153
+
154
+ <!-- Product 2 -->
155
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all">
156
+ <div class="relative">
157
+ <img src="http://static.photos/fashion/640x360/6" alt="Smart Watch" class="w-full h-64 object-cover">
158
+ <div class="absolute top-2 right-2 bg-red-500 text-white text-xs px-2 py-1 rounded-full">SALE</div>
159
+ </div>
160
+ <div class="p-6">
161
+ <h3 class="text-xl font-semibold mb-2">Smart Watch</h3>
162
+ <div class="flex items-center mb-3">
163
+ <div class="flex text-yellow-400">
164
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
165
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
166
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
167
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
168
+ <i data-feather="star" class="w-4 h-4"></i>
169
+ </div>
170
+ <span class="text-gray-600 text-sm ml-2">(36)</span>
171
+ </div>
172
+ <div class="flex justify-between items-center">
173
+ <div>
174
+ <span class="text-xl font-bold">$199.99</span>
175
+ <span class="text-sm text-gray-500 line-through ml-2">$249.99</span>
176
+ </div>
177
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition-all">
178
+ <i data-feather="shopping-cart" class="w-4 h-4"></i>
179
+ </button>
180
+ </div>
181
+ </div>
182
+ </div>
183
+
184
+ <!-- Product 3 -->
185
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all">
186
+ <img src="http://static.photos/home/640x360/7" alt="Air Fryer" class="w-full h-64 object-cover">
187
+ <div class="p-6">
188
+ <h3 class="text-xl font-semibold mb-2">Air Fryer</h3>
189
+ <div class="flex items-center mb-3">
190
+ <div class="flex text-yellow-400">
191
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
192
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
193
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
194
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
195
+ <i data-feather="star" class="w-4 h-4"></i>
196
+ </div>
197
+ <span class="text-gray-600 text-sm ml-2">(42)</span>
198
+ </div>
199
+ <div class="flex justify-between items-center">
200
+ <span class="text-xl font-bold">$89.99</span>
201
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition-all">
202
+ <i data-feather="shopping-cart" class="w-4 h-4"></i>
203
+ </button>
204
+ </div>
205
+ </div>
206
+ </div>
207
+
208
+ <!-- Product 4 -->
209
+ <div class="product-card bg-white rounded-lg overflow-hidden shadow-md transition-all">
210
+ <img src="http://static.photos/beauty/640x360/8" alt="Skincare Set" class="w-full h-64 object-cover">
211
+ <div class="p-6">
212
+ <h3 class="text-xl font-semibold mb-2">Skincare Set</h3>
213
+ <div class="flex items-center mb-3">
214
+ <div class="flex text-yellow-400">
215
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
216
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
217
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
218
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
219
+ <i data-feather="star" class="w-4 h-4"></i>
220
+ </div>
221
+ <span class="text-gray-600 text-sm ml-2">(28)</span>
222
+ </div>
223
+ <div class="flex justify-between items-center">
224
+ <span class="text-xl font-bold">$59.99</span>
225
+ <button class="bg-indigo-600 text-white px-4 py-2 rounded-full hover:bg-indigo-700 transition-all">
226
+ <i data-feather="shopping-cart" class="w-4 h-4"></i>
227
+ </button>
228
+ </div>
229
+ </div>
230
+ </div>
231
+ </div>
232
+ <div class="text-center mt-12">
233
+ <button class="bg-indigo-600 text-white font-bold py-3 px-8 rounded-full hover:bg-indigo-700 transition-all">
234
+ View All Products
235
+ </button>
236
+ </div>
237
+ </div>
238
+ </section>
239
+
240
+ <!-- Newsletter -->
241
+ <section class="py-16 bg-indigo-600 text-white">
242
+ <div class="container mx-auto px-6 text-center">
243
+ <h2 class="text-3xl font-bold mb-6">Subscribe to Our Newsletter</h2>
244
+ <p class="text-xl mb-8 max-w-2xl mx-auto">Get the latest updates on new products and upcoming sales</p>
245
+ <div class="max-w-md mx-auto flex">
246
+ <input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-l-full focus:outline-none text-gray-800">
247
+ <button class="bg-indigo-800 px-6 py-3 rounded-r-full hover:bg-indigo-900 transition-all">
248
+ Subscribe
249
+ </button>
250
+ </div>
251
+ </div>
252
+ </section>
253
+
254
+ <!-- Testimonials -->
255
+ <section class="py-16 bg-white">
256
+ <div class="container mx-auto px-6">
257
+ <h2 class="text-3xl font-bold text-center mb-12">What Our Customers Say</h2>
258
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
259
+ <!-- Testimonial 1 -->
260
+ <div class="bg-gray-50 p-8 rounded-lg">
261
+ <div class="flex items-center mb-4">
262
+ <div class="flex text-yellow-400">
263
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
264
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
265
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
266
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
267
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
268
+ </div>
269
+ </div>
270
+ <p class="text-gray-600 mb-6">"The quality of products is amazing! Fast shipping and excellent customer service. Will definitely shop here again!"</p>
271
+ <div class="flex items-center">
272
+ <img src="http://static.photos/people/200x200/1" alt="Customer" class="w-12 h-12 rounded-full object-cover mr-4">
273
+ <div>
274
+ <h4 class="font-semibold">Sarah Johnson</h4>
275
+ <p class="text-gray-500 text-sm">Verified Buyer</p>
276
+ </div>
277
+ </div>
278
+ </div>
279
+
280
+ <!-- Testimonial 2 -->
281
+ <div class="bg-gray-50 p-8 rounded-lg">
282
+ <div class="flex items-center mb-4">
283
+ <div class="flex text-yellow-400">
284
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
285
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
286
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
287
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
288
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
289
+ </div>
290
+ </div>
291
+ <p class="text-gray-600 mb-6">"Great prices and fast delivery. I've ordered multiple times and have never been disappointed. Highly recommend!"</p>
292
+ <div class="flex items-center">
293
+ <img src="http://static.photos/people/200x200/2" alt="Customer" class="w-12 h-12 rounded-full object-cover mr-4">
294
+ <div>
295
+ <h4 class="font-semibold">Michael Chen</h4>
296
+ <p class="text-gray-500 text-sm">Verified Buyer</p>
297
+ </div>
298
+ </div>
299
+ </div>
300
+
301
+ <!-- Testimonial 3 -->
302
+ <div class="bg-gray-50 p-8 rounded-lg">
303
+ <div class="flex items-center mb-4">
304
+ <div class="flex text-yellow-400">
305
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
306
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
307
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
308
+ <i data-feather="star" class="w-4 h-4 fill-current"></i>
309
+ <i data-feather="star" class="w-4 h-4"></i>
310
+ </div>
311
+ </div>
312
+ <p class="text-gray-600 mb-6">"Customer service went above and beyond to help me with my order. The products are high quality and worth every penny."</p>
313
+ <div class="flex items-center">
314
+ <img src="http://static.photos/people/200x200/3" alt="Customer" class="w-12 h-12 rounded-full object-cover mr-4">
315
+ <div>
316
+ <h4 class="font-semibold">Emma Williams</h4>
317
+ <p class="text-gray-500 text-sm">Verified Buyer</p>
318
+ </div>
319
+ </div>
320
+ </div>
321
+ </div>
322
+ </div>
323
+ </section>
324
+
325
+ <!-- Footer -->
326
+ <footer class="bg-gray-900 text-white py-12">
327
+ <div class="container mx-auto px-6">
328
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
329
+ <!-- About -->
330
+ <div>
331
+ <h3 class="text-xl font-semibold mb-4">ShopSphere</h3>
332
+ <p class="text-gray-400">Your one-stop shop for all your needs. Quality products at affordable prices.</p>
333
+ <div class="flex space-x-4 mt-6">
334
+ <a href="#" class="text-gray-400 hover:text-white">
335
+ <i data-feather="facebook"></i>
336
+ </a>
337
+ <a href="#" class="text-gray-400 hover:text-white">
338
+ <i data-feather="twitter"></i>
339
+ </a>
340
+ <a href="#" class="text-gray-400 hover:text-white">
341
+ <i data-feather="instagram"></i>
342
+ </a>
343
+ <a href="#" class="text-gray-400 hover:text-white">
344
+ <i data-feather="youtube"></i>
345
+ </a>
346
+ </div>
347
+ </div>
348
+
349
+ <!-- Quick Links -->
350
+ <div>
351
+ <h3 class="text-xl font-semibold mb-4">Quick Links</h3>
352
+ <ul class="space-y-2">
353
+ <li><a href="#" class="text-gray-400 hover:text-white">Home</a></li>
354
+ <li><a href="#" class="text-gray-400 hover:text-white">Shop</a></li>
355
+ <li><a href="#" class="text-gray-400 hover:text-white">About Us</a></li>
356
+ <li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li>
357
+ <li><a href="#" class="text-gray-400 hover:text-white">FAQ</a></li>
358
+ </ul>
359
+ </div>
360
+
361
+ <!-- Customer Service -->
362
+ <div>
363
+ <h3 class="text-xl font-semibold mb-4">Customer Service</h3>
364
+ <ul class="space-y-2">
365
+ <li><a href="#" class="text-gray-400 hover:text-white">My Account</a></li>
366
+ <li><a href="#" class="text-gray-400 hover:text-white">Order Tracking</a></li>
367
+ <li><a href="#" class="text-gray-400 hover:text-white">Wishlist</a></li>
368
+ <li><a href="#" class="text-gray-400 hover:text-white">Returns & Exchanges</a></li>
369
+ <li><a href="#" class="text-gray-400 hover:text-white">Shipping Policy</a></li>
370
+ </ul>
371
+ </div>
372
+
373
+ <!-- Contact Info -->
374
+ <div>
375
+ <h3 class="text-xl font-semibold mb-4">Contact Us</h3>
376
+ <ul class="space-y-2 text-gray-400">
377
+ <li class="flex items-start">
378
+ <i data-feather="map-pin" class="w-5 h-5 mr-2 mt-1"></i>
379
+ <span>123 Shopping Street, Retail City, RC 10001</span>
380
+ </li>
381
+ <li class="flex items-center">
382
+ <i data-feather="mail" class="w-5 h-5 mr-2"></i>
383
+ <span>support@shopsphere.com</span>
384
+ </li>
385
+ <li class="flex items-center">
386
+ <i data-feather="phone" class="w-5 h-5 mr-2"></i>
387
+ <span>(123) 456-7890</span>
388
+ </li>
389
+ </ul>
390
+ </div>
391
+ </div>
392
+ <div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400">
393
+ <p>&copy; 2023 ShopSphere. All rights reserved.</p>
394
+ </div>
395
+ </div>
396
+ </footer>
397
+
398
+ <script>
399
+ feather.replace();
400
+
401
+ // Simple animation for product cards on scroll
402
+ document.addEventListener('DOMContentLoaded', function() {
403
+ const productCards = document.querySelectorAll('.product-card');
404
+
405
+ const observer = new IntersectionObserver((entries) => {
406
+ entries.forEach(entry => {
407
+ if (entry.isIntersecting) {
408
+ entry.target.style.opacity = '1';
409
+ entry.target.style.transform = 'translateY(0)';
410
+ }
411
+ });
412
+ }, { threshold: 0.1 });
413
+
414
+ productCards.forEach(card => {
415
+ card.style.opacity = '0';
416
+ card.style.transform = 'translateY(20px)';
417
+ card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
418
+ observer.observe(card);
419
+ });
420
+ });
421
+ </script>
422
+ </body>
423
  </html>