forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
696 lines (649 loc) · 22.9 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
<!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="style.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"
/>
<title>BuddyTrail</title>
<style>
.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;
bottom: 100%; /* Position above the button */
right: 50%;
transform: translateX(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 */
}
</style>
</head>
<body class="light-mode">
<button id="scrollTopBtn" class="scroll-top-btn">
<i class="fa-solid fa-arrow-up"></i>
</button>
<!-- 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 button event
document
.getElementById("languageToggle")
.addEventListener("click", function () {
var translateElement = document.getElementById(
"google_translate_element"
);
// Toggle visibility
if (
translateElement.style.display === "none" ||
translateElement.style.display === ""
) {
translateElement.style.display = "block";
} else {
translateElement.style.display = "none";
}
});
</script>
<script src="script.js"></script>
<header class="main-head">
<nav>
<h1 id="logo">BuddyTrail</h1>
<ul >
<li><a href="#home" class='navhover '>Home</a></li>
<li><a href="#locations" class='navhover '>Location</a></li>
<li><a href="#itineraries " class='navhover'>Travel Itineraries</a></li>
<li><a href="#reviews" class='navhover'>Reviews</a></li>
<li><a href="#benefits" class='navhover'>Benefits</a></li>
<li><a href="#contact" class='navhover'>Contact</a></li>
<li><a href="signUp.html" class='navhover'>Sign In</a></li>
</ul>
<!-- Toggle Button -->
<button class="mode-toggle" id="modeToggle">
<span class="sun-icon glow">☀️</span>
</button>
</nav>
</header>
<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">
<h2>Travel Beyond Limits</h2>
<h3>
Connect, Explore, and Discover Together. <br />
BuddyTrail: Your Journey Begins with the Perfect Travel Companion.
</h3>
<button id="btn"><a href="book.html ">Book now</a></button>
</section>
<section id="locations">
<header class="locations-head">
<h2>The Perfect Travel Experience!</h2>
<h3>
We handle everything, from finding the ideal travel buddy to
selecting your perfect hotel, flight, and destination.
</h3>
<img src="/img/cloud.png" class="moving-cloud-1 cloud" />
<img src="/img/cloud.png" class="moving-cloud-2 cloud" />
</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>
<div class="cards">
<div class="card">
<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>
</div>
<div class="card">
<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>
</div>
<div class="card">
<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>
</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="deals-list">
<!-- Deal 1: Flight Offer -->
<div class="deal-item">
<h3>Flight to Dubai</h3>
<p>Save 20% on round-trip flights to Dubai. Limited time offer!</p>
<p>
<strong>Price:</strong> ₹25,000
<span class="discount">₹20,000</span>
</p>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>
<!-- Deal 2: Hotel Offer -->
<div class="deal-item">
<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> ₹15,000
<span class="discount">₹10,500</span> per night
</p>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>
<!-- Deal 3: Travel Package -->
<div class="deal-item">
<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> ₹50,000
<span class="discount">₹40,000</span>
</p>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>
<!-- Deal 4: International Trip -->
<div class="deal-item">
<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,50,000
<span class="discount">₹1,20,000</span> per couple
</p>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>
<!-- Deal 5: Adventure Trip -->
<div class="deal-item">
<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> ₹60,000
<span class="discount">₹48,000</span> per person
</p>
<button onclick="window.location.href='#book-now'">Book Now</button>
</div>
</div>
</section>
<!-- travel itineraries -->
<section id="itineraries" class="itineraries-section">
<h2>Travel Itineraries</h2>
<p>
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">
<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 class="itinerary">
<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 class="itinerary">
<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>
</section>
<!-- Cab or Auto Booking -->
<section
id="cab-booking"
class="cab-booking-section"
style="
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 10px;
"
>
<h2
style="
font-size: 3em;
font-weight: 700;
margin-left: 40px;
margin-top: 10px;
"
>
Book a Cab or Auto
</h2>
<p style="margin-left: 40px; font-size: 1.5em; margin-bottom: 10px">
Book a cab or auto with ease
</p>
<form
action="/book-cab"
method="POST"
style="
margin-left: 40px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
"
>
<div>
<label style="font-size: 1.5em" for="pickup-location"
>Pickup Location:</label
>
<input
style="height: 29px; width: 200px"
type="text"
id="pickup-location"
name="pickup-location"
placeholder="Enter pickup location"
required
/><br /><br />
</div>
<div>
<label style="font-size: 1.5em" for="drop-location"
>Drop Location:</label
>
<input
style="height: 29px; width: 200px"
type="text"
id="drop-location"
name="drop-location"
placeholder="Enter drop location"
required
/><br /><br />
</div>
<div style="display: flex">
<label style="font-size: 1.5em" for="vehicle-type"
>Vehicle Type:</label
>
<select id="vehicle-type" name="vehicle-type" required>
<option value="cab">Cab</option>
<option value="auto">Auto</option></select
><br /><br />
</div>
<div>
<label style="font-size: 1.5em" for="travel-date"
>Travel Date:</label
>
<input
style="height: 29px; width: 200px"
type="date"
id="travel-date"
name="travel-date"
required
/><br /><br />
</div>
<div>
<label style="font-size: 1.5em" for="travel-time"
>Travel Time:</label
>
<input
style="height: 29px; width: 200px"
type="time"
id="travel-time"
name="travel-time"
required
/><br /><br />
</div>
<button
style="
background-color: #007bff;
color: white;
border: none;
width: 200px;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
cursor: pointer;
align-self: center;
padding: 10px;
margin-bottom: 20px;
"
type="submit"
>
Book now
</button>
</form>
</section>
<!-- recommendations -->
<section id="recommendations" class="recommendations-section">
<h2>Personalized Recommendations</h2>
<p>
We’ve picked these destinations, hotels, and activities just for you,
based on your preferences.
</p>
<div class="recommendation-list">
<!-- Example Recommendation -->
<div class="recommendation-item">
<h3>Beach Resort in Goa</h3>
<p>
Based on your love for sunny destinations, we recommend this
beachfront resort in Goa for a perfect getaway.
</p>
<button onclick="window.location.href='#book-now'">
Explore More
</button>
</div>
<div class="recommendation-item">
<h3>Cultural Tour in Rajasthan</h3>
<p>
Explore the rich cultural heritage of Rajasthan. This tour is
highly recommended based on your interest in historical places.
</p>
<button onclick="window.location.href='#book-now'">
Explore More
</button>
</div>
<div class="recommendation-item">
<h3>Adventure Trek in Himachal</h3>
<p>
For the adventure lover in you, we recommend a thrilling trek in
the mountains of Himachal Pradesh.
</p>
<button onclick="window.location.href='#book-now'">
Explore More
</button>
</div>
</div>
</section>
<!-- Map Section -->
<section class="map-section">
<h2>Explore Popular Destinations</h2>
<p>Click on the markers to learn more about each destination.</p>
<div id="map"></div>
</section>
<!-- Google Maps JavaScript API -->
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCYcdQdpiSF7BjZl6JF_pyucrblrUCZMxc&callback=initMap"
async
defer
></script>
<section id="contact">
<div class="form-wrapper">
<header class="form-head">
<h2>Contact US</h2>
</header>
<form action="https://formspree.io/f/mqkvkayy" method="POST">
<div class="name-form">
<label for="name">Name : </label>
<input id="name" type="text" name="name" required />
</div>
<div class="email-form">
<label for="email">Email :</label>
<input id="email" type="email" name="email" required />
</div>
<button type="submit">Submit</button>
</form>
</div>
</section>
</main>
<!-- ratings by user -->
<section id="reviews" class="reviews-section">
<h2>User Reviews and Ratings</h2>
<p>
Read what others have to say about their experiences with various
destinations, hotels, flights, and activities. Share your own reviews
and help fellow travelers make informed decisions.
</p>
<div class="review-form" style="margin-top: 20px">
<h1 style="margin-bottom: 10px">Leave a Review</h1>
<form>
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" required />
<label for="destination">Destination/Service:</label>
<input type="text" id="destination" name="destination" required />
<label for="rating">Rating:</label>
<select id="rating" name="rating">
<option value="5">⭐⭐⭐⭐⭐</option>
<option value="4">⭐⭐⭐⭐</option>
<option value="3">⭐⭐⭐</option>
<option value="2">⭐⭐</option>
<option value="1">⭐</option>
</select>
<label for="review">Your Review:</label>
<textarea id="review" name="review" rows="4" required></textarea>
<label for="complaint">Complaint (if any):</label>
<textarea
id="complaint"
name="complaint"
rows="3"
placeholder="Describe any issue with the staff here. Please explain every single detail ex:location,name of the person"
></textarea>
<button type="submit">Submit Review</button>
</form>
</div>
<div class="reviews-list">
<h3>What Others Are Saying</h3>
<!-- Example Review -->
<div class="review">
<h4>John Doe - Paris</h4>
<p>⭐⭐⭐⭐⭐</p>
<p>
Amazing experience in Paris! The Eiffel Tower was breathtaking, and
the food was incredible. Highly recommend!
</p>
</div>
<div class="review">
<h4>Rahul Mehta - Dubai</h4>
<p>⭐⭐⭐⭐</p>
<p>
Dubai is a must-visit destination! The Burj Khalifa and desert
safari were highlights of the trip. Just a bit expensive.
</p>
</div>
<div class="review">
<h4>Emily Johnson - London</h4>
<p>⭐⭐⭐⭐⭐</p>
<p>
London's history and architecture are stunning. The Tower of London
and Buckingham Palace were fascinating to explore.
</p>
</div>
<div class="review">
<h4>Michael Lee - Goa</h4>
<p>⭐⭐⭐⭐</p>
<p>
Goa's beaches are beautiful, and the nightlife is vibrant. Great
place for a fun and laid-back vacation.
</p>
</div>
<div class="review">
<h4>Aditi Patel - New York</h4>
<p>⭐⭐⭐⭐⭐</p>
<p>
New York City is amazing! Central Park, Times Square, and the Statue
of Liberty were all incredible. Highly recommend!
</p>
</div>
</div>
</section>
<a href="chatbot.html">
<div class="fixed bottom-0 right-2 chatbot-container">
<button class="chatbot-button group">
<img class="h-20" src="chatbot.gif" alt="chatbot">
<span class="tooltip-text">
Welcome to Buddytrail! <br>
How can I help You? ^_^
</span>
</button>
</div>
</a>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<footer>
<div class="footer-wrapper">
<h5>BuddyTrail ©</h5>
<ul>
<li>
<a href="#" class="twitter" id="social-icons"
><img src="icons/twitter.svg"
/></a>
</li>
<li>
<a href="#" class="instagram" id="social-icons"
><img src="icons/instagram.svg"
/></a>
</li>
<li>
<a href="#" class="youtube" id="social-icons"
><img src="icons/youtube.svg"
/></a>
</li>
</ul>
</div>
</footer>
<!-- Deals and Offers Popup -->
<div id="dealsPopup" class="popup">
<div class="popup-content">
<span class="close-btn" id="closePopup">×</span>
<h2>Exclusive Deals and Offers!</h2>
<p>
Get the best deals on flights, hotels, and travel packages. Don't miss
out on our limited-time discounts. Plan your trip now!
</p>
<button
onclick="document.getElementById('dealsPopup').style.display = 'none'; window.location.href='#deals'"
>
Check Out Deals
</button>
</div>
</div>
<script>
// script.js
window.onscroll = function () {
toggleScrollTopButton();
};
const scrollTopBtn = document.getElementById("scrollTopBtn");
function toggleScrollTopButton() {
if (
document.body.scrollTop > 100 ||
document.documentElement.scrollTop > 100
) {
scrollTopBtn.style.display = "block"; // Show button after scrolling down
} else {
scrollTopBtn.style.display = "none"; // Hide button when at the top
}
}
scrollTopBtn.onclick = function () {
window.scrollTo({ top: 0, behavior: "smooth" }); // Smooth scroll to top
};
</script>
</body>
</html>