forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
3704 lines (3183 loc) · 110 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
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!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="description" content="BuddyTrail is your ultimate travel companion, helping you plan trips, discover new destinations, and connect with fellow travelers. Explore the world with us!">
<meta name="keywords" content="travel, travel companion, trip planning, travel tips, explore destinations, connect with travelers, travel community">
<meta name="author" content="Priya Ghosal">
<meta property="og:title" content="BuddyTrail - Your Travel Companion">
<meta property="og:description" content="Discover new destinations and connect with fellow travelers with BuddyTrail. Your ultimate travel planning tool!">
<meta property="og:url" content="https://github.com/PriyaGhosal/BuddyTrail">
<meta property="og:type" content="website">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="BuddyTrail - Your Travel Companion">
<meta name="twitter:description" content="Join BuddyTrail to explore the world, plan your trips, and connect with a community of travelers.">
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "BuddyTrail",
"url": "https://github.com/PriyaGhosal/BuddyTrail",
"description": "BuddyTrail is your ultimate travel companion, helping you plan trips, discover new destinations, and connect with fellow travelers.",
"publisher": {
"@type": "Organization",
"name": "BuddyTrail"
}
}
</script>
<meta name="robots" content= "index,follow" />
<link rel="stylesheet" href= "RatingStyle.css">
<link rel="stylesheet" href="button-ui.css">
<link rel="stylesheet" href= "style.css" />
<link rel="stylesheet" href= "./styles/popup.css">
<link rel="stylesheet" href= "cookie-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">
<!-- Link to manifest file for enabling PWA -->
<link rel="manifest" href="/manifest.json">
<title>BuddyTrail</title>
<style>
.header1{
/* background-color:white; */
border-radius:8px;
padding: 10px 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: auto;
}
.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;
}
.cards {
display: flex;
gap: 20px;
}
.card {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.card.inview {
opacity: 1;
transform: translateY(0);
}
.card.inview header1 {
padding: 10px 8px 4px 8px;
}
/* General hidden state and transition for smooth animation */
.itinerary, .service-card {
opacity: 0;
transform: translateY(50px);
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
/* Visible state triggered when the element comes into view */
.itinerary.inview, .service-card.inview {
opacity: 1;
transform: translateY(0);
max-width: 95%;
}
main
/* 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>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
(function() {
const userPrefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
const savedTheme = localStorage.getItem('theme');
if (savedTheme) {
document.body.classList.add(savedTheme === 'dark' ? 'dark-mode' : 'light-mode');
} else if (userPrefersDark) {
document.body.classList.add('dark-mode');
} else {
document.body.classList.add('light-mode');
}
})();
</script>
</head>
<body class="light-mode">
<!-- Preloader -->
<div id="preloader">
<div class="loader-wrapper">
<img src="img/logo.png" alt="Travel Website Logo" id="logo">
<div class="loader-globe"></div>
</div>
<div id="loading-text">Ready to Explore the World...</div>
</div>
<style>
/* Preloader Container */
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: rgba(0, 0, 0, 0.9);
z-index: 1000;
}
/* Wrapper for the logo and loader */
.loader-wrapper {
position: relative;
width: 180px;
height: 180px;
display: flex;
justify-content: center;
align-items: center;
}
/* Logo Styling */
#logo {
width: 140px;
position: relative;
z-index: 10; /* Ensures logo stays above the loader */
animation: pulse 2s infinite ease-in-out;
}
/* Circular Loader surrounding the logo */
.loader-globe {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
border: 8px solid transparent;
border-left-color: white;
border-right-color: white;
animation: spin 2s linear infinite;
}
/* Loading Text */
#loading-text {
margin-top: 20px;
font-size: 20px;
color: white;
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
letter-spacing: 1px;
animation: textGlow 2s ease-in-out infinite;
}
/* Keyframes Animations */
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes textGlow {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
</style>
<script>
// Function to hide preloader and show content once the page has fully loaded
window.addEventListener('load', function() {
const preloader = document.getElementById('preloader');
const content = document.getElementById('content');
// Set a small timeout for better user experience
setTimeout(function() {
// Hide preloader
preloader.style.opacity = '0';
preloader.style.transition = 'opacity 1s ease-in-out';
// Show content after preloader fades out
setTimeout(function() {
preloader.style.display = 'none';
content.style.display = 'block';
content.classList.add('show'); // Trigger fade-in transition
}, 1000); // Match the transition duration
}, 2000); // Adjust to the length of your spinner animation
});
</script>
<!-- Google Translate Button -->
<!-- <div class="translate-container">
<button class="language-toggle" id="languageToggle">🌐</button>
<div id="google_translate_element"></div>
</div> -->
<!-- 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>
// Initialization function
function googleTranslateElementInit() {
new google.translate.TranslateElement(
{
pageLanguage: "en",
includedLanguages:
"en,es,fr,de,it,pt,ja,zh-CN,hi,bn,ml,te,ta,gu,kn,or",
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
},
"google_translate_element"
);
// Toggle visibility
if (
translateElement.style.display === "none" ||
translateElement.style.display === ""
) {
translateElement.style.display = "block";
} else {
translateElement.style.display = "none";
}
}
//Providing scroll animation between different parts of the page using jquery
$(document).ready(function () {
$ ("a[href^='#']").on("click", function (event) {
event.preventDefault();
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
var navbarHeight = $(".main-head").outerHeight();
$("html, body").animate(
{
scrollTop: $(hash).offset().top - navbarHeight,
},
1000
);
event.preventDefault();
}
event.preventDefault();
});
event.preventDefault();
});
</script>
<script src="script.js"></script>
<script src="cursor.js" defer="defer"></script>
<div id="progress-bar"></div>
<!-- funcioning of progress bar -->
<script>
window.addEventListener('scroll', function () {
// Calculate the scroll progress
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
const scrollHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;
const scrollPercent = (scrollTop / scrollHeight) * 100;
// Update the width of the progress bar
document.getElementById('progress-bar').style.width = scrollPercent + '%';
});
</script>
<main>
<section class="hero" id="home">
<div class="header2"><h1>Travel Beyond Limits</h1></div>
<h3>
Connect, Explore, and Discover Together. <br />
BuddyTrail: Your Journey Begins with the Perfect Travel Companion.
</h3>
<div class="video-background">
<video autoplay muted loop>
<!-- Replace this video source with your live waterfall video or another hosted video -->
<source src="waterfall.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="overlay"></div>
</div>
<a href="book.html" id="btn">Book now</a>
</section>
<section id="locations">
<header class="locations-head">
</script>
<script src="script.js"></script>
<header class="main-head" style="background-color: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #000000; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);">
<nav >
<div class="logo">
<img src="img/logo.png" id="logo-web">
<h1 id="logo"><a href="#home">BuddyTrail</a></h1>
</div>
<!-- Hamburger button for mobile -->
<button class="hamburger" id="hamburger">☰</button>
<ul id="nav-list">
<!-- Close button for dropdown -->
<span class="dropdown-close-btn" id="closeBtn">×</span>
<li><a href="#home" class="navhover">Home</a></li>
<li><a href="team.html" class="navhover">Team</a></li>
<li><a href="#deals" class="navhover">Exclusive Deals</a></li>
<li><a href="blog.html" class="navhover">Blogs</a></li>
<li><a href="about.html" class="navhover">About</a></li>
<li><a href="#itineraries" class="navhover">Travel Itineraries</a></li>
<li><a href="F&Q.html" class="navhover">FAQ</a></li>
<li><a href="./contact.html" class="navhover">Contact</a></li>
<li><a href="#reviews" class="navhover">Reviews</a></li>
<li><a href="auth.html" class="navhover">Sign In</a></li>
</ul>
<!-- 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>
</nav>
</header>
<!-- Hamburger button for mobile -->
<button class="hamburger" id="hamburger">☰</button>
</header>
<!-- Pop up HTML Starts Here -->
<!-- Pop-up for BuddyTrail -->
<div id="popup" class="popup">
<div id="popup-content">
<div class="popup-left">
<img if="popupimage" src="./img/popup1.jpg" alt="Travel Image">
</div>
<div class="popup-right">
<h1>Ready for Your Next Adventure?</h1>
<p class="h2">Join <strong>BuddyTrail</strong> and Plan Your Dream Vacation Today!</p>
<p>Sign up to receive <strong> 20% discount </strong> on your first booking!</p>
<form id="emailForm" >
<input type="email" id="email" placeholder="Enter your email" required>
<button type="submit" id="signup-btn">Sign Up</button>
</form>
<a href="#" id="no-thanks">No thanks</a>
<p id="terms">By signing up, you agree to our <a id="link" href="terms_of_service.html" style="text-decoration: underline;">Terms of Service</a> and <a id="link" href="privacypolicy.html" style="text-decoration: underline;">Privacy Policy</a></p>
</div>
</div>
</div>
<!-- Pop up HTML ends Here -->
<!-- JS to handle hamburger and close button -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const hamburger = document.getElementById("hamburger");
const navList = document.getElementById("nav-list");
const closeBtn = document.getElementById("closeBtn");
const mainHead = document.querySelector('.main-head'); // Selecting the header
// Hamburger menu functionality
hamburger.addEventListener("click", function () {
navList.classList.toggle("active");
});
closeBtn.addEventListener("click", function () {
navList.classList.remove("active");
});
// Scroll event to handle header transparency
window.addEventListener("scroll", function () {
if (window.scrollY > 50) { // If scrolled more than 50px
mainHead.classList.add("shadow");
} else {
mainHead.classList.remove("shadow");
}
});
});
</script>
<script src="./script/popup.js"></script>
<div id="progress-bar"></div>
<!-- funcioning of progress bar -->
<script>
window.addEventListener("scroll", function () {
// Calculate the scroll progress
const scrollTop =
document.documentElement.scrollTop || document.body.scrollTop;
const scrollHeight =
document.documentElement.scrollHeight -
document.documentElement.clientHeight;
const scrollPercent = (scrollTop / scrollHeight) * 100;
// Update the width of the progress bar
document.getElementById("progress-bar").style.width =
scrollPercent + "%";
});
</script>
<main>
<h3 style="
display: flex;
justify-content: center;
align-items: center;
text-align: center;
color: white;
padding-top: 1rem;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
background-image: linear-gradient(to right, #6a11cb, #2575fc);
">
We handle everything, from finding the ideal travel buddy to
selecting your perfect hotel, flight, and destination.
</h3>
</header>
</section>
<section id="benefits">
<header class="benefits-head">
<h2>The Perfect travel</h2>
<h3>
we cover everything from picking the perfect hotel, <br />to flight
and destination
</h3>
</header>
<!-- Start of Cards Container -->
<div class="cards" >
<!-- Travel Card -->
<div class="card">
<div class="header1">
<div class="card-icon">
<img src="/icons/route-solid.svg" alt="Travel Icon">
</div>
<h4>Travel</h4>
<p>
Discover budget-friendly getaways for families and friends! From serene
mountains to sunny beaches, find your next adventure without breaking the
bank. Start exploring now!
</p>
<a href="travel.html" class="btn" style="color: white;">Explore more</a>
</div>
</div>
<!-- Hotel Card -->
<div class="card">
<div class="header1">
<div class="card-icon">
<img src="./icons/bed-solid.svg" alt="Hotel Icon">
</div>
<h4>Hotel</h4>
<p>
We've handpicked top-rated options that offer exceptional value. Book your
perfect stay today and enjoy premium accommodations without the premium
price tag!
</p>
<a href="hotel.html" class="btn" style="color: white;">See Hotels</a>
</div>
</div>
<!-- Fly Card -->
<div class="card">
<div class="header1">
<div class="card-icon">
<img src="/icons/plane-departure-solid.svg" alt="Fly Icon">
</div>
<h4>Fly</h4>
<p>
Fly to your dream destination without breaking the bank! We offer the best
flight deals, combining comfort and affordability for perfect journey.
Book now and take off for less!
</p>
<a href="fly.html" class="btn" style="color: white;">See Flights</a>
</div>
</div>
</div>
<style>
.dark-mode .card{
background: #0e0e0e;
}
.dark-mode .card h4{
color: #f39c12;
}
.dark-mode .card p{
color: #fff;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
const cards = document.querySelectorAll(".card");
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add("inview");
} else {
entry.target.classList.remove("inview"); // Remove the class when it goes out of view
}
});
}, { threshold: 0.1 }); // Trigger when 10% of the card is visible
cards.forEach(card => {
observer.observe(card);
});
});
</script>
<!-- End of Cards Container -->
<!-- CSS for the buttons (Move this to your CSS file) -->
<!-- <div class="cards" style="height: 384px;">
<div class="card">
<div class="header1">
<div class="card-icon">
<img src="/icons/route-solid.svg" />
</div>
<h4>Travel</h4>
<p>
Discover budget-friendly getaways for families and friends! From
serene mountains to sunny beaches, find your next adventure
without breaking the bank. Start exploring now!
</p>
<button id="btn"><a href="travel.html "> Explore more</a></button></div>
</div>
<div class="card">
<div class="header1">
<div class="card-icon">
<img src="./icons/bed-solid.svg" />
</div >
<h4 >Hotel</h4>
<p>
We've handpicked top-rated options that offer exceptional value.
Book your perfect stay today and enjoy premium accommodations
without the premium price tag!
</p>
<button id="btn" style="margin-bottom: 1px;"><a href="hotel.html ">See Hotels</a></button></div>
</div>
<div class="card">
<div class="header1">
<div class="card-icon">
<img src="/icons/plane-departure-solid.svg" />
</div>
<h4>Fly</h4>
<p>
Fly to your dream destination without breaking the bank! We offers
the best flight deals, combining comfort and affordability for
perfect journey. Book now and take off for less!
</p>
<button id="btn"><a href="fly.html ">See Flights</a></button></div>
</div>
</div> -->
</section>
<!-- deals -->
<section id="deals" class="deals-section">
<h2 style="color: #000000;">Exclusive Deals and Offers</h2>
<p>Explore our best deals on flights, hotels, and travel packages. Save big on your next adventure!</p>
<div class="carousel">
<div class="carousel-inner">
<!-- Deal 1: Flight Offer -->
<div class="deal-item">
<div class="header1">
<h3>Flight to Dubai</h3>
<p>Save 20% on round-trip flights to Dubai. Limited time offer!</p>
<p><strong>Price:</strong> ₹20,000 <span class="discount">₹25,000 </span></p>
</div>
<button class="btn-book-now" onclick="window.location.href='book.html'">Book Now</button>
</div>
<!-- Deal 2: Hotel Offer -->
<div class="deal-item" >
<div class="header1">
<h3>Luxury Stay in Goa</h3>
<p>Get 30% off on a 5-star hotel stay in Goa. Enjoy the best of luxury at an affordable price!</p>
<p><strong>Price:</strong> ₹10,500 <span class="discount"> ₹15,000</span> per night</p>
</div>
<button class="btn-book-now" onclick="window.location.href='book.html'">Book Now</button>
</div>
<!-- Deal 3: Travel Package -->
<div class="deal-item">
<div class="header1">
<h3>Kerala Backwaters Package</h3>
<p>Experience the serene beauty of Kerala's backwaters with a 4-day, 3-night package. All-inclusive deal!</p>
<p><strong>Price:</strong> ₹40,000 <span class="discount">₹50,000</span></p>
</div>
<button class="btn-book-now" onclick="window.location.href='book.html'">Book Now</button>
</div>
<!-- Deal 4: International Trip -->
<div class="deal-item">
<div class="header1">
<h3>Paris Romantic Getaway</h3>
<p>Enjoy a romantic trip to Paris with your loved one. Special package for couples!</p>
<p><strong>Price:</strong> ₹1,20,000 <span class="discount"> ₹1,50,000</span> per couple</p>
</div>
<button class="btn-book-now" onclick="window.location.href='book.html'">Book Now</button>
</div>
<!-- Deal 5: Adventure Trip -->
<div class="deal-item">
<div class="header1">
<h3>Adventure in Bali</h3>
<p>Book an adventure trip to Bali with activities like snorkeling, trekking, and more. Discount available for groups!</p>
<p><strong>Price:</strong> ₹48,000 <span class="discount">₹60,000</span> per person</p>
</div>
<button class="btn-book-now" onclick="window.location.href='book.html'">Book Now</button>
</div>
<!-- Deal 6: Ski Trip in Switzerland -->
<div class="deal-item">
<div class="header1">
<h3>Ski Trip in Switzerland</h3>
<p>Hit the slopes with an amazing package for skiing in the Swiss Alps. All equipment included!</p>
<p><strong>Price:</strong> ₹75,000 <span class="discount">₹90,000</span> per person</p>
</div>
<button class="btn-book-now" onclick="window.location.href='book.html'">Book Now</button></div>
<!-- Deal 7: Wildlife Safari in Kenya -->
<div class="deal-item">
<div class="header1">
<h3>Wildlife Safari in Kenya</h3>
<p>Experience the thrill of a wildlife safari in Kenya. See the Big Five!</p>
<p><strong>Price:</strong> ₹1,00,000 <span class="discount">₹1,20,000</span> per person</p>
</div>
<button class="btn-book-now" onclick="window.location.href='book.html'">Book Now</button></div>
</div>
<button class="carousel-button prev" onclick="moveSlide(-1)">❮</button>
<button class="carousel-button next" onclick="moveSlide(1)">❯</button>
</div>
</section>
<style>
/* Updated CSS with Nature-Inspired Colors and Enhanced Hover Effects */
.deals-section {
text-align: center;
padding: 3rem 20px;
background: linear-gradient(135deg, #a4cdf9 0%, #007bff 100%); /* Light aqua gradient background */
width: 90vw;
margin: 0 auto;
color: #2e573e;
font-family: 'Roboto', sans-serif;
transition: background-color 0.3s ease-in-out;
}
h2 {
font-size:xx-large;
margin-bottom: 1.5rem;
}
p {
color: #333;
font-size: 1.1rem;
margin-bottom: 1.2rem;
}
/* Carousel Styling */
.carousel {
position: relative;
overflow: hidden;
width: 940px;
max-width: 1000px;
margin: 0 auto;
height: 450px;
display: flex;
align-items: center;
}
.carousel-inner {
display: flex;
transition: transform 0.5s ease;
gap: 20px;
}
/* Deal Item Styling */
.deal-item {
min-width: 300px;
flex: 0 0 300px;
box-sizing: border-box;
padding: 25px;
background: #ffffff; /* Start with a clean white background */
border: 2px solid transparent;
background-color: #d3d3d3;
border-radius: 12px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
transform: scale(1);
transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease, background-color 0.4s ease;
cursor: pointer;
}
.deal-item:hover {
transform: scale(1.1); /* Enlarge on hover */
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
background: #f9f9f9
/* background: linear-gradient(135deg, #dd36cf 0%, #fdf4fd 100%); /* Nature-inspired gradient (green tones) */
/* border: 2px solid #662f8b; /* Appear border on hover */
}
.deal-item:hover .discount {
color: #ff7043; /* Highlight discount with orange when hovered */
}
/* Button Styles */
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;
}
/* Carousel Button Styles */
.carousel-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
border: none;
padding: 15px;
border-radius: 50%;
font-size: 2rem;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}