forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
2332 lines (2019 loc) · 71.7 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="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;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>
<body class="light-mode">
<!-- Google Translate Button -->
<!-- <div class="translate-container">
<button class="language-toggle" id="languageToggle">🌐</button>
<div id="google_translate_element"></div>
</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>
<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">
<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">
<!-- 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="#benefits" class="navhover">Benefits</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="./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>
</nav>
<!-- Toggle Button -->
<div class="toggle">
<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>
<!-- 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="#1">Terms of Service</a> and <a id="link" href="#1">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");
}
});
// Dark and light mode toggle logic
const modeToggle = document.getElementById('modeToggle');
const sunIcon = document.querySelector('.sun-icon');
const moonIcon = document.querySelector('.moon-icon');
modeToggle.addEventListener('click', function() {
document.body.classList.toggle('dark-mode');
document.body.classList.toggle('light-mode');
const darkelem = document.querySelectorAll('#darkbtn');
const h1dark = document.querySelectorAll('#h1darkbtn');
const cardbtn = document.querySelectorAll('#btn a');
if (document.body.classList.contains('dark-mode')) {
sunIcon.style.display = 'none';
moonIcon.style.display = 'inline-block';
localStorage.setItem('theme', 'dark');
darkelem.forEach((elem) => elem.style.color = 'white');
cardbtn.forEach((elem) => elem.style.color = 'white');
h1dark.forEach((darkbtn) => darkbtn.style.color = '#FFA500');
} else {
sunIcon.style.display = 'inline-block';
moonIcon.style.display = 'none';
localStorage.setItem('theme', 'light');
darkelem.forEach((elem) => elem.style.color = 'gray');
h1dark.forEach((darkbtn) => darkbtn.style.color = '#0057B3');
cardbtn.forEach((elem) => elem.style.color = 'black');
}
});
});
</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>
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" style="height: 384px;">
<!-- Travel Card -->
<div class="card">
<div class="header1">
<!-- Travel Icon -->
<div class="card-icon">
<img src="/icons/route-solid.svg" alt="Travel Icon">
</div>
<!-- Card Title -->
<h4>Travel</h4>
<!-- Card Description -->
<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 Link for Travel -->
<a href="travel.html" class="btn" style="color: white;">Explore more</a>
</div>
</div>
<!-- End of Travel Card -->
<!-- Hotel Card -->
<div class="card">
<div class="header1">
<!-- Hotel Icon -->
<div class="card-icon">
<img src="./icons/bed-solid.svg" alt="Hotel Icon">
</div>
<!-- Card Title -->
<h4>Hotel</h4>
<!-- Card Description -->
<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 Link for Hotels -->
<a href="hotel.html" class="btn" style="color: white;">See Hotels</a>
</div>
</div>
<!-- End of Hotel Card -->
<!-- Fly Card -->
<div class="card">
<div class="header1">
<!-- Fly Icon -->
<div class="card-icon">
<img src="/icons/plane-departure-solid.svg" alt="Fly Icon">
</div>
<!-- Card Title -->
<h4>Fly</h4>
<!-- Card Description -->
<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>
<!-- Button Link for Flights -->
<a href="fly.html" class="btn" style="color: white;">See Flights</a>
</div>
</div>
<!-- End of Fly Card -->
</div>
<!-- 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>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>
<button onclick="window.location.href='book.html'">Book Now</button>
</div></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>
<button onclick="window.location.href='book.html'">Book Now</button>
</div></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>
<button onclick="window.location.href='book.html'">Book Now</button>
</div></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>
<button class="btn-hover" onclick="window.location.href='book.html'">Book Now</button>
</div></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>
<button onclick="window.location.href='book.html'">Book Now</button>
</div></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>
<button onclick="window.location.href='book.html'">Book Now</button>
</div></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>
<button onclick="window.location.href='book.html'">Book Now</button>
</div></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, #d0ea80 0%, #4de1dc 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;
}
.deals-section:hover {
/* Darker aqua gradient on hover */
}
h2 {
font-size:xx-large;
margin-bottom: 1.5rem;
color: #ffffff;
}
p {
color: #333;
font-size: 1.1rem;
margin-bottom: 1.2rem;
}
/* Carousel Styling */
.carousel {
position: relative;
overflow: hidden;
width: 90vw;
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: 280px;
box-sizing: border-box;
padding: 25px;
background: #ffffff; /* Start with a clean white background */
border: 2px solid transparent;
background-color: #82699d;
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: 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: 1rem;
transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease;
}
button:hover {
background-color: #d097e5; /* 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;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
.carousel-button:hover {
background-color: #a4caad;
transform: scale(1.1);
}
/* Animation for Carousel Slide */
@keyframes slideIn {
from {
transform: translateX(100%);
}
to {
transform: translateX(0);
}
}
.carousel-inner {
animation: slideIn 0.5s ease-in-out;
}
/* Deal Title and Price Styling */
h3 {
font-size: 1.8rem;
color: #ffffff;
margin-bottom: 0.8rem;
transition: color 0.4s ease;
}
p {
transition: color 0.4s ease;
}
.discount {
text-decoration: line-through;
color: #6cff43; /* Discount text in a noticeable orange */
}
</style>
<script>
let currentSlide = 0;
function moveSlide(direction) {
const slides = document.querySelectorAll('.deal-item');
const totalSlides = slides.length;
const slidesToShow = 3; // Number of cards to show at once
// Calculate the new slide index
currentSlide = (currentSlide + direction + Math.ceil(totalSlides / slidesToShow)) % Math.ceil(totalSlides / slidesToShow);
// Update the transform to show the correct slides
const carouselInner = document.querySelector('.carousel-inner');
carouselInner.style.transform = `translateX(-${currentSlide * (100 / slidesToShow)}%)`;
// Remove highlight class from all cards
slides.forEach(slide => slide.classList.remove('highlight'));
// Calculate the index of the center card
const centerCardIndex = currentSlide * slidesToShow + Math.floor(slidesToShow / 2);
// Add highlight class to the center card
if (centerCardIndex < totalSlides) {
slides[centerCardIndex].classList.add('highlight');
}
}
// Initial highlight
document.addEventListener('DOMContentLoaded', () => {
const slides = document.querySelectorAll('.deal-item');
slides[Math.floor(slides.length / 2)].classList.add('highlight'); // Highlight the initial center card
});
</script>
<!-- travel itineraries -->
<section id="itineraries" class="itineraries-section">
<h2 id="h1darkbtn">Travel Itineraries</h2>
<p id="darkbtn">
Plan your trips effortlessly with our curated travel itineraries
tailored for different types of adventures. Whether you're planning a
family vacation, a solo adventure, or a romantic getaway, we’ve got
you covered!
</p>
<div class="itinerary-list">
<div class="itinerary">
<div class="header1">
<h3>Family Vacation</h3>
<p>
Explore the best family-friendly destinations with day-by-day
guides that include must-see attractions and activities for all
ages.
</p>
<button>View Itinerary</button>
</div>
</div>
<div class="itinerary">
<div class="header1">
<h3>Solo Adventure</h3>
<p>
Embark on a solo journey with our handpicked itineraries, offering
exciting experiences and peaceful retreats just for you.
</p>
<button>View Itinerary</button>
</div></div>
<div class="itinerary">
<div class="header1">
<h3>Romantic Getaway</h3>
<p>
Plan the perfect romantic escape with itineraries that include
serene locations, romantic dinners, and memorable experiences.
</p>
<button>View Itinerary</button>
</div>
</div>
</div>
</section>
<!-- Our Services Section -->
<section class="services" id="services">
<h2>Our Services</h2>
<p>Travel smarter with our curated services designed to make your trips effortless and enjoyable.</p>
<div class="services-container">
<!-- Service Card: Interactive Travel Map -->
<div class="service-card">
<div class="icon">
<i class="fas fa-map-marker-alt"></i>
</div>
<h3>Travel Map</h3>
<p>Explore popular destinations across India and the world. Click on markers to learn more about each location.
</p>
</div>
<!-- Service Card: Hotel Finder -->
<div class="service-card">
<div class="icon">
<i class="fas fa-hotel"></i>
</div>
<h3>Hotel Finder</h3>
<p>Find the best hotels at affordable rates, handpicked to suit your budget and preferences.</p>
</div>
<!-- Service Card: Flight Booking -->
<div class="service-card">
<div class="icon">
<i class="fas fa-plane"></i>
</div>
<h3>Flight Booking</h3>
<p>Book flights at the best prices, with options tailored to your travel needs.</p>
</div>
<!-- Service Card: Travel Blog -->
<div class="service-card">
<div class="icon">
<i class="fas fa-pen"></i>
</div>
<h3>Travel Blog</h3>
<p>Read tips, guides, and personal stories from seasoned travelers.</p>
</div>
</div>
</section>
<!-- Cab or Auto Booking -->
<section id="cab-booking" class="cab-booking-section light-mode">
<div class="booking-container">
<h2>Book a Cab or Auto</h2>
<form action="/book-cab" method="POST">
<div class="form-group">
<label for="pickup-location" style="font-size: 15px;"><strong>Pickup Location</strong></label>
<input type="text" id="pickup-location" name="pickup-location" placeholder="Enter pickup location" required />
<iframe src="https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d2965.0824050173574!2d-93.63905729999999!3d41.998507000000004!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!2m1!1sWebFilings%2C+University+Boulevard%2C+Ames%2C+IA!5e0!3m2!1sen!2sus!4v1390839289319" width="100%" height="60" frameborder="0" style="border:0"></iframe>
</div>
<div class="form-group">
<label for="drop-location" style="font-size: 15px;"><strong>Drop Location</strong></label>
<input type="text" id="drop-location" name="drop-location" placeholder="Enter drop location" required />
<iframe src="https://www.google.com/maps/embed?pb=!1m16!1m12!1m3!1d2965.0824050173574!2d-93.63905729999999!3d41.998507000000004!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!2m1!1sWebFilings%2C+University+Boulevard%2C+Ames%2C+IA!5e0!3m2!1sen!2sus!4v1390839289319" width="100%" height="60" frameborder="0" style="border:0"></iframe>
</div>
<form
action="/book-cab"
method="POST"
style="
margin-left: 40px;
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
"
>
<div style="display: flex; align-items: center; margin-bottom: 20px;">
<label style="font-size: 1.5em; margin-right: 35px;" for="vehicle-type">
<strong>Vehicle Type</strong>
</label>
<select
id="vehicle-type"
name="vehicle-type"
style="width: 150px; height: 35px; padding: 5px;"
required >
<option value="cab">Cab</option>
<option value="auto">Auto</option>
<option value = "Sharing cab">Sharing Cab</option>
<option value = "Sharing cab">Sharing Auto</option>
<option value = "Sharing cab">Bike</option>
<option value = "Sharing cab">Premium Bike</option>
</select>
</div>
<div class="form-group">
<label for="travel-date" style="font-size: 15px;"><strong>Travel Date</strong></label>
<input type="date" id="travel-date" name="travel-date" required min="" />
<!--Logic To prevent the user from selecting an old date -->
<script>
const today = new Date().toISOString().split('T')[0];
document.getElementById('travel-date').setAttribute('min', today);
</script>
</div>
<div class="form-group">
<label for="travel-time" style="font-size: 15px;"><strong>Travel Time</strong></label>
<input type="time" id="travel-time" name="travel-time" required />
</div>
<button class="book-btn" type="submit" style="padding: 15px; font-size:20px">Book now</button>
</section>