forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
himachal.html
275 lines (252 loc) · 14 KB
/
himachal.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Himachal Pradesh Adventure Treks</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="himachal.html">
<link rel="stylesheet" href="Booknow.css">
</head>
<body>
<div class="container-fluid py-5 trek-header">
<h1 class="text-center text-white mb-4">Himachal Pradesh Adventure Treks</h1>
<div class="row justify-content-center">
<div class="col-md-6">
<div class="input-group mb-3">
<input type="text" class="form-control" placeholder="Search treks..." aria-label="Search treks">
<button class="btn btn-outline-secondary" type="button">Search</button>
</div>
</div>
</div>
</div>
<div class="container mt-4">
<div class="row mb-4">
<div class="col-md-4 mb-3">
<select class="form-select" aria-label="Filter by difficulty">
<option selected>Filter by difficulty</option>
<option value="1">Easy</option>
<option value="2">Moderate</option>
<option value="3">Difficult</option>
</select>
</div>
<div class="col-md-4 mb-3">
<select class="form-select" aria-label="Filter by duration">
<option selected>Filter by duration</option>
<option value="1">1-3 days</option>
<option value="2">4-7 days</option>
<option value="3">8+ days</option>
</select>
</div>
<div class="col-md-4 mb-3">
<select class="form-select" aria-label="Sort by">
<option selected>Sort by</option>
<option value="1">Popularity</option>
<option value="2">Duration</option>
<option value="3">Difficulty</option>
</select>
</div>
</div>
<div class="row" id="trekCards">
<div class="col-md-4 mb-4">
<div class="card h-100 trek-card">
<img src="triundtrek.jpg" class="card-img-top" alt="Triund Trek">
<div class="card-body">
<h5 class="card-title">Triund Trek</h5>
<p class="card-text">A beautiful 2-day trek near Dharamshala with stunning views of the Dhauladhar range.</p>
<ul class="list-group list-group-flush mb-3">
<li class="list-group-item"><strong>Duration:</strong> 2 days</li>
<li class="list-group-item"><strong>Difficulty:</strong> Easy to Moderate</li>
<li class="list-group-item"><strong>Best Time:</strong> March to June, September to November</li>
</ul>
</div>
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#trekModal">View Details</button>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card h-100 trek-card">
<img src="https://images.unsplash.com/photo-1515876305430-f06edab8282a" class="card-img-top" alt="Hampta Pass Trek">
<div class="card-body">
<h5 class="card-title">Hampta Pass Trek</h5>
<p class="card-text">A diverse 5-day trek crossing from lush Kullu Valley to the arid Spiti region.</p>
<ul class="list-group list-group-flush mb-3">
<li class="list-group-item"><strong>Duration:</strong> 5 days</li>
<li class="list-group-item"><strong>Difficulty:</strong> Moderate</li>
<li class="list-group-item"><strong>Best Time:</strong> June to September</li>
</ul>
</div>
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#trekModal">View Details</button>
</div>
</div>
<div class="col-md-4 mb-4">
<div class="card h-100 trek-card">
<img src="https://images.unsplash.com/photo-1544198365-f5d60b6d8190" class="card-img-top" alt="Bhrigu Lake Trek">
<div class="card-body">
<h5 class="card-title">Bhrigu Lake Trek</h5>
<p class="card-text">A 4-day trek to a high-altitude glacial lake near Manali with panoramic views.</p>
<ul class="list-group list-group-flush mb-3">
<li class="list-group-item"><strong>Duration:</strong> 4 days</li>
<li class="list-group-item"><strong>Difficulty:</strong> Moderate to Difficult</li>
<li class="list-group-item"><strong>Best Time:</strong> May to October</li>
</ul>
</div>
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#trekModal">View Details</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="trekModal" tabindex="-1" aria-labelledby="trekModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="trekModalLabel">Trek Details</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div id="trekCarousel" class="carousel slide mb-4" data-bs-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img src="triundtrek.jpg" class="d-block w-100" alt="Trek Image 1">
</div>
<div class="carousel-item">
<img src="https://images.unsplash.com/photo-1515876305430-f06edab8282a" class="d-block w-100" alt="Trek Image 2">
</div>
<div class="carousel-item">
<img src="https://images.unsplash.com/photo-1544198365-f5d60b6d8190" class="d-block w-100" alt="Trek Image 3">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#trekCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#trekCarousel" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<h4>Itinerary</h4>
<ul>
<li>Day 1: Start point to Base Camp</li>
<li>Day 2: Base Camp to Summit</li>
<li>Day 3: Summit to Base Camp</li>
<li>Day 4: Return to Start point</li>
</ul>
<h4>Inclusions</h4>
<ul>
<li>Professional trek guide</li>
<li>Camping equipment</li>
<li>Meals during the trek</li>
<li>First aid kit</li>
</ul>
<h4>Exclusions</h4>
<ul>
<li>Transportation to and from the trek starting point</li>
<li>Personal expenses</li>
<li>Travel insurance</li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<div class="book-now-container">
<button class="book-now-button" onclick="openModal()">Book Now</button>
</div>
<div id="bookingModal" class="modal1">
<div class="modal-content1">
<div class="modal-header1">Trek Booking Form</div>
<div class="modal-body1">
<p>Please fill in your details:</p>
<!-- User Details Form -->
<div class="input-field">
<label for="name">Full Name</label>
<input type="text" id="name" placeholder="Enter your name" required>
</div>
<div class="input-field">
<label for="email">Email</label>
<input type="email" id="email" placeholder="Enter your email" required>
</div>
<div class="input-field">
<label for="phone">Phone Number</label>
<input type="tel" id="phone" placeholder="Enter your phone number" required>
</div>
<div class="dropdown">
<label for="trekSelection">Select a Trek</label>
<select id="trekSelection" onchange="updateTrekDetails()">
<option value="Triund Trek">Triund Trek</option>
<option value="Hampta Pass Trek">Hampta Pass Trek</option>
<option value="Bhrigu Lake Trek">Bhrigu Lake Trek</option>
</select>
</div>
<!-- Trek Details Section -->
<div id="trekDetails" class="trek-details">
<!-- Trek details will be populated here based on the selection -->
</div>
<button class="form-button" onclick="confirmBooking()">Confirm Booking</button>
</div>
<button class="close-btn1" onclick="closeModal()">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Trek details for each option
const trekInfo = {
"Triund Trek": {
description: "A beautiful 2-day trek near Dharamshala with stunning views of the Dhauladhar range.",
duration: "Duration: 2 days",
difficulty: "Difficulty: Easy to Moderate",
bestTime: "Best Time: March to June, September to November"
},
"Hampta Pass Trek": {
description: "A diverse 5-day trek crossing from lush Kullu Valley to the arid Spiti region.",
duration: "Duration: 5 days",
difficulty: "Difficulty: Moderate",
bestTime: "Best Time: June to September"
},
"Bhrigu Lake Trek": {
description: "A 4-day trek to a high-altitude glacial lake near Manali with panoramic views.",
duration: "Duration: 4 days",
difficulty: "Difficulty: Moderate to Difficult",
bestTime: "Best Time: May to October"
}
};
// Function to open the modal
function openModal() {
document.getElementById("bookingModal").style.display = "flex";
updateTrekDetails(); // Update trek details for the first selected option
}
// Function to close the modal
function closeModal() {
document.getElementById("bookingModal").style.display = "none";
}
// Function to update trek details based on the selection
function updateTrekDetails() {
var selectedTrek = document.getElementById("trekSelection").value;
var trekDetails = trekInfo[selectedTrek];
var detailsHTML = `
<p><strong>${selectedTrek}</strong></p>
<p>${trekDetails.description}</p>
<p>${trekDetails.duration}</p>
<p>${trekDetails.difficulty}</p>
<p>${trekDetails.bestTime}</p>
`;
document.getElementById("trekDetails").innerHTML = detailsHTML;
}
// Function to confirm the booking based on input details
function confirmBooking() {
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
var phone = document.getElementById("phone").value;
var selectedTrek = document.getElementById("trekSelection").value;
if (name && email && phone) {
alert("Thank you " + name + "! Your booking for " + selectedTrek + " has been confirmed. We will contact you at " + email + " or " + phone + ".");
closeModal();
} else {
alert("Please fill in all the details before confirming.");
}
}
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>