forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hotel.html
478 lines (418 loc) · 17.4 KB
/
hotel.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
<!DOCTYPE html>
<html lang="en">
<head>
main
<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="hotel.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.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">
<title>Hotel Booking - BuddyTrail</title>
<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>
<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="hotel.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.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">
<title>Hotel Booking - BuddyTrail</title>
</head>
main
<body>
<header class="main-head">
<nav>
<div class="logo">
<img src="img/logo.png" id="logo-web" alt="BuddyTrail Logo">
<h1 id="logo"><a href="#home">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="index.html#deals" class="navhover">Exclusive Deals</a>
</li>
<li><a href="index.html#benefits" class="navhover">Benefits</a></li>
<li><a href="about.html" class="navhover">About</a></li>
<li>
<a href="index.html#itineraries" class="navhover">Travel Itineraries</a>
</li>
<li><a href="./contact.html" class="navhover">Contact</a></li>
<li><a href="index.html#reviews" class="navhover">Reviews</a></li>
<li><a href="auth.html" class="navhover">Sign In</a></li>
</ul>
<div style="display: flex;">
<button class="hamburger" id="hamburger" style="margin-right: 10px;">☰</button>
<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>
</div>
</nav>
</header>
<main>
<section class="filter-section">
<h1 class="header1">Find Your Perfect Stay</h1>
<div class="filter-bar">
<label for="location-filter">Location:</label>
<select id="location-filter" onchange="filterHotels()">
<option value="all">All</option>
<option value="hill">Nature Retreats</option>
<option value="city">Urban Hotels</option>
</select>
<label for="price-filter">Price Range:</label>
<select id="price-filter" onchange="filterHotels()">
<option value="all">All</option>
<option value="budget">Budget ($0 - $100)</option>
<option value="mid-range">Mid-range ($101 - $200)</option>
<option value="luxury">Luxury ($201+)</option>
</select>
<label for="rating-filter">Rating:</label>
<select id="rating-filter" onchange="filterHotels()">
<option value="all">All</option>
<option value="5">5 Stars</option>
<option value="4">4 Stars & Up</option>
<option value="3">3 Stars & Up</option>
</select>
</div>
</section>
<section class="hotel-tiles">
<!-- Nature Retreats -->
<!-- Nature Retreats -->
<div class="hotel-tile hill">
<img src="img/n5.jpg" alt="Mountain Bliss Resort">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️⭐️⭐️</span>
<span class="price">$120/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<div class="hotel-tile hill">
<img src="img/n4.jpg" alt="Lakeview Haven">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️</span>
<span class="price">$150/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<div class="hotel-tile hill">
<img src="img/n3.jpg" alt="Forest Retreat">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️⭐️⭐️</span>
<span class="price">$250/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<div class="hotel-tile hill">
<img src="img/n2.jpg" alt="Green Valley Lodge">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️⭐️⭐️</span>
<span class="price">$90/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<div class="hotel-tile hill">
<img src="img/n1.jpg" alt="Peaceful Heights">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️</span>
<span class="price">$50/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<!-- Urban Hotels -->
<div class="hotel-tile city">
<img src="img/u1.jpg" alt="Urban Stay Hotel">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️</span>
<span class="price">$120/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<div class="hotel-tile city">
<img src="img/u2.jpg" alt="Metropolitan Hub">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️⭐️</span>
<span class="price">$90/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<div class="hotel-tile city">
<img src="img/c3.jpg" alt="City Lights Inn">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️⭐️</span>
<span class="price">$90/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<div class="hotel-tile city">
<img src="img/u4.jpg" alt="Urban Oasis">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️⭐️</span>
<span class="price">$90/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<!-- Add more hotel tiles here with appropriate data attributes -->
<!-- Urban Hotels -->
<div class="hotel-tile city" data-price="90" data-rating="4">
<img src="img/u1.jpg" alt="Urban Stay Hotel">
<div class="hotel-info">
<h2>Urban Stay Hotel</h2>
<p>Delhi, India</p>
<div class="hotel-details">
<span class="rating">⭐️⭐️⭐️⭐️</span>
<span class="price">$90/night</span>
</div>
<a href="CheckoutHotel.html" class="btn book-now">Book Now</a>
</div>
</div>
<!-- Add more hotel tiles here -->
</section>
</main>
<div class="footer-responsive">
<footer>
<div class="row">
<div class="col">
<div class="logo-footer">
<img src="img/logo.png" alt="BuddyTrail Logo" />
<h1 id="logo">BuddyTrail</h1>
</div>
<p class="hover-color">Welcome to BuddyTrail - your premier travel companion! Whether you're
planning a
family vacation
or a
getaway with friends, BuddyTrail is here to help you discover and explore incredible
destinations.
Our platform makes it easy to find the best hotels and book affordable flights, ensuring a
seamless
travel experience.</p>
</div>
<div class="col">
<h3>Office <div class="underline"><span></span></div>
</h3>
<p>123 Fake Street</p>
<p>Near XYZ Mall, Sample City</p>
<p>Fake State, PIN 12345, India</p>
<h3>
<a href="mailto:[email protected]" style="color: white; text-decoration: none;">[email protected]</a><br>
<a href="tel:+1234567890" style="color: white; text-decoration: none;">+123 456 7890</a>
</h3>
</div>
<div class="col">
<h3>Links <div class="underline"><span></span></div>
</h3>
<ul class="footer-links">
<li><a href="https://buddytrail.netlify.app/#home">Home</a></li>
<li><a href="https://buddytrail.netlify.app/#services">Services</a></li>
<li><a href="https://buddytrail.netlify.app/about">About Us</a></li>
<li><a href="https://buddytrail.netlify.app/faq" target="_blank">FAQs</a></li>
<li><a href="https://buddytrail.netlify.app/team" target="_blank">Our Team</a></li>
<li><a href="https://buddytrail.netlify.app/contributor/contributor"
target="_blank">Contributors</a></li>
<li><a href="https://buddytrail.netlify.app/contact">Contact Us</a></li>
</ul>
</div>
<div class="col">
<h3>Follow Us <div class="underline"><span></span></div>
</h3>
<form>
<i class="far fa-envelope"></i>
<input type="email" placeholder="Enter your email id" required>
<button type="submit"><i class="fas fa-arrow-right"></i></button>
</form>
<div>
<div class="social-icons">
<a href="https://discord.com/invite/priyaghosal" target="_blank" rel="noopener noreferrer">
<i class="fab fa-discord"></i>
</a>
<a href="https://x.com/i/flow/login?redirect_after_login=%2FPriyaGhosa39968" target="_blank"
rel="noopener noreferrer">
<img src="img/x-logo.png" alt="X logo" class="fab">
</a>
<a href="https://github.com/PriyaGhosal/BuddyTrail" target="_blank"
rel="noopener noreferrer">
<i class="fab fa-github"></i>
</a>
<a href="https://www.linkedin.com/in/priya-ghosal-785771286/" target="_blank"
rel="noopener noreferrer">
<i class="fab fa-linkedin"></i>
</a>
</div>
</div>
</div>
</div>
<hr>
<p class="copyright"> © 2024 BuddyTrail | All Rights Reserved</p>
</footer>
</div>
<script>
function filterHotels() {
const locationFilter = document.getElementById("location-filter").value;
const priceFilter = document.getElementById("price-filter").value;
const ratingFilter = document.getElementById("rating-filter").value;
const hotels = document.querySelectorAll(".hotel-tile");
hotels.forEach(hotel => {
const locationMatch = locationFilter === "all" || hotel.classList.contains(locationFilter);
const price = parseInt(hotel.dataset.price);
const rating = parseInt(hotel.dataset.rating);
let priceMatch = true;
if (priceFilter === "budget") priceMatch = price <= 100;
else if (priceFilter === "mid-range") priceMatch = price > 100 && price <= 200;
else if (priceFilter === "luxury") priceMatch = price > 200;
const ratingMatch = ratingFilter === "all" || rating >= parseInt(ratingFilter);
if (locationMatch && priceMatch && ratingMatch) {
hotel.style.display = "block";
} else {
hotel.style.display = "none";
}
});
}
// Add event listeners for hamburger menu and mode toggle
document.addEventListener('DOMContentLoaded', function () {
const hamburger = document.getElementById('hamburger');
const navList = document.getElementById('nav-list');
const closeBtn = document.getElementById('closeBtn');
const modeToggle = document.getElementById('modeToggle');
const sunIcon = document.querySelector('.sun-icon');
const moonIcon = document.querySelector('.moon-icon');
hamburger.addEventListener('click', function () {
navList.classList.toggle('show');
});
closeBtn.addEventListener('click', function () {
navList.classList.remove('show');
});
modeToggle.addEventListener('click', function () {
document.body.classList.toggle('dark-mode');
sunIcon.style.display = sunIcon.style.display === 'none' ? 'inline' : 'none';
moonIcon.style.display = moonIcon.style.display === 'none' ? 'inline' : 'none';
});
});
</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>
<!-- 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>
</html>