forked from PriyaGhosal/BuddyTrail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hotel.html
331 lines (297 loc) · 14.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
<!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="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>
<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="#home" class="navhover">Home</a></li>
<li><a href="team.html" class="navhover">Team</a></li>
<li><a href="#deals" class="navhover">Exclusive Deals</a></li>
<li><a href="#benefits" class="navhover">Benefits</a></li>
<li><a href="about.html" class="navhover">About</a></li>
<li><a href="#itineraries" class="navhover">Travel Itineraries</a></li>
<li><a href="./contact.html" class="navhover">Contact</a></li>
<li><a href="#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="#book" 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="#book" 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="#book" 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="#book" 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="#book" 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="#book" 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="#book" 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="#book" 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="#book" 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="#book" class="btn book-now">Book Now</a>
</div>
</div>
<!-- Add more hotel tiles here -->
</section>
</main>
<footer>
<div class="footer-container">
<div style="display: flex;">
<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>
<div>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</div>
</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" target="_blank">
<i
class="fab fa-discord"></i></a>
<a href="https://twitter.com/PriyaGhosa39968" target="_blank">
<i class="fab fa-twitter"></i></a>
<a href="https://github.com/PriyaGhosal/BuddyTrail" target="_blank">
<i
class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/priya-ghosal-785771286/" target="_blank">
<i class="fab fa-linkedin-in"></i></a>
</div>
</div>
</div>
<div class="footer-bottom">
<p>© 2024 Buddy Trail. All rights reserved.</p>
</div>
</div>
</footer>
<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>
</body>
</html>