forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
book.html
187 lines (176 loc) · 7.28 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
<!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.2em;
margin-top: 5px;
}
</style>
</head>
<body>
<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>
<li><a href="#locations">Location</a></li>
<li><a href="#benefits">Benefits</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="#booking-form">Book Now</a></li>
</ul>
</nav>
</header>
<main>
<section class="hero">
<h2>Welcome to BuddyTrail</h2>
</section>
<section id="locations" class="locations">
<h2>Popular Destinations</h2>
<div class="location-cards">
<div class="location-card">
<h3>Dubai</h3>
<p>Flight to Dubai<br>Save 20% on round-trip flights to Dubai. Limited time offer!</p>
<p><strong>Price:</strong> ₹20,000 <del>₹25,000</del></p>
</div>
<div class="location-card">
<h3>Goa</h3>
<p>Luxury Stay in Goa<br>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 <del>₹15,000</del> per night</p>
</div>
<div class="location-card">
<h3>Kerala</h3>
<p>Kerala Backwaters Package<br>Experience the serene beauty of Kerala's backwaters with a 4-day, 3-night package. All-inclusive deal!</p>
</div>
<div class="location-card">
<h3>Paris</h3>
<p>Paris Romantic Getaway<br>Enjoy a romantic trip to Paris with your loved one. Special package for couples!</p><br>
<p><strong>Price:</strong> ₹1,20,000 <del>₹1,50,000</del> per couple</p>
</div>
<div class="location-card">
<h3>Bali</h3>
<p>Adventure in Bali<br>Book an adventure trip to Bali with activities like snorkeling, trekking & more. Discount available for groups!</p>
<p><strong>Price:</strong> ₹48,000 <del>₹60,000</del> per person</p>
</div>
</div>
</section>
<section id="benefits" class="benefits">
<h2 style="">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>
<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="index.html">Services</a></li>
<li><a href="contact.html">Contact</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>
</body>
</html>