-
Notifications
You must be signed in to change notification settings - Fork 349
/
book.html
624 lines (550 loc) · 24 KB
/
book.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
<!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="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>Book Now - BuddyTrail</title>
<style>
.error {
color: red;
font-size: 1.2rem;
margin-top: 5px;
}
/* General navigation styles */
nav {
display: flex;
justify-content: space-evenly;
/* Aligns nav items evenly */
}
nav ul {
list-style-type: none;
/* Removes bullet points */
padding: 0;
/* Removes padding */
}
/* Navigation link styles */
nav ul li {
display: inline;
/* Displays list items in a row */
}
nav ul li a {
font-size: 2.5rem;
/* Font size for nav links */
color: #fffdfd;
/* Default color */
transition: color 0.3s ease;
/* Smooth color transition */
}
/* Hover and active link styles */
nav ul li a:hover,
nav ul li a:active {
color: #ff5733;
/* Color on hover or active state */
}
/* Optional: Style for icons specifically */
.social-icons a {
color: #ffffff;
/* Default color for social icons */
transition: color 0.3s ease;
/* Smooth color transition */
}
.popular-destination {
color: initial;
/* or any default color */
}
/* Dark mode styles */
.dark-mode .popular-destinations {
color: #ffa500;
}
/* Ensure the welcome text remains unchanged */
.dark-mode .welcome-text {
color: initial !important;
/* or any default color */
}
.social-icons a:hover,
.social-icons a:active {
color: #ff5733;
/* Color for social icons on hover or active state */
}
/* Additional styles */
.nav-elem {
font-size: 1.8rem;
/* Font size for additional navigation elements */
width: 80vw;
/* Full viewport width */
margin-left: 20px;
/* Left margin */
display: flex;
/* Flexbox display */
justify-content: space-evenly;
align-items: center;
padding: 20px;
/* Even spacing between items */
}
.logo {
display: flex;
flex-direction: row;
align-items: center;
}
.locations_ h2 {
font-size: 4rem;
/* Font size for location headings */
color: black;
/* Color for location headings */
}
.benefits {
color: #FFFFFF;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
/* Color for benefits text */
}
.benefits h2 {
color: #FFFFFF;
font-size: 4rem;
/* Font size for benefits headings */
margin-bottom: 50px;
/* Margin below benefits headings */
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
/* Text shadow for benefits headings */
}
footer {
padding-top: 50px;
/* Top padding for footer */
padding-bottom: 20px;
/* Bottom padding for footer */
}
.footer-bottom {
margin-top: 20px;
}
</style>
main
<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>
</head>
<body>
main
<header class="main-head">
<nav>
<div class="logo">
<img src="img/logo.png" id="logo-web" />
<h1 id="logo"><a href="index.html">BuddyTrail</a></h1>
</div>
<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="./blog.html" class="navhover">Blog</a></li>
<li><a href="./F&Q.html" class="navhover">F&Q</a></li>
<li><a href="#locations_" class="navhover">Location</a></li>
<li><a href="#benefits" class="navhover">Benefits</a></li>
<li><a href="contact.html" class="navhover">Contact</a></li>
<li><a href="#booking-form" class="navhover">Book Now</a></li>
<li><a href="./auth.html" class="navhover">SignIn</a></li>
<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>
</ul>
</nav>
<!-- Hamburger button for mobile -->
<button class="hamburger" id="hamburger">☰</button>
</header>
<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>
<!-- Header ends -->
<main>
<section class="hero">
<h2 class="welcome-text">Welcome to BuddyTrail</h2>
</section>
<section id="locations_" class="locations_">
<h2 class="popular-destinations">Popular Destinations</h2>
<div class="location-cards">
<div class="location-card" style="
background-image: url('https://images.unsplash.com/photo-1489516408517-0c0a15662682?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='dubai.html'">
<h3>Dubai</h3>
<ul>
<li>Flight To Dubai</li>
<li>
Save 20% on round-trip flights to Dubai. Limited time offer!
</li>
</ul>
<p><strong>Price:</strong> ₹20,000 <del>₹25,000</del></p>
</div>
<div class="location-card" style="
background-image: url('https://plus.unsplash.com/premium_photo-1697729701846-e34563b06d47?q=80&w=1974&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='goa-resort.html'">
<h3>Goa</h3>
<ul>
<li>Luxury Stay in Goa</li>
<li>
Get 30% off on a 5-star hotel stay in Goa. Enjoy the best of
luxury at an affordable price!
</li>
</ul>
<p><strong>Price:</strong> ₹10,500 <del>₹15,000</del> </p>
</div>
<div class="location-card" style="
background-image: url('https://images.unsplash.com/photo-1679022579345-72dc76a518f6?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='kerala.html'">
<h3>Kerala</h3>
<ul>
<li>Kerala Backwaters Package</li>
<li>
Experience the serene beauty of Kerala's backwaters with a
4-day, 3-night package. All-inclusive deal!
</li>
</ul>
<p><strong>Price:</strong> ₹10,500 <del>₹15,000</del> </p>
</div>
<div class="location-card" style="
background-image: url('https://images.unsplash.com/photo-1502602898657-3e91760cbb34?q=80&w=2073&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='paris.html'">
<h3>Paris</h3>
<ul>
<li>Paris Romantic Getaway</li>
<li>
Enjoy a romantic trip to Paris with your loved one. Special
package for couples!
</li>
</ul>
<p><strong>Price:</strong> ₹10,500 <del>₹15,000</del> </p>
</div>
<div class="location-card" style="
background-image: url('https://images.unsplash.com/photo-1555400038-63f5ba517a47?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='bali.html'">
<h3>Bali</h3>
<ul>
<li>Adventure in Bali</li>
<li>
Get 30% off on a 5-star hotel stay in Goa. Enjoy the best of
luxury at an affordable price!
</li>
</ul>
<p><strong>Price:</strong> ₹10,500 <del>₹15,000</del> </p>
</div>
<div class="location-card" style="
background-image: url('https://images.unsplash.com/photo-1547131303-543b40443e96?q=80&w=1797&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='switzerland.html'">
<h3>Switzerland</h3>
<ul>
<li>Adventure Switzerland</li>
<li>
Get 30% off on a 5-star hotel stay in Switzerland. Enjoy the
best of luxury at an affordable price!
</li>
</ul>
<p><strong>Price:</strong> ₹10,500 <del>₹15,000</del> </p>
</div>
<div class="location-card" style="
background-image: url('https://images.unsplash.com/photo-1520175480921-4edfa2983e0f?q=80&w=2067&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='italy.html'">
<h3>Italy</h3>
<ul>
<li>Italy Most beautiful countries in the world</li>
<li>
Enjoy a romantic trip to Italy with your loved one. Special
package for couples!
</li>
</ul>
<p><strong>Price:</strong> ₹10,500 <del>₹15,000</del> </p>
</div>
<div class="location-card" style="
background-image: url('https://plus.unsplash.com/premium_photo-1661963145672-a2bd28eba0fb?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
" onclick="location.href='greece.html'">
<h3>Greece</h3>
<ul>
<li>Greece has the longest coastline in Europe</li>
<li>
Get 30% off on a 5-star hotel stay in Switzerland. Enjoy the
best of luxury at an affordable price!
</li>
</ul>
<p><strong>Price:</strong> ₹10,500 <del>₹15,000</del> </p>
</div>
</div>
</section>
<section id="benefits" class="benefits">
<h2>Why Travel with BuddyTrail?</h2>
<ul class="benifits-list">
<li>Exclusive discounts and travel packages</li>
<li>24/7 customer support for a hassle-free experience</li>
<li>Handpicked destinations and personalized itineraries</li>
<li>Safe and secure travel arrangements</li>
</ul>
<div class="call-to-action">
<h2>Ready to embark on your next adventure?</h2>
<h2>Let BuddyTrail take you there!</h2>
</div>
</section>
<section id="booking-form" class="booking-form">
<h2>Book Your Trip</h2>
<form id="bookingForm" action="#" method="post" onsubmit="return validateForm()" novalidate>
<div class="form-group">
<label for="place">Place of Visit:</label>
<input type="text" id="place" name="place" placeholder="Enter your destination" required />
<div class="error" id="placeError"></div>
</div>
<div class="form-group">
<label for="dates">Dates of Staying:</label>
<input type="date" id="dates" name="dates" required />
<div class="error" id="datesError"></div>
</div>
<script>
// Function to set the minimum date to today
function setMinDate() {
const today = new Date();
const dd = String(today.getDate()).padStart(2, '0');
const mm = String(today.getMonth() + 1).padStart(2, '0'); // January is 0!
const yyyy = today.getFullYear();
// Format the date as YYYY-MM-DD
const minDate = yyyy + '-' + mm + '-' + dd;
document.getElementById("dates").setAttribute("min", minDate);
}
// Call the function when the document is loaded
document.addEventListener("DOMContentLoaded", setMinDate);
// Optional: Validate the date on form submission
document.querySelector("form").addEventListener("submit", function(event) {
const selectedDate = new Date(document.getElementById("dates").value);
const today = new Date();
today.setHours(0, 0, 0, 0); // Set time to midnight for comparison
if (selectedDate < today) {
event.preventDefault(); // Prevent form submission
document.getElementById("datesError").innerText = "Please select a date that is today or in the future.";
} else {
document.getElementById("datesError").innerText = ""; // Clear any previous error message
}
});
</script>
<div class="form-group">
<label for="transport">Mode of Transport:</label>
<select id="transport" name="transport" required>
<option value="" disabled selected>
Select mode of transport
</option>
<option value="air">Air</option>
<option value="train">Train</option>
<option value="bus">Bus</option>
<option value="car">Car</option>
</select>
<div class="error" id="transportError"></div>
</div>
<button type="submit" class="btn">Book Now</button>
</form>
</section>
</main>
<footer>
<div class="footer-container">
<div class="footer-column">
<h3>About Us</h3>
<p>
We are a team of passionate developers creating amazing web
experiences.
</p>
</div>
<div class="footer-column">
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="service.html">Services</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="./book.html">Book</a></li>
<li><a href="./F&Q.html">F&Q</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Contact Us</h3>
<p>Email: [email protected]</p>
<p>Phone: +123 456 7890</p>
</div>
<div class="footer-column">
<h3>Follow Us</h3>
<div class="social-icons">
<a href="https://discord.com/invite/priyaghosal"><i class="fa-brands fa-discord"></i></a>
<a href="https://x.com/https://twitter.com/PriyaGhosa39968"><i
class="fa-brands fa-x-twitter"></i></a>
<a href="https://github.com/PriyaGhosal/BuddyTrail"><i class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/priya-ghosal-785771286/"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Buddy Trail. All rights reserved.</p>
</div>
</footer>
<script>
function validateForm() {
let valid = true;
// Clear previous error messages
document.getElementById("placeError").innerText = "";
document.getElementById("datesError").innerText = "";
document.getElementById("transportError").innerText = "";
// Validate Place of Visit
const place = document.getElementById("place").value.trim();
if (place === "") {
document.getElementById("placeError").innerText =
"Please enter a place of visit.";
valid = false;
}
// Validate Dates of Staying
const dates = document.getElementById("dates").value;
if (dates === "") {
document.getElementById("datesError").innerText =
"Please select your dates of stay.";
valid = false;
}
// Validate Mode of Transport
const transport = document.getElementById("transport").value;
if (transport === "") {
document.getElementById("transportError").innerText =
"Please select a mode of transport.";
valid = false;
}
return valid;
}
</script>
<div class="gtranslate_wrapper"></div>
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper"
}
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
</body>
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>
</body>
main
</html>