forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
F&Q.html
913 lines (795 loc) · 25.7 KB
/
F&Q.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="BuddyTrail is a travel agency website that helps you pick out your holiday vacation"
/>
<meta name="robots" content="index,follow" />
<link rel="stylesheet" href="RatingStyle.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./styles/popup.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Pattaya&family=Poppins:wght@400;500&display=swap"
rel="stylesheet"
/>
<link rel="icon" href="/icons/airplane.svg" />
<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="chatbot.css" />
<title>BuddyTrail</title>
<style>
.header1 {
/* background-color:white; */
border-radius: 8px;
padding: 4px 8px 4px 8px;
}
/* Button Styling */
.btn {
background-color: #007bff; /* Primary button color */
padding: 10px 20px; /* Padding for button size */
text-decoration: none; /* Remove underline from text */
color: white; /* White text */
border-radius: 5px; /* Rounded corners */
}
/* Hover Effect for Buttons */
.btn:hover {
background-color: #0056b3; /* Darker color on hover */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
display: flex;
align-items: flex-start; /* Align items at the start of the container */
justify-content: space-between; /* Space between elements */
gap: 20px; /* Optional gap between form and rating section */
height: auto; /* Adjust height if necessary */
}
.form-section {
width: 70%; /* Adjust width as needed */
}
.rating-wrap {
width: 30%; /* Adjust width as needed */
text-align: left;
}
.center {
width: auto;
display: inline-flex; /* Align stars and rating count in a row */
align-items: center;
gap: 10px; /* Add some space between the stars and the count */
}
.rating {
height: 50px;
}
.rating:hover {
cursor: pointer;
}
#rating-value {
font-size: 1.2rem; /* Adjust font size */
font-weight: bold;
color: black; /* Optional: change the color to match the theme */
}
.rating {
border: none;
float: right;
}
.rating > input {
display: none;
}
.rating > label:before {
content: "\f005";
font-family: FontAwesome;
margin: 5px;
font-size: 1.5rem;
display: inline-block;
cursor: pointer;
}
.rating > .half:before {
content: "\f089";
position: absolute;
cursor: pointer;
}
.rating > label {
color: #ddd; /* Empty stars initially */
float: right;
cursor: pointer;
}
/* Filled stars on hover and selection */
.rating > input:checked ~ label,
.rating:not(:checked) > label {
color: #ddd; /* Keep stars empty until interaction */
}
.rating > input:checked ~ label,
.rating > input:checked ~ label:hover,
.rating > input:checked ~ label:hover ~ label {
color: rgb(230, 166, 17); /* Green for filled stars */
}
.rating > label:hover ~ label,
.rating > label:hover {
color: rgb(230, 166, 17); /* Green hover effect */
}
.chatbot-container {
position: fixed;
bottom: 20px; /* Adjust as needed */
right: 20px; /* Adjust as needed */
z-index: 1000; /* Ensure it appears above other elements */
}
.chatbot-button {
background-color: #007bff; /* Change to your preferred color */
border: none;
border-radius: 50%;
padding: 5px; /* Smaller padding */
cursor: pointer;
position: relative;
width: 50px; /* Adjusted size */
height: 50px; /* Adjusted size */
}
.chatbot-button img {
width: 30px; /* Adjusted image size */
height: 30px; /* Adjusted image size */
}
.tooltip-text {
display: none; /* Hide by default */
position: absolute;
top: -10%; /* Position above the button */
left: -230px;
transform: translateX(-230px, -50%);
background-color: #333; /* Background color for tooltip */
color: #fff; /* Tooltip text color */
padding: 5px;
border-radius: 5px;
white-space: nowrap; /* Prevent text from wrapping */
}
.chatbot-button:hover .tooltip-text {
display: block; /* Show on hover */
}
.logo {
display: flex;
flex-direction: row;
align-items: center;
}
.card:hover {
cursor: pointer;
}
@media (max-width: 768px) {
.itinerary-list {
flex-direction: column;
align-items: center;
}
.itinerary {
margin-bottom: 20px;
width: 90%;
}
.itinerary {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
}
.itinerary:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn-view-itinerary:hover {
background-color: #0056b3;
}
/* darkmode */
body {
background-color: white;
color: black;
transition: background-color 0.3s, color 0.3s;
}
body.dark-mode {
background-color: #121212;
color: #ffffff;
}
header.dark-mode {
background-color: #1f1f1f;
}
.mode-toggle {
cursor: pointer;
border: none;
background: transparent;
outline: none;
padding: 10px;
}
.mode-toggle img {
width: 24px;
height: 24px;
}
.navbar {
background-color: #f0f0f0;
transition: background-color 0.3s;
}
body.dark-mode .navbar {
background-color: #333;
}
body.dark-mode .navbar a:hover {
color: #4C51BF;
transform: translateY(-2px);
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<style>
/* circle styles */
.circle {
height: 24px;
width: 24px;
border-radius: 24px;
background-color: rgb(255, 0, 0);
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999;
}
</style>
</head>
<body>
<script src="script.js"></script>
<script>
</script>
<header class="main-head">
<button class="go-top-btn">
<img height="45px" width="50px" src="arrow_upper.png " alt="arrow up">
</button>
<div class="logo">
<img src="img/logo.png" id="logo-web" />
<h1 id="logo"><a href="#home">BuddyTrail</a></h1>
</div>
<nav>
<ul id="nav-list">
<span class="dropdown-close-btn" id="closeBtn">×</span>
<li><a href="index.html" class="navhover">Home</a></li>
<li><a href="team.html" class="navhover">Team</a></li>
<li>
<a href="index.html#deals" class="navhover">Exclusive Deals</a>
</li>
<li><a href="index.html#benefits" class="navhover">Benefits</a></li>
<li><a href="about.html" class="navhover">About</a></li>
<li>
<a href="index.html#itineraries" class="navhover"
>Travel Itineraries</a
>
</li>
<li><a href="./contact.html" class="navhover">Contact</a></li>
<li><a href="index.html#reviews" class="navhover">Reviews</a></li>
<li><a href="auth.html" class="navhover">Sign In</a></li>
</ul>
</nav>
<!-- Toggle Button -->
<div class="toggle-button">
<button class="mode-toggle" id="modeToggle">
<span class="sun-icon glow"><img src="day-mode.png" alt="Light mode"></span>
<span class="moon-icon glow" style="display: none;"><img src="moon.png" alt="Dark mode"></span>
</button>
</div>
<!-- Hamburger button for mobile -->
<button class="hamburger" id="hamburger">☰</button>
</header>
<div
style="
width: 100%;
height: 125px;
background-color: #333;
margin-top: -20px;
"
></div>
<img
style="
position: absolute;
width: 250px;
top: 450px;
right: 1250px;
mix-blend-mode: multiply;
"
src="img/HELP-IMG.jpg"
alt="image"
id="clipart-img1"
/>
<img
style="
position: absolute;
width: 250px;
top: 300px;
left: 1250px;
mix-blend-mode: multiply;
"
src="img/download.jpeg"
alt="image"
id="clipart-img2";
/>
<div class="faq-container">
<!-- About Our Website Section -->
<section id="about">
<h2>About Our Website</h2>
<p>
Welcome to our travel agency website! We are dedicated to providing
you with the best travel experiences by offering comprehensive trip
plans and a wide selection of hotels. Whether you are looking for an
adventurous getaway or a relaxing retreat, we've got you covered.
</p>
</section>
<!-- Most Frequent Questions Section -->
<section id="frequent-questions">
<h2>Most Frequent Questions</h2>
<ul>
<li>
<strong>Q: How do I book a trip?</strong><br />A: You can book a
trip by visiting our "Book a Trip" section and filling out the
required details.
</li>
<li>
<strong>Q: Can I modify my hotel reservations?</strong><br />A: Yes,
you can modify your hotel reservations through your account
dashboard.
</li>
<li>
<strong>Q: Do you offer group discounts?</strong><br />A: Yes, we
offer special discounts for group bookings. Contact us for more
details.
</li>
</ul>
</section>
<!-- Suggestions/Questions Form Section -->
<!-- Suggestions/Questions Form Section -->
<section id="suggestions-form">
<h2>Suggestions/Questions</h2>
<form id="suggestionForm" action="/submit-suggestion" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required placeholder="Your Name"><br><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required placeholder="Your Email"><br><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="5" required placeholder="Your Message"></textarea><br><br>
<button type="submit">Submit</button>
</form>
<!-- Centered Pop-up Notification -->
<div id="notification" class="modal" style="display: none;">
<div class="modal-content">
<span class="close-btn">×</span>
<p style="color: white;">Thank you! Your suggestion has been submitted.</p>
</div>
</div>
</div>
</section>
<script>
// Get elements
const form = document.getElementById('suggestionForm');
const modal = document.getElementById('notification');
const closeBtn = document.querySelector('.close-btn');
// Handle form submission
form.addEventListener('submit', function(event) {
event.preventDefault(); // Prevent form submission
// Simulate form submission (you can still process this with AJAX)
setTimeout(function() {
// Show the modal
modal.style.display = 'block';
}, 500);
// Optionally reset form fields
event.target.reset();
});
// Close the modal when the user clicks on the close button
closeBtn.addEventListener('click', function() {
modal.style.display = 'none';
});
// Close the modal when the user clicks outside of the modal content
window.addEventListener('click', function(event) {
if (event.target === modal) {
modal.style.display = 'none';
}
});
const goTopBtn= document.querySelector('.go-top-btn');
window.addEventListener('scroll',checkHeight)
function checkHeight(){
if(window.scrollY > 200){
goTopBtn.style.display="flex"
} else{
goTopBtn.style.display="none"
}
}
goTopBtn.addEventListener('click', () =>{
window.scrollTo({
top:0,
behavior:"smooth"
})
})
</script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
padding: 0px;
}
.faq-container {
max-width: 800px;
margin: 0 auto;
margin-top: 50px;
margin-bottom: 50px;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, transform 0.3s ease;
}
.faq-container:hover {
background-color: #e0f7fa;
transform: scale(1.02);
}
/* Section Headings */
h2 {
color: #0056b3;
margin-bottom: 15px;
transition: color 0.3s ease, transform 0.3s ease;
}
/* Hover effect for headings */
h2:hover {
color: #004494;
transform: translateY(-5px);
}
/* Paragraphs and List Styling */
p,
ul,
li {
font-size: 16px;
line-height: 1.6;
color: #333;
}
ul {
list-style-type: none;
}
li {
margin-bottom: 10px;
}
/* Form Styling */
form {
margin-top: 20px;
}
label {
font-weight: bold;
color: #333;
}
input,
textarea {
width: 100%;
padding: 10px;
margin-top: 5px;
margin-bottom: 15px;
border: 1px solid #ddd;
border-radius: 5px;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Hover effect for input and textarea */
input:focus,
textarea:focus {
border-color: #0056b3;
box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
}
/* Button Styling */
button {
background-color: #ba5ae0;
color: white;
border: none;
padding: 10px 20px;
border-radius: 8px;
font-size: 1.5rem;
transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease;
}
button:hover {
background-color: #19181a; /* Bright yellow on hover */
color: #e9e8ea;
transform: translateY(-3px);
border: 2px solid #7f6e60;
}
/* Form Section Background */
#suggestions-form {
background-color: #f0f8ff;
padding: 20px;
border-radius: 8px;
transition: background-color 0.3s ease;
}
/* Hover effect for form section */
#suggestions-form:hover {
background-color: #e6f7ff;
}
/* Frequent Questions Section */
#frequent-questions {
background-color: #e8f5e9;
padding: 20px;
border-radius: 8px;
margin-top: 20px;
transition: background-color 0.3s ease;
}
/* Hover effect for FAQ section */
#frequent-questions:hover {
background-color: #dcedc8;
}
/* About Section */
#about {
background-color: #fff3e0;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
transition: background-color 0.3s ease;
}
/* Hover effect for About section */
#about:hover {
background-color: #ffe0b2;
}
</style>
main
main
<!-- Circles -->
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<script>
// coordinates for the cursor :
const coords = { x: 0, y: 0 };
const circles = document.querySelectorAll(".circle");
const colors = [
"#fc5720", "#fc6532", "#fc6532","#fd8b65", "#d5585c", "#fac3b1", "#f4d5cb", "#fefefe", "#fefefe", "#cdf2c5", "#b2eca5", "#95e283", "#7dda68", "#4adc2d", "#69d451", "#54c939", "#34b916", "#28b309", "#1e9c02",
];
circles.forEach(function (circle, index) {
circle.x = 0;
circle.y = 0;
circle.style.backgroundColor = colors[index % colors.length];
});
// update the coordinates when the mouse moves:
window.addEventListener("mousemove", function (e) {
coords.x = e.clientX;
coords.y = e.clientY;
});
// animation function to move the circles:
function animateCircles() {
let x = coords.x;
let y = coords.y;
circles.forEach(function (circle, index) {
circle.style.left = x - 12 + "px";
circle.style.top = y - 12 + "px";
circle.style.scale = (circles.length - index) / circles.length;
circle.x = x;
circle.y = y;
const nextCircle = circles[index + 1] || circles[0];
x += (nextCircle.x - x) * 0.3;
y += (nextCircle.y - y) * 0.3;
});
requestAnimationFrame(animateCircles);
}
animateCircles();
</script>
<!-- dark theme -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const hamburger = document.getElementById("hamburger");
const navList = document.getElementById("nav-links");
const closeBtn = document.getElementById("closeBtn");
hamburger.addEventListener("click", function () {
navList.classList.toggle("active");
});
closeBtn.addEventListener("click", function () {
navList.classList.remove("active");
});
});
document.addEventListener("DOMContentLoaded", function() {
const modeToggle = document.getElementById("modeToggle");
const sunIcon = document.querySelector(".sun-icon");
const moonIcon = document.querySelector(".moon-icon");
// Check saved theme in localStorage and apply it
const currentTheme = localStorage.getItem("theme") || "light";
if (currentTheme === "dark") {
document.body.classList.add("dark-mode");
sunIcon.style.display = "none";
moonIcon.style.display = "inline-block";
} else {
sunIcon.style.display = "inline-block";
moonIcon.style.display = "none";
}
// Toggle between light and dark mode on button click
modeToggle.addEventListener("click", () => {
const isDarkMode = document.body.classList.toggle("dark-mode");
// Apply dark mode styles to relevant sections
const sections = document.querySelectorAll('.about, .core-values, .team');
sections.forEach(section => {
if (isDarkMode) {
section.classList.add('dark-mode');
} else {
section.classList.remove('dark-mode');
}
});
// Update icons and local storage
if (isDarkMode) {
sunIcon.style.display = "none";
moonIcon.style.display = "inline-block";
localStorage.setItem("theme", "dark");
} else {
sunIcon.style.display = "inline-block";
moonIcon.style.display = "none";
localStorage.setItem("theme", "light");
}
});
});
</script>
</body>
main
main
main
<footer id="footer">
<div class="footer-container">
<!-- About Us Section -->
<div class="footer-column">
<h3>About Us</h3>
<p>Discover and plan affordable trips with BuddyTrail's travel companion tools.</p>
</div>
<!-- Quick Links Section -->
<div class="footer-column">
<h3>Quick Links</h3>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="faq.html" class="faq-link">FAQs</a></li>
<li><a href="servicespage.html">Services</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="team.html">Team</a></li>
<li><a href="contributor/contributor.html">Our Contributor</a></li>
</ul>
</div>
<!-- Legal Links Section -->
<div class="footer-column">
<h3>Legal Links</h3>
<ul>
<li><a href="terms_of_service.html">Terms of Service</a></li>
<li><a href="privacypolicy.html">Privacy Policy</a></li>
<li><a href="copyright.html">Copyright Notice</a></li>
<li><a href="disclaimer.html">Disclaimer</a></li>
<li><a href="cookie_policy.html">Cookie Policy</a></li>
</ul>
</div>
<!-- Contact Us Section -->
<div class="footer-column">
<h3>Contact Us</h3>
<p>Email: <a href="mailto:info@example.com">info@example.com</a></p>
<p>Phone: <a href="tel:+1234567890">+123 456 7890</a></p>
</div>
<!-- Follow Us Section -->
<div class="footer-column">
<h3>Follow Us</h3>
<div class="social-icons">
<a href="https://discord.com/invite/priyaghosal" target="_blank"><i class="fab fa-discord"></i></a>
<a href="https://x.com/https://twitter.com/PriyaGhosa39968" target="_blank"><i class="fa-brands fa-x-twitter"></i></a>
<a href="https://github.com/PriyaGhosal/BuddyTrail" target="_blank"><i class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/priya-ghosal-785771286/" target="_blank"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<!-- Newsletter Form Section -->
<style>
.footer-column.newsletter {
max-width: 300px;
margin: 0 auto;
text-align: center;
}
#newsletter-form {
display: flex;
flex-direction: column;
align-items: center;
}
#email {
width: 100%;
margin-bottom: 10px;
padding: 8px;
box-sizing: border-box;
}
button[type="submit"] {
width: 100px;
padding: 6px;
font-size: 14px;
}
#subscription-message {
font-size: 14px;
margin-top: 10px;
}
</style>
<div class="footer-column newsletter" id="newsletter">
<h3>Subscribe to Our Newsletter</h3>
<form id="newsletter-form">
<input type="email" id="email" placeholder="Enter your email" required />
<button type="submit">Subscribe</button>
</form>
<p id="subscription-message"></p>
</div>
</div>
<!-- Footer Bottom Section -->
<div class="footer-bottom">
<p class="copyright-b" style="font-size: medium;">© 2024 BuddyTrail. All rights reserved.</p>
</div>
</footer>
<script>
document.addEventListener("DOMContentLoaded", function () {
const hamburger = document.getElementById("hamburger");
const navList = document.getElementById("nav-links");
const closeBtn = document.getElementById("closeBtn");
hamburger.addEventListener("click", function () {
navList.classList.toggle("active");
});
closeBtn.addEventListener("click", function () {
navList.classList.remove("active");
});
});
document.addEventListener("DOMContentLoaded", function() {
const modeToggle = document.getElementById("modeToggle");
const sunIcon = document.querySelector(".sun-icon");
const moonIcon = document.querySelector(".moon-icon");
// Check saved theme in localStorage and apply it
const currentTheme = localStorage.getItem("theme") || "light";
if (currentTheme === "dark") {
document.body.classList.add("dark-mode");
sunIcon.style.display = "none";
moonIcon.style.display = "inline-block";
} else {
sunIcon.style.display = "inline-block";
moonIcon.style.display = "none";
}
// Toggle between light and dark mode on button click
modeToggle.addEventListener("click", () => {
const isDarkMode = document.body.classList.toggle("dark-mode");
// Apply dark mode styles to relevant sections
const sections = document.querySelectorAll('.about, .core-values, .team');
sections.forEach(section => {
if (isDarkMode) {
section.classList.add('dark-mode');
} else {
section.classList.remove('dark-mode');
}
});
// Update icons and local storage
if (isDarkMode) {
sunIcon.style.display = "none";
moonIcon.style.display = "inline-block";
localStorage.setItem("theme", "dark");
document.getElementById("clipart-img1").style.visibility = "hidden";
document.getElementById("clipart-img2").style.visibility = "hidden";
} else {
sunIcon.style.display = "inline-block";
moonIcon.style.display = "none";
localStorage.setItem("theme", "light");
document.getElementById("clipart-img1").style.visibility = "visible";
document.getElementById("clipart-img2").style.visibility = "visible";
}
});
});
</script>
main
</body>
</html>