samirerty commited on
Commit
7d91f01
·
verified ·
1 Parent(s): fc85e51

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +644 -19
index.html CHANGED
@@ -1,19 +1,644 @@
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="fa" dir="rtl">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>آکواریوم لوکس | فروشگاه ماهی‌های گرافیکی</title>
7
+
8
+ <!-- Import Persian Font (Vazirmatn) -->
9
+ <link href="https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css" rel="stylesheet" type="text/css" />
10
+
11
+ <!-- Import FontAwesome for Icons -->
12
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
13
+
14
+ <style>
15
+ :root {
16
+ --primary-color: #00f2ff;
17
+ --secondary-color: #ff0055;
18
+ --glass-bg: rgba(255, 255, 255, 0.1);
19
+ --glass-border: rgba(255, 255, 255, 0.2);
20
+ --text-color: #ffffff;
21
+ --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
22
+ }
23
+
24
+ * {
25
+ box-sizing: border-box;
26
+ margin: 0;
27
+ padding: 0;
28
+ }
29
+
30
+ body {
31
+ font-family: 'Vazirmatn', sans-serif;
32
+ background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
33
+ color: var(--text-color);
34
+ min-height: 100vh;
35
+ overflow-x: hidden;
36
+ display: flex;
37
+ flex-direction: column;
38
+ }
39
+
40
+ /* --- Animated Fish Tank Background --- */
41
+ .ocean-container {
42
+ position: fixed;
43
+ top: 0;
44
+ left: 0;
45
+ width: 100%;
46
+ height: 100%;
47
+ z-index: -1;
48
+ overflow: hidden;
49
+ background: linear-gradient(to bottom, #001d3d, #003366, #005588);
50
+ }
51
+
52
+ .bubble {
53
+ position: absolute;
54
+ bottom: -50px;
55
+ background-color: rgba(255, 255, 255, 0.1);
56
+ border-radius: 50%;
57
+ animation: rise 15s infinite ease-in;
58
+ }
59
+
60
+ @keyframes rise {
61
+ 0% { bottom: -50px; transform: translateX(0); }
62
+ 50% { transform: translateX(100px); }
63
+ 100% { bottom: 110vh; transform: translateX(-100px); }
64
+ }
65
+
66
+ /* Floating Fish CSS Animation */
67
+ .fish-container {
68
+ position: absolute;
69
+ width: 100%;
70
+ height: 100%;
71
+ pointer-events: none;
72
+ }
73
+
74
+ .fish {
75
+ position: absolute;
76
+ font-size: 3rem;
77
+ animation: swim linear infinite;
78
+ opacity: 0.8;
79
+ filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
80
+ }
81
+
82
+ @keyframes swim {
83
+ 0% { left: -10%; transform: rotate(0deg); }
84
+ 50% { transform: rotate(10deg); }
85
+ 100% { left: 110%; transform: rotate(-10deg); }
86
+ }
87
+
88
+ /* --- UI Components --- */
89
+ header {
90
+ padding: 20px 5%;
91
+ display: flex;
92
+ justify-content: space-between;
93
+ align-items: center;
94
+ z-index: 100;
95
+ position: relative;
96
+ }
97
+
98
+ .logo {
99
+ font-size: 1.8rem;
100
+ font-weight: 800;
101
+ color: var(--primary-color);
102
+ text-shadow: 0 0 10px var(--primary-color);
103
+ display: flex;
104
+ align-items: center;
105
+ gap: 10px;
106
+ }
107
+
108
+ nav ul {
109
+ display: flex;
110
+ list-style: none;
111
+ gap: 30px;
112
+ }
113
+
114
+ nav a {
115
+ color: white;
116
+ text-decoration: none;
117
+ font-weight: 600;
118
+ transition: 0.3s;
119
+ position: relative;
120
+ }
121
+
122
+ nav a:hover {
123
+ color: var(--primary-color);
124
+ }
125
+
126
+ nav a::after {
127
+ content: '';
128
+ position: absolute;
129
+ width: 0;
130
+ height: 2px;
131
+ bottom: -5px;
132
+ left: 0;
133
+ background-color: var(--primary-color);
134
+ transition: 0.3s;
135
+ }
136
+
137
+ nav a:hover::after {
138
+ width: 100%;
139
+ }
140
+
141
+ .cart-icon {
142
+ position: relative;
143
+ cursor: pointer;
144
+ font-size: 1.5rem;
145
+ transition: transform 0.3s;
146
+ }
147
+
148
+ .cart-icon:hover {
149
+ transform: scale(1.2);
150
+ }
151
+
152
+ .cart-count {
153
+ position: absolute;
154
+ top: -10px;
155
+ left: -10px;
156
+ background-color: var(--secondary-color);
157
+ color: white;
158
+ border-radius: 50%;
159
+ padding: 2px 6px;
160
+ font-size: 0.75rem;
161
+ }
162
+
163
+ /* --- Hero Section --- */
164
+ .hero {
165
+ text-align: center;
166
+ padding: 15vh 20px;
167
+ z-index: 10;
168
+ position: relative;
169
+ animation: fadeIn 1.5s ease;
170
+ }
171
+
172
+ @keyframes fadeIn {
173
+ from { opacity: 0; transform: translateY(20px); }
174
+ to { opacity: 1; transform: translateY(0); }
175
+ }
176
+
177
+ .hero h1 {
178
+ font-size: 4rem;
179
+ margin-bottom: 20px;
180
+ line-height: 1.2;
181
+ }
182
+
183
+ .hero span {
184
+ color: var(--primary-color);
185
+ }
186
+
187
+ .hero p {
188
+ font-size: 1.2rem;
189
+ max-width: 600px;
190
+ margin: 0 auto 40px auto;
191
+ opacity: 0.9;
192
+ }
193
+
194
+ .btn {
195
+ padding: 15px 40px;
196
+ font-size: 1.2rem;
197
+ font-family: 'Vazirmatn', sans-serif;
198
+ border: none;
199
+ border-radius: 50px;
200
+ cursor: pointer;
201
+ transition: all 0.3s ease;
202
+ text-decoration: none;
203
+ display: inline-block;
204
+ }
205
+
206
+ .btn-primary {
207
+ background: linear-gradient(45deg, var(--primary-color), #00aaff);
208
+ color: white;
209
+ box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
210
+ }
211
+
212
+ .btn-primary:hover {
213
+ transform: translateY(-3px);
214
+ box-shadow: 0 0 40px rgba(0, 242, 255, 0.6);
215
+ }
216
+
217
+ /* --- Glass Card Section (Products) --- */
218
+ .section-container {
219
+ max-width: 1200px;
220
+ margin: 0 auto 100px auto;
221
+ padding: 0 20px;
222
+ z-index: 10;
223
+ position: relative;
224
+ }
225
+
226
+ .section-title {
227
+ text-align: center;
228
+ margin-bottom: 50px;
229
+ font-size: 2.5rem;
230
+ border-bottom: 2px solid var(--glass-border);
231
+ display: inline-block;
232
+ padding-bottom: 10px;
233
+ }
234
+
235
+ .products-grid {
236
+ display: grid;
237
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
238
+ gap: 30px;
239
+ }
240
+
241
+ .glass-card {
242
+ background: var(--glass-bg);
243
+ backdrop-filter: blur(12px);
244
+ -webkit-backdrop-filter: blur(12px);
245
+ border: 1px solid var(--glass-border);
246
+ border-radius: 20px;
247
+ padding: 30px;
248
+ box-shadow: var(--card-shadow);
249
+ transition: all 0.4s ease;
250
+ display: flex;
251
+ flex-direction: column;
252
+ align-items: center;
253
+ text-align: center;
254
+ }
255
+
256
+ .glass-card:hover {
257
+ transform: translateY(-10px);
258
+ background: rgba(255, 255, 255, 0.15);
259
+ box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
260
+ border-color: var(--primary-color);
261
+ }
262
+
263
+ .card-icon {
264
+ font-size: 5rem;
265
+ margin-bottom: 20px;
266
+ animation: float 3s ease-in-out infinite;
267
+ }
268
+
269
+ @keyframes float {
270
+ 0% { transform: translateY(0px); }
271
+ 50% { transform: translateY(-15px); }
272
+ 100% { transform: translateY(0px); }
273
+ }
274
+
275
+ .card-title {
276
+ font-size: 1.8rem;
277
+ margin-bottom: 10px;
278
+ color: white;
279
+ }
280
+
281
+ .card-price {
282
+ font-size: 1.4rem;
283
+ color: var(--primary-color);
284
+ font-weight: bold;
285
+ margin-bottom: 20px;
286
+ background: rgba(0, 0, 0, 0.3);
287
+ padding: 5px 15px;
288
+ border-radius: 20px;
289
+ }
290
+
291
+ .card-desc {
292
+ color: #ddd;
293
+ margin-bottom: 25px;
294
+ line-height: 1.6;
295
+ }
296
+
297
+ .add-btn {
298
+ background: transparent;
299
+ border: 2px solid var(--primary-color);
300
+ color: white;
301
+ padding: 10px 30px;
302
+ border-radius: 30px;
303
+ cursor: pointer;
304
+ font-family: 'Vazirmatn', sans-serif;
305
+ font-size: 1rem;
306
+ transition: 0.3s;
307
+ width: 100%;
308
+ }
309
+
310
+ .add-btn:hover {
311
+ background: var(--primary-color);
312
+ color: #000;
313
+ box-shadow: 0 0 20px var(--primary-color);
314
+ }
315
+
316
+ /* --- Glass Footer --- */
317
+ footer {
318
+ background: rgba(0, 0, 0, 0.4);
319
+ backdrop-filter: blur(10px);
320
+ padding: 50px 20px;
321
+ text-align: center;
322
+ border-top: 1px solid var(--glass-border);
323
+ z-index: 10;
324
+ position: relative;
325
+ }
326
+
327
+ .footer-content {
328
+ max-width: 800px;
329
+ margin: 0 auto;
330
+ }
331
+
332
+ .footer-links {
333
+ margin: 30px 0;
334
+ display: flex;
335
+ justify-content: center;
336
+ gap: 30px;
337
+ }
338
+
339
+ .footer-links a {
340
+ color: #aaa;
341
+ text-decoration: none;
342
+ }
343
+
344
+ .footer-links a:hover {
345
+ color: var(--primary-color);
346
+ }
347
+
348
+ .bottom-footer {
349
+ margin-top: 40px;
350
+ font-size: 0.9rem;
351
+ color: #888;
352
+ }
353
+
354
+ .anycoder-link {
355
+ color: #00f2ff;
356
+ text-decoration: none;
357
+ font-weight: bold;
358
+ }
359
+
360
+ .anycoder-link:hover {
361
+ text-decoration: underline;
362
+ }
363
+
364
+ /* Responsive Design */
365
+ @media (max-width: 768px) {
366
+ .hero h1 { font-size: 2.5rem; }
367
+ nav ul { display: none; } /* Simple hide for mobile in this demo */
368
+ .products-grid { grid-template-columns: 1fr; }
369
+ }
370
+
371
+ /* Toast Notification */
372
+ .toast {
373
+ position: fixed;
374
+ bottom: 30px;
375
+ left: 30px; /* RTL context: left is actually visual right in LTR, but we want it on the side */
376
+ background: rgba(0, 242, 255, 0.9);
377
+ color: #000;
378
+ padding: 15px 25px;
379
+ border-radius: 10px;
380
+ font-weight: bold;
381
+ transform: translateX(200%);
382
+ transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
383
+ z-index: 1000;
384
+ display: flex;
385
+ align-items: center;
386
+ gap: 10px;
387
+ box-shadow: 0 5px 15px rgba(0,0,0,0.3);
388
+ }
389
+
390
+ .toast.show {
391
+ transform: translateX(0);
392
+ }
393
+
394
+ </style>
395
+ </head>
396
+ <body>
397
+
398
+ <!-- Background Elements -->
399
+ <div class="ocean-container" id="oceanContainer">
400
+ <!-- Bubbles will be generated by JS -->
401
+ <!-- Fish will be generated by JS -->
402
+ </div>
403
+
404
+ <!-- Floating Fish Container -->
405
+ <div class="fish-container" id="fishContainer">
406
+ <div class="fish" style="top: 20%; animation-duration: 15s; animation-delay: 0s;"><i class="fa-solid fa-fish"></i></div>
407
+ <div class="fish" style="top: 40%; animation-duration: 20s; animation-delay: 5s; font-size: 2.5rem;"><i class="fa-solid fa-fish-fins"></i></div>
408
+ <div class="fish" style="top: 60%; animation-duration: 12s; animation-delay: 2s;"><i class="fa-solid fa-fish"></i></div>
409
+ <div class="fish" style="top: 30%; animation-duration: 18s; animation-delay: 8s; font-size: 4rem;"><i class="fa-solid fa-shrimp"></i></div>
410
+ <div class="fish" style="top: 70%; animation-duration: 25s; animation-delay: 1s;"><i class="fa-solid fa-octopus"></i></div>
411
+ </div>
412
+
413
+ <!-- Header -->
414
+ <header>
415
+ <div class="logo">
416
+ <i class="fa-solid fa-water"></i>
417
+ آکواریوم لوکس
418
+ </div>
419
+ <nav>
420
+ <ul>
421
+ <li><a href="#home">خانه</a></li>
422
+ <li><a href="#products">ماهی‌های شگفت‌انگیز</a></li>
423
+ <li><a href="#about">درباره ما</a></li>
424
+ <li><a href="#contact">تماس</a></li>
425
+ </ul>
426
+ </nav>
427
+ <div class="cart-icon" onclick="alert('در حال حاضر سبد خرید خالی است!')">
428
+ <i class="fa-solid fa-cart-shopping"></i>
429
+ <span class="cart-count" id="cartCount">0</span>
430
+ </div>
431
+ </header>
432
+
433
+ <!-- Hero Section -->
434
+ <section class="hero" id="home">
435
+ <h1>دنیای زیبای ماهی‌ها را در <span>زندگی خود</span> جا دهید</h1>
436
+ <p>ماهی‌های گرافیکی، آکواریوم‌های دیجیتال و دکوراسیون‌های شناور با استایل مدرن و فیروزه‌ای. تجربه‌ای بی‌نظیر از زیبایی طبیعت در محیط شیشه‌ای.</p>
437
+ <a href="#products" class="btn btn-primary">مشاهده کاتالوگ</a>
438
+ </section>
439
+
440
+ <!-- Products Section -->
441
+ <section class="section-container" id="products">
442
+ <h2 class="section-title">ماهی‌های پرطرفدار</h2>
443
+
444
+ <div class="products-grid">
445
+ <!-- Product 1 -->
446
+ <div class="glass-card">
447
+ <div class="card-icon"><i class="fa-solid fa-fish"></i></div>
448
+ <h3 class="card-title">ماهی طلایی شناور</h3>
449
+ <div class="card-price">۴۹,۰۰۰ تومان</div>
450
+ <p class="card-desc">ماهی طلایی اصیل با رنگ‌بندی درخشان و حرکت آرام. ایده‌آل برای آرامش بخشیدن به محیط کار شما.</p>
451
+ <button class="add-btn" onclick="addToCart('ماهی طلایی شناور')">
452
+ <i class="fa-solid fa-plus"></i> افزودن به سبد
453
+ </button>
454
+ </div>
455
+
456
+ <!-- Product 2 -->
457
+ <div class="glass-card">
458
+ <div class="card-icon" style="color: var(--secondary-color);"><i class="fa-solid fa-fish-fins"></i></div>
459
+ <h3 class="card-title">ماهی قرمز نئون</h3>
460
+ <div class="card-price">۳۵,۰۰۰ تومان</div>
461
+ <p class="card-desc">رنگ نئونی زنده و انرژیک. این ماهی فضای اتاق را با نورهای جذاب پر می‌کند.</p>
462
+ <button class="add-btn" onclick="addToCart('ماهی قرمز نئون')">
463
+ <i class="fa-solid fa-plus"></i> افزودن به سبد
464
+ </button>
465
+ </div>
466
+
467
+ <!-- Product 3 -->
468
+ <div class="glass-card">
469
+ <div class="card-icon"><i class="fa-solid fa-shrimp"></i></div>
470
+ <h3 class="card-title">قایق‌ماهی شفاف</h3>
471
+ <div class="card-price">۶۲,۰۰۰ تومان</div>
472
+ <p class="card-desc">نوعی نایاب با بدن شفاف و جذاب. ویژه علاقه‌مندان به گونه‌های خاص آبزیان.</p>
473
+ <button class="add-btn" onclick="addToCart('قایق‌ماهی شفاف')">
474
+ <i class="fa-solid fa-plus"></i> افزودن به سبد
475
+ </button>
476
+ </div>
477
+
478
+ <!-- Product 4 -->
479
+ <div class="glass-card">
480
+ <div class="card-icon"><i class="fa-solid fa-octopus"></i></div>
481
+ <h3 class="card-title">اُکتاپوس مدرن</h3>
482
+ <div class="card-price">۸۵,۰۰۰ تومان</div>
483
+ <p class="card-desc">نماد هوش و رمزآلود بودن. این موجود شناور فضای شما را با حس هیجان پر می‌کند.</p>
484
+ <button class="add-btn" onclick="addToCart('اُکتاپوس مدرن')">
485
+ <i class="fa-solid fa-plus"></i> افزودن به سبد
486
+ </button>
487
+ </div>
488
+
489
+ <!-- Product 5 -->
490
+ <div class="glass-card">
491
+ <div class="card-icon" style="color: #9D50BB;"><i class="fa-solid fa-otter"></i></div>
492
+ <h3 class="card-title">دریاچه‌ماهی بنفش</h3>
493
+ <div class="card-price">۵۵,۰۰۰ تومان</div>
494
+ <p class="card-desc">رنگ بنفش شیک و جذاب. برای کسانی که به دنبال متفاوت بودن هستند.</p>
495
+ <button class="add-btn" onclick="addToCart('دریاچه‌ماهی بنفش')">
496
+ <i class="fa-solid fa-plus"></i> افزودن به سبد
497
+ </button>
498
+ </div>
499
+
500
+ <!-- Product 6 -->
501
+ <div class="glass-card">
502
+ <div class="card-icon"><i class="fa-solid fa-whale"></i></div>
503
+ <h3 class="card-title">کیفه ماهی بزرگ</h3>
504
+ <div class="card-price">۱۲۰,۰۰۰ تومان</div>
505
+ <p class="card-desc">نماد قدرت و آرامش. این ماهی بزرگ، مرکز توجه هر اتاقی را تشکیل می‌دهد.</p>
506
+ <button class="add-btn" onclick="addToCart('کیفه ماهی بزرگ')">
507
+ <i class="fa-solid fa-plus"></i> افزودن به سبد
508
+ </button>
509
+ </div>
510
+ </div>
511
+ </section>
512
+
513
+ <!-- Footer -->
514
+ <footer id="contact">
515
+ <div class="footer-content">
516
+ <div class="logo" style="justify-content: center; margin-bottom: 20px;">
517
+ <i class="fa-solid fa-water"></i>
518
+ آکواریوم لوکس
519
+ </div>
520
+ <p>تولیدکننده ماهی‌های گرافیکی و آکواریوم‌های دیجیتال با کیفیت بالا و طراحی مدرن.</p>
521
+
522
+ <div class="footer-links">
523
+ <a href="#">سوالات متداول</a>
524
+ <a href="#">شرایط استفاده</a>
525
+ <a href="#">حریم خصوصی</a>
526
+ <a href="#">پشتیبانی</a>
527
+ </div>
528
+
529
+ <div class="social-icons" style="margin-bottom: 30px;">
530
+ <i class="fa-brands fa-telegram" style="margin: 0 10px; font-size: 1.5rem; cursor: pointer;"></i>
531
+ <i class="fa-brands fa-instagram" style="margin: 0 10px; font-size: 1.5rem; cursor: pointer;"></i>
532
+ <i class="fa-brands fa-whatsapp" style="margin: 0 10px; font-size: 1.5rem; cursor: pointer;"></i>
533
+ </div>
534
+
535
+ <div class="bottom-footer">
536
+ &copy; ۱۴۰۳ تمامی حقوق محفوظ است. طراحی شده با <i class="fa-solid fa-heart" style="color: var(--secondary-color);"></i>
537
+ <br><br>
538
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="anycoder-link">Built with anycoder</a>
539
+ </div>
540
+ </div>
541
+ </footer>
542
+
543
+ <!-- Toast Notification -->
544
+ <div class="toast" id="toast">
545
+ <i class="fa-solid fa-check-circle"></i>
546
+ <span id="toastMessage">محصول به سبد اضافه شد!</span>
547
+ </div>
548
+
549
+ <script>
550
+ // --- Background Bubble Generator ---
551
+ const oceanContainer = document.getElementById('oceanContainer');
552
+
553
+ function createBubbles() {
554
+ for (let i = 0; i < 20; i++) {
555
+ const bubble = document.createElement('div');
556
+ bubble.classList.add('bubble');
557
+
558
+ // Random size
559
+ const size = Math.random() * 40 + 10;
560
+ bubble.style.width = `${size}px`;
561
+ bubble.style.height = `${size}px`;
562
+
563
+ // Random position
564
+ bubble.style.left = `${Math.random() * 100}vw`;
565
+
566
+ // Random animation duration and delay
567
+ const duration = Math.random() * 10 + 10; // 10-20s
568
+ const delay = Math.random() * 10;
569
+ bubble.style.animationDuration = `${duration}s`;
570
+ bubble.style.animationDelay = `${delay}s`;
571
+
572
+ oceanContainer.appendChild(bubble);
573
+ }
574
+ }
575
+
576
+ createBubbles();
577
+
578
+ // --- Fish Animation Logic (Randomize existing fish) ---
579
+ const fishContainer = document.getElementById('fishContainer');
580
+ const fishElements = document.querySelectorAll('.fish');
581
+
582
+ function randomizeFish() {
583
+ fishElements.forEach(fish => {
584
+ // Randomize animation duration
585
+ const duration = Math.random() * 20 + 10;
586
+ fish.style.animationDuration = `${duration}s`;
587
+
588
+ // Randomize animation delay
589
+ const delay = Math.random() * 10;
590
+ fish.style.animationDelay = `${delay}s`;
591
+
592
+ // Randomize font size slightly
593
+ const size = Math.random() * 2 + 1.5;
594
+ fish.style.fontSize = `${size}rem`;
595
+
596
+ // Randomize top position
597
+ const top = Math.random() * 80;
598
+ fish.style.top = `${top}%`;
599
+ });
600
+ }
601
+
602
+ // Change fish positions every 30 seconds
603
+ setInterval(randomizeFish, 30000);
604
+ randomizeFish(); // Run once on load
605
+
606
+ // --- Cart Logic ---
607
+ let cartCount = 0;
608
+ const cartCountEl = document.getElementById('cartCount');
609
+ const toast = document.getElementById('toast');
610
+ const toastMessage = document.getElementById('toastMessage');
611
+
612
+ function addToCart(productName) {
613
+ cartCount++;
614
+ cartCountEl.textContent = cartCount;
615
+
616
+ // Show Toast
617
+ toastMessage.textContent = `✅ ${productName} به سبد خرید اضافه شد!`;
618
+ toast.classList.add('show');
619
+
620
+ // Hide Toast after 3 seconds
621
+ setTimeout(() => {
622
+ toast.classList.remove('show');
623
+ }, 3000);
624
+
625
+ // Add simple animation to cart icon
626
+ cartCountEl.style.transform = "scale(1.5)";
627
+ setTimeout(() => {
628
+ cartCountEl.style.transform = "scale(1)";
629
+ }, 200);
630
+ }
631
+
632
+ // --- Smooth Scroll for Links ---
633
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
634
+ anchor.addEventListener('click', function (e) {
635
+ e.preventDefault();
636
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
637
+ behavior: 'smooth'
638
+ });
639
+ });
640
+ });
641
+
642
+ </script>
643
+ </body>
644
+ </html>