hf1024 commited on
Commit
66cd34b
·
verified ·
1 Parent(s): c74cf08

Add 2 files

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +542 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Test
3
- emoji: 🚀
4
- colorFrom: yellow
5
- colorTo: pink
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: green
5
+ colorTo: blue
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,542 @@
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>Modern Website with Carousel</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
+ /* Custom CSS for the carousel */
11
+ .carousel {
12
+ position: relative;
13
+ overflow: hidden;
14
+ }
15
+
16
+ .carousel-inner {
17
+ display: flex;
18
+ transition: transform 0.5s ease;
19
+ }
20
+
21
+ .carousel-item {
22
+ min-width: 100%;
23
+ position: relative;
24
+ }
25
+
26
+ .carousel-caption {
27
+ position: absolute;
28
+ bottom: 20%;
29
+ left: 10%;
30
+ color: white;
31
+ max-width: 40%;
32
+ }
33
+
34
+ .carousel-indicators {
35
+ position: absolute;
36
+ bottom: 20px;
37
+ left: 50%;
38
+ transform: translateX(-50%);
39
+ display: flex;
40
+ gap: 10px;
41
+ }
42
+
43
+ .carousel-indicator {
44
+ width: 12px;
45
+ height: 12px;
46
+ border-radius: 50%;
47
+ background-color: rgba(255, 255, 255, 0.5);
48
+ cursor: pointer;
49
+ }
50
+
51
+ .carousel-indicator.active {
52
+ background-color: white;
53
+ }
54
+
55
+ .carousel-control {
56
+ position: absolute;
57
+ top: 50%;
58
+ transform: translateY(-50%);
59
+ background-color: rgba(0, 0, 0, 0.5);
60
+ color: white;
61
+ border: none;
62
+ padding: 10px 15px;
63
+ cursor: pointer;
64
+ border-radius: 50%;
65
+ z-index: 10;
66
+ }
67
+
68
+ .carousel-control.prev {
69
+ left: 20px;
70
+ }
71
+
72
+ .carousel-control.next {
73
+ right: 20px;
74
+ }
75
+
76
+ /* Animation for menu items */
77
+ @keyframes fadeIn {
78
+ from { opacity: 0; transform: translateY(-10px); }
79
+ to { opacity: 1; transform: translateY(0); }
80
+ }
81
+
82
+ .nav-item {
83
+ animation: fadeIn 0.3s ease forwards;
84
+ }
85
+
86
+ .nav-item:nth-child(1) { animation-delay: 0.1s; }
87
+ .nav-item:nth-child(2) { animation-delay: 0.2s; }
88
+ .nav-item:nth-child(3) { animation-delay: 0.3s; }
89
+ .nav-item:nth-child(4) { animation-delay: 0.4s; }
90
+ .nav-item:nth-child(5) { animation-delay: 0.5s; }
91
+
92
+ /* Mobile menu animation */
93
+ .mobile-menu {
94
+ max-height: 0;
95
+ overflow: hidden;
96
+ transition: max-height 0.3s ease-out;
97
+ }
98
+
99
+ .mobile-menu.open {
100
+ max-height: 500px;
101
+ }
102
+
103
+ /* Dropdown menu styles */
104
+ .dropdown {
105
+ position: relative;
106
+ display: inline-block;
107
+ }
108
+
109
+ .dropdown-content {
110
+ display: none;
111
+ position: absolute;
112
+ background-color: white;
113
+ min-width: 200px;
114
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
115
+ z-index: 1;
116
+ border-radius: 0.375rem;
117
+ top: 100%;
118
+ left: 0;
119
+ opacity: 0;
120
+ transform: translateY(-10px);
121
+ transition: all 0.3s ease;
122
+ }
123
+
124
+ .dropdown:hover .dropdown-content {
125
+ display: block;
126
+ opacity: 1;
127
+ transform: translateY(0);
128
+ }
129
+
130
+ .dropdown-item {
131
+ color: #4b5563;
132
+ padding: 12px 16px;
133
+ text-decoration: none;
134
+ display: block;
135
+ transition: all 0.2s ease;
136
+ }
137
+
138
+ .dropdown-item:hover {
139
+ background-color: #f3f4f6;
140
+ color: #1d4ed8;
141
+ }
142
+
143
+ .dropdown-divider {
144
+ border-top: 1px solid #e5e7eb;
145
+ margin: 0;
146
+ }
147
+ </style>
148
+ </head>
149
+ <body class="bg-gray-50 font-sans">
150
+ <!-- Navigation -->
151
+ <nav class="bg-white shadow-lg sticky top-0 z-50">
152
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
153
+ <div class="flex justify-between h-16">
154
+ <!-- Logo -->
155
+ <div class="flex-shrink-0 flex items-center">
156
+ <i class="fas fa-rocket text-blue-600 text-2xl mr-2"></i>
157
+ <span class="text-xl font-bold text-gray-900">BrandName</span>
158
+ </div>
159
+
160
+ <!-- Desktop Menu -->
161
+ <div class="hidden md:flex items-center space-x-8">
162
+ <a href="#" class="nav-item text-gray-900 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition duration-300">Home</a>
163
+
164
+ <!-- Products Dropdown -->
165
+ <div class="dropdown">
166
+ <button class="nav-item text-gray-500 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition duration-300 flex items-center">
167
+ Products
168
+ <i class="fas fa-chevron-down ml-1 text-xs"></i>
169
+ </button>
170
+ <div class="dropdown-content">
171
+ <a href="#" class="dropdown-item">
172
+ <i class="fas fa-laptop mr-2"></i> Software Solutions
173
+ </a>
174
+ <a href="#" class="dropdown-item">
175
+ <i class="fas fa-mobile-alt mr-2"></i> Mobile Apps
176
+ </a>
177
+ <a href="#" class="dropdown-item">
178
+ <i class="fas fa-cloud mr-2"></i> Cloud Services
179
+ </a>
180
+ <div class="dropdown-divider"></div>
181
+ <a href="#" class="dropdown-item">
182
+ <i class="fas fa-star mr-2"></i> Premium Suite
183
+ </a>
184
+ </div>
185
+ </div>
186
+
187
+ <a href="#" class="nav-item text-gray-500 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition duration-300">Services</a>
188
+ <a href="#" class="nav-item text-gray-500 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition duration-300">About</a>
189
+ <a href="#" class="nav-item text-gray-500 hover:text-blue-600 px-3 py-2 rounded-md text-sm font-medium transition duration-300">Contact</a>
190
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium transition duration-300">
191
+ Get Started
192
+ </button>
193
+ </div>
194
+
195
+ <!-- Mobile menu button -->
196
+ <div class="md:hidden flex items-center">
197
+ <button id="mobile-menu-button" class="text-gray-500 hover:text-gray-900 focus:outline-none">
198
+ <i class="fas fa-bars text-xl"></i>
199
+ </button>
200
+ </div>
201
+ </div>
202
+ </div>
203
+
204
+ <!-- Mobile Menu -->
205
+ <div id="mobile-menu" class="mobile-menu md:hidden bg-white">
206
+ <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
207
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-900 hover:text-blue-600 hover:bg-gray-50">Home</a>
208
+
209
+ <!-- Mobile Products Dropdown -->
210
+ <div class="relative">
211
+ <button id="mobile-products-button" class="w-full text-left px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50 flex justify-between items-center">
212
+ Products
213
+ <i class="fas fa-chevron-down text-xs transition-transform duration-200"></i>
214
+ </button>
215
+ <div id="mobile-products-dropdown" class="pl-4 hidden">
216
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50">
217
+ <i class="fas fa-laptop mr-2"></i> Software Solutions
218
+ </a>
219
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50">
220
+ <i class="fas fa-mobile-alt mr-2"></i> Mobile Apps
221
+ </a>
222
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50">
223
+ <i class="fas fa-cloud mr-2"></i> Cloud Services
224
+ </a>
225
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50">
226
+ <i class="fas fa-star mr-2"></i> Premium Suite
227
+ </a>
228
+ </div>
229
+ </div>
230
+
231
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50">Services</a>
232
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50">About</a>
233
+ <a href="#" class="block px-3 py-2 rounded-md text-base font-medium text-gray-500 hover:text-blue-600 hover:bg-gray-50">Contact</a>
234
+ <button class="w-full mt-2 bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-md text-sm font-medium">
235
+ Get Started
236
+ </button>
237
+ </div>
238
+ </div>
239
+ </nav>
240
+
241
+ <!-- Main Content -->
242
+ <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
243
+ <!-- Carousel Section -->
244
+ <div class="carousel rounded-xl overflow-hidden shadow-xl mb-12">
245
+ <div class="carousel-inner">
246
+ <!-- Slide 1 -->
247
+ <div class="carousel-item">
248
+ <img src="https://source.unsplash.com/random/1600x600/?technology" alt="Technology" class="w-full h-auto">
249
+ <div class="carousel-caption">
250
+ <h2 class="text-4xl font-bold mb-4">Innovative Solutions</h2>
251
+ <p class="text-lg mb-6">Discover our cutting-edge technology that will transform your business.</p>
252
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-md font-medium transition duration-300">
253
+ Learn More
254
+ </button>
255
+ </div>
256
+ </div>
257
+
258
+ <!-- Slide 2 -->
259
+ <div class="carousel-item">
260
+ <img src="https://source.unsplash.com/random/1600x600/?business" alt="Business" class="w-full h-auto">
261
+ <div class="carousel-caption">
262
+ <h2 class="text-4xl font-bold mb-4">Business Growth</h2>
263
+ <p class="text-lg mb-6">Our strategies will help you scale your business to new heights.</p>
264
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-md font-medium transition duration-300">
265
+ Get Started
266
+ </button>
267
+ </div>
268
+ </div>
269
+
270
+ <!-- Slide 3 -->
271
+ <div class="carousel-item">
272
+ <img src="https://source.unsplash.com/random/1600x600/?teamwork" alt="Teamwork" class="w-full h-auto">
273
+ <div class="carousel-caption">
274
+ <h2 class="text-4xl font-bold mb-4">Expert Team</h2>
275
+ <p class="text-lg mb-6">Work with our dedicated professionals to achieve your goals.</p>
276
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-md font-medium transition duration-300">
277
+ Meet Our Team
278
+ </button>
279
+ </div>
280
+ </div>
281
+ </div>
282
+
283
+ <!-- Carousel Controls -->
284
+ <button class="carousel-control prev">
285
+ <i class="fas fa-chevron-left"></i>
286
+ </button>
287
+ <button class="carousel-control next">
288
+ <i class="fas fa-chevron-right"></i>
289
+ </button>
290
+
291
+ <!-- Carousel Indicators -->
292
+ <div class="carousel-indicators">
293
+ <div class="carousel-indicator active" data-slide="0"></div>
294
+ <div class="carousel-indicator" data-slide="1"></div>
295
+ <div class="carousel-indicator" data-slide="2"></div>
296
+ </div>
297
+ </div>
298
+
299
+ <!-- Content Section -->
300
+ <div class="grid md:grid-cols-3 gap-8 mb-12">
301
+ <!-- Feature 1 -->
302
+ <div class="bg-white p-6 rounded-lg shadow-md hover:shadow-xl transition duration-300">
303
+ <div class="text-blue-600 mb-4">
304
+ <i class="fas fa-lightbulb text-4xl"></i>
305
+ </div>
306
+ <h3 class="text-xl font-bold mb-3">Creative Ideas</h3>
307
+ <p class="text-gray-600 mb-4">We bring fresh perspectives and innovative approaches to solve your business challenges.</p>
308
+ <a href="#" class="text-blue-600 font-medium hover:text-blue-800 transition duration-300">
309
+ Read more <i class="fas fa-arrow-right ml-1"></i>
310
+ </a>
311
+ </div>
312
+
313
+ <!-- Feature 2 -->
314
+ <div class="bg-white p-6 rounded-lg shadow-md hover:shadow-xl transition duration-300">
315
+ <div class="text-blue-600 mb-4">
316
+ <i class="fas fa-chart-line text-4xl"></i>
317
+ </div>
318
+ <h3 class="text-xl font-bold mb-3">Data Analytics</h3>
319
+ <p class="text-gray-600 mb-4">Leverage our powerful analytics tools to gain insights and make data-driven decisions.</p>
320
+ <a href="#" class="text-blue-600 font-medium hover:text-blue-800 transition duration-300">
321
+ Read more <i class="fas fa-arrow-right ml-1"></i>
322
+ </a>
323
+ </div>
324
+
325
+ <!-- Feature 3 -->
326
+ <div class="bg-white p-6 rounded-lg shadow-md hover:shadow-xl transition duration-300">
327
+ <div class="text-blue-600 mb-4">
328
+ <i class="fas fa-headset text-4xl"></i>
329
+ </div>
330
+ <h3 class="text-xl font-bold mb-3">24/7 Support</h3>
331
+ <p class="text-gray-600 mb-4">Our dedicated support team is always available to assist you with any questions or issues.</p>
332
+ <a href="#" class="text-blue-600 font-medium hover:text-blue-800 transition duration-300">
333
+ Read more <i class="fas fa-arrow-right ml-1"></i>
334
+ </a>
335
+ </div>
336
+ </div>
337
+
338
+ <!-- Call to Action -->
339
+ <div class="bg-gradient-to-r from-blue-600 to-blue-800 rounded-xl p-8 text-white mb-12">
340
+ <div class="max-w-3xl mx-auto text-center">
341
+ <h2 class="text-3xl font-bold mb-4">Ready to transform your business?</h2>
342
+ <p class="text-lg mb-6">Join thousands of satisfied customers who have already experienced our exceptional services.</p>
343
+ <div class="flex flex-col sm:flex-row justify-center gap-4">
344
+ <button class="bg-white text-blue-800 hover:bg-gray-100 px-6 py-3 rounded-md font-bold transition duration-300">
345
+ Get Started Now
346
+ </button>
347
+ <button class="border-2 border-white hover:bg-white hover:text-blue-800 px-6 py-3 rounded-md font-bold transition duration-300">
348
+ Contact Sales
349
+ </button>
350
+ </div>
351
+ </div>
352
+ </div>
353
+ </main>
354
+
355
+ <!-- Footer -->
356
+ <footer class="bg-gray-900 text-white py-12">
357
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
358
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-8">
359
+ <!-- Column 1 -->
360
+ <div>
361
+ <h3 class="text-lg font-bold mb-4">Company</h3>
362
+ <ul class="space-y-2">
363
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">About Us</a></li>
364
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Careers</a></li>
365
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Blog</a></li>
366
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Press</a></li>
367
+ </ul>
368
+ </div>
369
+
370
+ <!-- Column 2 -->
371
+ <div>
372
+ <h3 class="text-lg font-bold mb-4">Products</h3>
373
+ <ul class="space-y-2">
374
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Features</a></li>
375
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Pricing</a></li>
376
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">API</a></li>
377
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Integrations</a></li>
378
+ </ul>
379
+ </div>
380
+
381
+ <!-- Column 3 -->
382
+ <div>
383
+ <h3 class="text-lg font-bold mb-4">Support</h3>
384
+ <ul class="space-y-2">
385
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Documentation</a></li>
386
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Guides</a></li>
387
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Community</a></li>
388
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Status</a></li>
389
+ </ul>
390
+ </div>
391
+
392
+ <!-- Column 4 -->
393
+ <div>
394
+ <h3 class="text-lg font-bold mb-4">Legal</h3>
395
+ <ul class="space-y-2">
396
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Privacy</a></li>
397
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Terms</a></li>
398
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Cookie Policy</a></li>
399
+ <li><a href="#" class="text-gray-400 hover:text-white transition duration-300">Licenses</a></li>
400
+ </ul>
401
+ </div>
402
+ </div>
403
+
404
+ <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
405
+ <div class="flex items-center mb-4 md:mb-0">
406
+ <i class="fas fa-rocket text-blue-500 text-2xl mr-2"></i>
407
+ <span class="text-xl font-bold">BrandName</span>
408
+ </div>
409
+ <div class="flex space-x-6">
410
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
411
+ <i class="fab fa-facebook-f text-xl"></i>
412
+ </a>
413
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
414
+ <i class="fab fa-twitter text-xl"></i>
415
+ </a>
416
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
417
+ <i class="fab fa-instagram text-xl"></i>
418
+ </a>
419
+ <a href="#" class="text-gray-400 hover:text-white transition duration-300">
420
+ <i class="fab fa-linkedin-in text-xl"></i>
421
+ </a>
422
+ </div>
423
+ </div>
424
+ </div>
425
+ </footer>
426
+
427
+ <script>
428
+ // Mobile menu toggle
429
+ const mobileMenuButton = document.getElementById('mobile-menu-button');
430
+ const mobileMenu = document.getElementById('mobile-menu');
431
+
432
+ mobileMenuButton.addEventListener('click', () => {
433
+ mobileMenu.classList.toggle('open');
434
+ });
435
+
436
+ // Mobile products dropdown toggle
437
+ const mobileProductsButton = document.getElementById('mobile-products-button');
438
+ const mobileProductsDropdown = document.getElementById('mobile-products-dropdown');
439
+
440
+ mobileProductsButton.addEventListener('click', () => {
441
+ mobileProductsDropdown.classList.toggle('hidden');
442
+ mobileProductsButton.querySelector('i').classList.toggle('transform');
443
+ mobileProductsButton.querySelector('i').classList.toggle('rotate-180');
444
+ });
445
+
446
+ // Carousel functionality
447
+ const carousel = document.querySelector('.carousel-inner');
448
+ const items = document.querySelectorAll('.carousel-item');
449
+ const indicators = document.querySelectorAll('.carousel-indicator');
450
+ const prevBtn = document.querySelector('.carousel-control.prev');
451
+ const nextBtn = document.querySelector('.carousel-control.next');
452
+
453
+ let currentIndex = 0;
454
+ const itemCount = items.length;
455
+
456
+ function updateCarousel() {
457
+ carousel.style.transform = `translateX(-${currentIndex * 100}%)`;
458
+
459
+ // Update indicators
460
+ indicators.forEach((indicator, index) => {
461
+ if (index === currentIndex) {
462
+ indicator.classList.add('active');
463
+ } else {
464
+ indicator.classList.remove('active');
465
+ }
466
+ });
467
+ }
468
+
469
+ function nextSlide() {
470
+ currentIndex = (currentIndex + 1) % itemCount;
471
+ updateCarousel();
472
+ }
473
+
474
+ function prevSlide() {
475
+ currentIndex = (currentIndex - 1 + itemCount) % itemCount;
476
+ updateCarousel();
477
+ }
478
+
479
+ // Auto-rotate carousel
480
+ let interval = setInterval(nextSlide, 5000);
481
+
482
+ // Reset interval when user interacts
483
+ function resetInterval() {
484
+ clearInterval(interval);
485
+ interval = setInterval(nextSlide, 5000);
486
+ }
487
+
488
+ // Event listeners
489
+ nextBtn.addEventListener('click', () => {
490
+ nextSlide();
491
+ resetInterval();
492
+ });
493
+
494
+ prevBtn.addEventListener('click', () => {
495
+ prevSlide();
496
+ resetInterval();
497
+ });
498
+
499
+ indicators.forEach((indicator, index) => {
500
+ indicator.addEventListener('click', () => {
501
+ currentIndex = index;
502
+ updateCarousel();
503
+ resetInterval();
504
+ });
505
+ });
506
+
507
+ // Pause on hover
508
+ carousel.parentElement.addEventListener('mouseenter', () => {
509
+ clearInterval(interval);
510
+ });
511
+
512
+ carousel.parentElement.addEventListener('mouseleave', () => {
513
+ resetInterval();
514
+ });
515
+
516
+ // Touch support for mobile
517
+ let touchStartX = 0;
518
+ let touchEndX = 0;
519
+
520
+ carousel.parentElement.addEventListener('touchstart', (e) => {
521
+ touchStartX = e.changedTouches[0].screenX;
522
+ clearInterval(interval);
523
+ });
524
+
525
+ carousel.parentElement.addEventListener('touchend', (e) => {
526
+ touchEndX = e.changedTouches[0].screenX;
527
+ handleSwipe();
528
+ resetInterval();
529
+ });
530
+
531
+ function handleSwipe() {
532
+ const threshold = 50;
533
+
534
+ if (touchEndX < touchStartX - threshold) {
535
+ nextSlide();
536
+ } else if (touchEndX > touchStartX + threshold) {
537
+ prevSlide();
538
+ }
539
+ }
540
+ </script>
541
+ <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=hf1024/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
542
+ </html>