-
Notifications
You must be signed in to change notification settings - Fork 0
/
booking2.html
238 lines (225 loc) · 9.29 KB
/
booking2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Booking Details</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
.hero-section {
background: url('pictures/beech.jpeg') no-repeat center center;
background-size: cover;
height: 50vh;
color: rgb(46, 48, 7);
text-align: center;
padding: 150px 20px;
}
.hero-section h1 {
font-size: 3rem;
font-weight: bold;
}
.hero-section p {
font-size: 1.5rem;
margin-top: 20px;
}
.booking-container {
margin-top: -30px;
}
.booking-card {
background-color: #f8f9fa;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 30px;
}
.booking-card h3 {
font-size: 2rem;
}
.form-control, .btn-primary {
margin-top: 10px;
}
.error-message {
color: red;
font-size: 0.9rem;
}
.faq-section {
background-color: #f8f9fa;
padding: 30px 20px;
border-radius: 8px;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark" style="background: linear-gradient(45deg, rgb(94, 189, 237), rgb(0, 123, 255)); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);">
<div class="container-fluid">
<a class="navbar-brand" href="TTravel.html">
<img src="pictures/Web2logo.png" alt="FunTripLogo">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link active" href="TTravel.html">Home</a></li>
<li class="nav-item"><a class="nav-link active" href="reservation .html">Book Now</a></li>
<li class="nav-item"><a class="nav-link active" href="#faq">FAQ's</a></li>
</ul>
</div>
</div>
</nav>
<!-- Hero Section -->
<div class="hero-section">
<h1>Book Your Dream Vacation Now</h1>
<p>Seize the opportunity and create unforgettable memories with our special travel packages!</p>
</div>
<!-- Booking Form -->
<div class="container booking-container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card booking-card">
<h3 class="text-center">Confirm Your Booking</h3>
<form action="#" method="POST" onsubmit="return validateForm()">
<div class="mb-3">
<label for="name" class="form-label">Your Name</label>
<input type="text" class="form-control" id="name" placeholder="Enter your name" required>
</div>
<div class="mb-3">
<label for="email" class="form-label">Email Address</label>
<input type="email" class="form-control" id="email" placeholder="Enter your email" required>
</div>
<div class="mb-3">
<label for="phone" class="form-label">Phone Number</label>
<input type="tel" class="form-control" id="phone" placeholder="Enter your phone number" required>
</div>
<div class="mb-3">
<label for="offer" class="form-label">Select Your Offer</label>
<select class="form-select" id="offer" required>
<option value="" disabled selected>Choose an offer</option>
<option value="char-dhaam-yatra">Char Dhaam Yatra</option>
<option value="mountain-adventure">Mountain Adventure</option>
<option value="jungle-safari">Jungle Safari</option>
<option value="friends-forever">Friends Forever</option>
<option value="beach-getaway">Beach Getaway</option>
<option value="historical-journey">Historical Journey</option>
<option value="luxury-cruise">Luxury Cruise</option>
<option value="romantic-retreat">Romantic Retreat</option>
</select>
</div>
<div class="mb-3">
<label for="date" class="form-label">Travel Date</label>
<input type="date" class="form-control" id="date" required>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary w-50">Confirm Booking</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- FAQ Section -->
<div class="container my-5 faq-section" id="faq">
<h2 class="text-center mb-4">Frequently Asked Questions</h2>
<div class="accordion" id="faqAccordion">
<!-- Question 1 -->
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
What is the booking process?
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#faqAccordion">
<div class="accordion-body">
To book a trip, simply fill in your details, select your offer, and choose your preferred travel date. Once you confirm, your booking will be submitted.
</div>
</div>
</div>
<!-- Question 2 -->
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Can I change my booking details after confirming?
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#faqAccordion">
<div class="accordion-body">
Yes, you can change your booking details by contacting our customer support. Changes may be subject to availability and terms.
</div>
</div>
</div>
<!-- Question 3 -->
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
What is included in the travel packages?
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" aria-labelledby="headingThree" data-bs-parent="#faqAccordion">
<div class="accordion-body">
Each package includes transportation, accommodation, and a variety of activities based on the selected offer. Specific details are available on each package page.
</div>
</div>
</div>
<!-- Question 4 -->
<div class="accordion-item">
<h2 class="accordion-header" id="headingFour">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
Are there any discounts for group bookings?
</button>
</h2>
<div id="collapseFour" class="accordion-collapse collapse" aria-labelledby="headingFour" data-bs-parent="#faqAccordion">
<div class="accordion-body">
Yes, we offer group discounts. Please contact us for more information on group booking rates and availability.
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-dark text-white text-center py-3">
<p>© 2024 FunTrip. All rights reserved.</p>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script>
function validateForm() {
let isValid = true;
document.querySelectorAll('.error-message').forEach(function (element) {
element.textContent = '';
});
const name = document.getElementById('name').value;
if (name.trim() === '') {
alert('Please enter your name.');
isValid = false;
}
const email = document.getElementById('email').value;
const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
if (!email.match(emailPattern)) {
alert('Please enter a valid email address.');
isValid = false;
}
const phone = document.getElementById('phone').value;
const phonePattern = /^[0-9]{10}$/;
if (!phone.match(phonePattern)) {
alert('Please enter a valid phone number.');
isValid = false;
}
const offer = document.getElementById('offer').value;
if (offer === '') {
alert('Please select an offer.');
isValid = false;
}
const date = document.getElementById('date').value;
if (date === '') {
alert('Please select a travel date.');
isValid = false;
}
if (isValid) {
alert('Your booking has been successfully submitted!');
}
return isValid;
}
</script>
</body>
</html>