forked from swaraj-das/Collect-your-GamingTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
948 lines (826 loc) · 41.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Collect your GamingTools</title>
<!--adding meta keywords and description -->
<meta name="keywords" content="gaming tools, game accessories, gaming gear, gaming equipment, gaming setup, game controller, gaming mouse, gaming keyboard, gaming headset, gaming software, eSports tools, gaming community, gaming chair, VR gaming tools, game streaming equipment, console gaming, PC gaming, mobile gaming, gaming tips, game reviews, gaming news">
<meta name="description" content="Collect and discover the ultimate gaming tools and accessories to enhance your gaming experience. From high-performance controllers and mice to immersive headsets and VR gaming equipment, we have everything you need for console, PC, and mobile gaming. Join our gaming community for tips and reviews to stay ahead in the game!">
<link rel="shortcut icon" href="images/logo.png" type="image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css" />
</head>
<body>
<div id="progressBarContainer">
<div id="progressBar"></div>
</div>
<div class="container">
<div class="navbar">
<div class="logo-outer">
<a href="/"> <img src="images/logo.png" class="logo" alt="Logo"></a>
<a href="/"><span class="website-name">Collect your GamingTools</span></a>
</div>
<nav>
<ul>
<li><a href="./index.html">Home</a></li>
<li><a href="./aboutus.html">About Us</a></li>
<li><a href="#controller">Game Controllers</a></li>
<li><a href="#vrsection">VR Accessories</a></li>
<li><a href="#keyboard">Gaming Keyboard</a></li>
<li><a href="#others">Others</a></li>
<li class="login"><a href="login/login.html">Login</a></li>
<li><label class="switch">
<input type="checkbox" id="theme-toggle" onchange="toggleTheme()">
<span class="slider"></span>
</label></li>
<!-- Inside the navbar ul -->
<li class="cart-nav">
<a href="#"><img height="25px " width="25px" src="images/cart.png" alt="Cart Icon"> <span id="cart-count">0</span></a>
</li>
</ul>
<!-- Hamburger Menu Icon -->
<img src="images/menu.png" class="menu-icon" onclick="toggleMenu()">
</nav>
</div>
<nav>
<ul id="menuList">
<li><a href="#controller">Game Controllers</a></li>
<li><a href="#vrsection">VR Accessories</a></li>
<li><a href="#keyboard">Gaming Keyboard</a></li>
<li><a href="#others">Others</a></li>
<li class="login"><a href="login/login.html">Login</a></li>
<!-- Theme Toggle -->
<li><label class="switch">
<input type="checkbox" id="theme-toggle" onchange="toggleTheme()">
<span class="slider"></span>
</label></li>
</ul>
<!-- Hamburger Menu Icon -->
<img src="images/menu.png" class="menu-icon" onclick="toggleMenu()">
</nav>
<section class="hero">
<div class="overlay"></div>
<div class="hero-content">
<!-- Search Bar (initially hidden) -->
<div class="searchbar-outer">
<div class="search-bar hidden" id="searchBar">
<input type="text" id="search-input" placeholder="Search..." />
<button type="button" onclick="performSearch()">🔍</button>
</div>
</div>
<h1 data-aos="fade-down">Welcome to GamingTools</h1>
<p data-aos="fade-down">Your one-stop shop for all gaming accessories.</p>
<a href="#controller" class="cta-btn" data-aos="fade-down">Explore Products</a>
</div>
</section>
<!-- PS4 Controller Section -->
<div class="row" id="controller" >
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">PS4 V2 Dualshock 4</h2>
<h3>Wireless Controllers for PlayStation 4</h3>
<p>(Compatible/Generic)</p>
<div class="price">
<span class="original-price">₹5500</span>
<span class="discounted-price">₹3999</span>
<span class="discount">30% off</span>
</div>
<div class="rating">
<span>★★★★☆</span>
<p>(2252 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.1★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/controller1.png" class="controller" alt="Controller">
<div class="color-box"></div>
</div>
</div>
<!-- Xbox Controller Section -->
<div class="row">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">Xbox Wireless Controller</h2>
<h3>Controllers for Xbox One and Series X</h3>
<p>(Official)</p>
<div class="price">
<span class="original-price">₹4500</span>
<span class="discounted-price">₹3499</span>
<span class="discount">22% off</span>
</div>
<div class="rating">
<span>★★★★★</span>
<p>(1189 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.8★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/newcontroller3.png" class="controller" alt="Controller"> <!-- replaced old blurry image with enhanced image -->
<div class="color-box"></div>
</div>
</div>
<!-- Nintendo Switch Controller Section -->
<div class="row">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">Nintendo Switch Pro Controller</h2>
<h3>Wireless Controllers for Nintendo Switch</h3>
<p>(Official)</p>
<div class="price">
<span class="original-price">₹6000</span>
<span class="discounted-price">₹4999</span>
<span class="discount">17% off</span>
</div>
<div class="rating">
<span>★★★★☆</span>
<p>(3145 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.2★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/controller2.png" class="controller" alt="Controller"><!--changed the image, as it was interchanged with the xbox controller image-->
<div class="color-box"></div>
</div>
</div>
<!-- VR Headset Section -->
<div class="row" id="vrsection">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">Meta Quest Pro</h2>
<h3>VR Headset from Meta</h3>
<p>(Official)</p>
<div class="price">
<span class="original-price">₹40000</span>
<span class="discounted-price">₹35200</span>
<span class="discount">12% off</span>
</div>
<div class="rating">
<span>★★★★☆</span>
<p>(871 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.2★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/metaquest.jpg" class="controller" alt="Controller"><!--changed the image, as it was interchanged with the xbox controller image-->
<div class="color-box"></div>
</div>
</div>
<!-- VR Headset Section 2 -->
<div class="row">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">Apple Vision Pro</h2>
<h3>VR Headset from Apple</h3>
<p>(Official)</p>
<div class="price">
<span class="original-price">₹293999</span>
<span class="discounted-price">₹264599</span>
<span class="discount">10% off</span>
</div>
<div class="rating">
<span>★★★★★</span>
<p>(235 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.8★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/visionpro.png" class="controller" alt="Controller"><!--changed the image, as it was interchanged with the xbox controller image-->
<div class="color-box"></div>
</div>
</div>
<!-- Gaming Mouse Section -->
<div class="row" id="others">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">Logitech G502 Hero</h2>
<h3>High Performance Gaming Mouse</h3>
<p>(Wired)</p>
<div class="price">
<span class="original-price">₹4000</span>
<span class="discounted-price">₹2999</span>
<span class="discount">25% off</span>
</div>
<div class="rating">
<span>★★★★★</span>
<p>(9256 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">5.0★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/mouse.png" class="controller" alt="Gaming Mouse">
<div class="color-box"></div>
</div>
</div>
<!-- Gaming Keyboard Section -->
<div class="row" id="keyboard">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">Razer BlackWidow</h2>
<h3>Mechanical Gaming Keyboard</h3>
<p>(Wired)</p>
<div class="price">
<span class="original-price">₹7000</span>
<span class="discounted-price">₹5499</span>
<span class="discount">21% off</span>
</div>
<div class="rating">
<span>★★★★☆</span>
<p>(6184 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.5★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/keyboard.png" class="controller" alt="Gaming Keyboard">
<div class="color-box"></div>
</div>
</div>
<!-- Gaming Headset Section -->
<div class="row">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">SteelSeries Arctis 7</h2>
<h3>Wireless Gaming Headset</h3>
<p>(Surround Sound)</p>
<div class="price">
<span class="original-price">₹12000</span>
<span class="discounted-price">₹8999</span>
<span class="discount">25% off</span>
</div>
<div class="rating">
<span>★★★★★</span>
<p>(8452 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.7★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/headset.png" class="controller" alt="Gaming Headset">
<div class="color-box"></div>
</div>
</div>
<!-- Gaming Chair Section -->
<div class="row">
<div class="col-1" data-aos="fade-right">
<h2 class="card-heading">Secretlab Omega</h2>
<h3>Ergonomic Gaming Chair</h3>
<p>(Adjustable)</p>
<div class="price">
<span class="original-price">₹30000</span>
<span class="discounted-price">₹24999</span>
<span class="discount">17% off</span>
</div>
<div class="rating">
<span>★★★★★</span>
<p>(3564 reviews)</p>
</div>
<div class="overall-rating">
<span>Overall Rating:</span>
<p class="star">4.8★</p>
</div>
<div class="btn-section">
<button type="button" id = "buy-btn">Buy Now<img src="images/arrow.png" alt="Arrow"></button>
<button type="button" id = "cart-btn">Add to Cart<img src="images/add.png" alt="Cart"></button>
</div>
</div>
<div class="col-2" data-aos="fade-left">
<img src="images/newchair.png" class="controller" alt="Gaming Chair">
<div class="color-box"></div>
</div>
</div>
</div>
<!-- FAQ Section -->
<section id="faq">
<div class="faq-container">
<h1 class="faq-title" data-aos="fade-right">Frequently Asked Questions</h1>
<div class="faq" data-aos="fade-right">
<input type="checkbox" id="faq1">
<label for="faq1" class="faq-question">1. Does your website consist of all types of gaming tools? <span class="arrow"></span></label>
<div class="faq-answer">
We have tried our best to make all the tools available for enthusiastic gamers.
</div>
</div>
<div class="faq" data-aos="fade-right">
<input type="checkbox" id="faq2">
<label for="faq2" class="faq-question">2. If I'm having some purchased-product related issues, can the product be replaced as per my need? <span class="arrow"></span></label>
<div class="faq-answer">
By considering our terms and conditions, further actions will be taken.
</div>
</div>
<div class="faq" data-aos="fade-right">
<input type="checkbox" id="faq3">
<label for="faq3" class="faq-question">3. Can I buy multiple products at once? <span class="arrow"></span></label>
<div class="faq-answer">
Yes, you are welcome to buy multiple products at one time.
</div>
</div>
<div class="faq" data-aos="fade-right">
<input type="checkbox" id="faq4">
<label for="faq4" class="faq-question">4. Do you have any free courier services or is it paid? <span class="arrow"></span></label>
<div class="faq-answer">
We have courier services for our customers and it's absolutely free.
</div>
</div>
</div>
</section>
<!-- testimonial -->
<div id="page" class="site">
<div class="container-swipe">
<div class="testi">
<div class="head">
<h3>Testimonials</h3>
<p>What Our Customers Say</p>
</div>
<div class="body swiper">
<ul class="swiper-wrapper">
<li class="swiper-slide">
<div class="wrapper">
<div class="thumbnail">
<img src="images/girl1.png" alt="">
</div>
<div class="aside">
<p>I’ve been searching for the perfect gaming accessories for ages, and I finally found them on this website! The variety available is truly impressive; I was able to find exactly what I needed to enhance my gaming experience. The quality of the products exceeded my expectations.</p>
<div class="name">
<h4>Sarah malik</h4>
<p>★★★★★</p>
</div>
</div>
</div>
</li>
<li class="swiper-slide">
<div class="wrapper">
<div class="thumbnail">
<img src="images/boy2.png" alt="">
</div>
<div class="aside">
<p>Shopping on this website was a breeze! I love how user-friendly the interface is; it made navigating through the different categories so easy. I was able to find exactly what I needed without any hassle. The checkout process was smooth, and I received my items promptly</p>
<div class="name">
<h4>John Doe</h4>
<p>★★★★☆</p>
</div>
</div>
</div>
</li>
<li class="swiper-slide">
<div class="wrapper">
<div class="thumbnail">
<img src="images/boy1.png" alt="">
</div>
<div class="aside">
<p>My order arrived much faster than I anticipated, which was a huge plus. The customer support team was incredibly helpful when I had a question about my order. I purchased a gaming headset, and it works perfectly! It has made a significant difference in my gaming sessions.</p>
<div class="name">
<h4>Alex Johnson</h4>
<p>★★★★★</p>
</div>
</div>
</div>
</li>
<li class="swiper-slide">
<div class="wrapper">
<div class="thumbnail">
<img src="images/girl2.png" alt="">
</div>
<div class="aside">
<p>As a serious gamer, I always look for high-quality gear that can enhance my performance. I stumbled upon this website and was blown away by the selection! I purchased a gaming mouse and a mechanical keyboard, and both have drastically improved my gameplay. .</p>
<div class="name">
<h4>Emily Davismore</h4>
<p>★★★★☆</p>
</div>
</div>
</div>
</li>
</ul>
<!-- pagination -->
<div class="swiper-pagination"></div>
<!-- navigation buttons -->
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
</div>
</div>
</div>
<!-- testimonial end -->
<section id="contact" data-aos="fade-right">
<div class="card pb-5 pt-1">
<div class="card-header">
<h2 >Contact Us</h2>
</div>
<div class="card-body">
<div class="image-section">
<img src="images/7725176.jpg" alt="Contact Image"style="max-width: 80%; height: auto; max-height: 500px;">
</div>
<div class="form-section">
<form id="contactForm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your name">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email">
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" placeholder="Your message"></textarea>
</div>
<button type="submit">Send</button>
</form>
<script>
// Function to load form data from local storage
function loadFormData() {
const data = JSON.parse(localStorage.getItem('formData')) || [];
if (data.length > 0) {
// Optionally, you can display the saved data
console.log('Saved Form Data:', data);
}
}
// Function to save form data to local storage
function saveFormData() {
const name = document.getElementById('name').value;
const email = document.getElementById('email').value;
const message = document.getElementById('message').value;
// Create a new entry
const newEntry = { name, email, message };
// Get existing data from local storage or initialize an empty array
const existingData = JSON.parse(localStorage.getItem('formData')) || [];
// Add the new entry to the existing data
existingData.push(newEntry);
// Save the updated data back to local storage
localStorage.setItem('formData', JSON.stringify(existingData));
}
// Event listener for form submission
document.getElementById('contactForm').addEventListener('submit', function(event) {
event.preventDefault(); // Prevent the default form submission
saveFormData(); // Save form data to local storage
clearForm(); // Clear the input fields
alert('Message sent!'); // Display a confirmation message
});
// Function to clear input fields
function clearForm() {
document.getElementById('name').value = '';
document.getElementById('email').value = '';
document.getElementById('message').value = '';
}
// Load the form data when the page is loaded
window.onload = loadFormData;
</script>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="footer-content">
<div class="footer-section about">
<div class="logo-container">
<img src="images/logo.png" alt="GamingTools Logo" class="footer-logo">
<h2 class="logo-text">Collect your GamingTools</h2>
</div>
<p class="about-text">
Your one-stop shop for premium gaming accessories. Elevate your gaming experience with our curated selection of controllers, VR gear, and more.
</p>
<div class="contact">
<span><i class="fas fa-phone"></i> 123-456-789</span>
<span><i class="fas fa-envelope"></i> [email protected]</span>
</div>
<div class="socials">
<!-- Added classes to the <a> tags to add the Hover animations -->
<a class="facebook" href="#"><i class="fab fa-facebook"></i></a>
<a class="instagram" href="#"><i class="fab fa-instagram"></i></a>
<a class="twitter" href="#" ><i class="fa-brands fa-x-twitter"></i></a>
<a class="youtube" href="#"><i class="fab fa-youtube"></i></a>
</div>
</div>
<div class="footer-section quick-links">
<!-- Quick Links Content -->
</div>
<div class="footer-section links">
<h2>Quick Links</h2>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#faq">FAQ</a></li>
<li><a href="Contributors/contributor.html">Contributors</a></li>
<li><a href="PrivacyPolicy/PrivacyPolicy.html">Privacy Policy</a></li>
</ul>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Enhanced Footer Feedback Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E-commerce Landing Page with Feedback Form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- Other sections of the website -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Feedback Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="form-container">
<h2>We Value Your Feedback</h2>
<p>Please fill out the form below to share your experience with us.</p>
<form id="feedbackForm" action="#" method="POST">
<!-- User Information -->
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
<span class="error-message" id="nameError"></span>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
<span class="error-message" id="emailError"></span>
</div>
<!-- Feedback Type -->
<div class="form-group">
<label for="feedbackType">Feedback Category:</label>
<select id="feedbackType" name="feedbackType" required>
<option value="">--Select a category--</option>
<option value="usability">Website Usability</option>
<option value="content">Content Quality</option>
<option value="service">Customer Service</option>
</select>
<span class="error-message" id="categoryError"></span>
</div>
<!-- Feedback Text -->
<div class="form-group">
<label for="message">Feedback:</label>
<textarea id="message" name="message" rows="4" placeholder="Share your thoughts..." required></textarea>
<span class="error-message" id="messageError"></span>
</div>
<!-- Submit Button -->
<button type="submit">Submit Feedback</button>
<!-- Thank You Message -->
<div class="thank-you-message" id="thankYouMessage">
Thank you for your feedback! We appreciate your input.
</div>
</form>
</div>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
color: #333;
}
.form-container {
max-width: 600px;
margin: 50px auto;
background-color: white;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
h2 {
text-align: center;
margin-bottom: 20px;
}
p {
text-align: center;
color: #666;
}
.form-group {
margin-bottom: 15px;
}
label {
font-weight: bold;
display: block;
margin-bottom: 5px;
}
input, textarea, select {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 16px;
}
button {
width: 100%;
padding: 10px;
background-color: #28a745;
color: white;
border: none;
border-radius: 4px;
font-size: 18px;
cursor: pointer;
}
button:hover {
background-color: #218838;
}
.error-message {
color: red;
font-size: 14px;
display: none;
}
.thank-you-message {
display: none;
text-align: center;
margin-top: 20px;
color: green;
font-size: 18px;
}
@media (max-width: 600px) {
.form-container {
margin: 20px;
padding: 15px;
}
button {
font-size: 16px;
}
}
</style>
<script src="script.js">
document.getElementById("feedbackForm").addEventListener("submit", function(event){
event.preventDefault(); // Prevent form from submitting
let isValid = true;
// Name validation
const name = document.getElementById("name");
const nameError = document.getElementById("nameError");
if (name.value.trim() === "") {
nameError.textContent = "Name is required.";
nameError.style.display = "block";
isValid = false;
} else {
nameError.style.display = "none";
}
// Email validation
const email = document.getElementById("email");
const emailError = document.getElementById("emailError");
const emailPattern = /^[^ ]+@[^ ]+\.[a-z]{2,3}$/;
if (!emailPattern.test(email.value.trim())) {
emailError.textContent = "Please enter a valid email address.";
emailError.style.display = "block";
isValid = false;
} else {
emailError.style.display = "none";
}
// Feedback Category validation
const feedbackType = document.getElementById("feedbackType");
const categoryError = document.getElementById("categoryError");
if (feedbackType.value === "") {
categoryError.textContent = "Please select a feedback category.";
categoryError.style.display = "block";
isValid = false;
} else {
categoryError.style.display = "none";
}
// Message validation
const message = document.getElementById("message");
const messageError = document.getElementById("messageError");
if (message.value.trim() === "") {
messageError.textContent = "Feedback message cannot be empty.";
messageError.style.display = "block";
isValid = false;
} else {
messageError.style.display = "none";
}
// If valid, show thank you message
if (isValid) {
document.getElementById("thankYouMessage").style.display = "block";
}
});
</script>
</body>
</html>
</div>
<div class="footer-bottom">
© 2024 GamingTools | Designed by Swaraj
</div>
</footer>
<div class="social-sidebar">
<div class="close-btn" id="SideBar" onclick="toggleSidebar()" title="Close Sidebar">×</div>
<ul id="sidebar-content">
<li><a class= "facebook" href="#"><i class="fa-brands fa-meta"></i></a></li>
<li><a class="twitter" href="#" ><i class="fa-brands fa-x-twitter"></i></a></li>
<li><a class= "instagram" href="#"><i class="fa-brands fa-instagram"></i></a></li>
<li><a class= "youtube" href="#"><i class="fa-brands fa-youtube"></i></a></li>
</ul>
</div>
<div class="toggle-arrow" onclick="toggleSidebar()" title="Open Sidebar" style="display: none;">
<i class="fas fa-arrow-left"></i>
</div>
<button id="scrollToTopBtn" class="scroll-top" aria-label="Scroll to top">
<div class="scroll-top-icon">
<ion-icon name="arrow-up-outline"></ion-icon>
</div>
<svg class="progress-ring" width="60" height="60">
<circle class="progress-ring__circle" stroke="#ffffff" stroke-width="4" fill="transparent" r="28" cx="30" cy="30"></circle>
</svg>
</button>
<script>
let cartItemCount = 0;
document.getElementById('cart-btn').addEventListener('click', function () {
cartItemCount++;
document.getElementById('cart-count').textContent = cartItemCount;
alert('Item added to cart');
});
</script>
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script>
var swiper = new Swiper('.swiper-container', {
slidesPerView: 1,
spaceBetween: 30,
loop: true,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
</script>
<script src="https://kit.fontawesome.com/856f4a44d7.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js"></script>
<script src="script.js"></script>
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
<script>
window.embeddedChatbotConfig = {
chatbotId: "awMKW3zFwW7jzUNsN4Q8O",
domain: "www.chatbase.co"
}
</script>
<script
src="https://www.chatbase.co/embed.min.js"
chatbotId="awMKW3zFwW7jzUNsN4Q8O"
domain="www.chatbase.co"
defer>
</script>
<script src="https://unpkg.com/[email protected]/dist/aos.js"></script>
<script>
AOS.init();
</script>
</body>
</html>