-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.html
376 lines (354 loc) · 17.6 KB
/
gallery.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>TripBoss</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel = "stylesheet" href = "css/utility.css">
<link rel = "stylesheet" href = "css/style.css">
<link rel = "stylesheet" href = "css/responsive.css">
</head>
<body>
<nav class = "navbar">
<div class = "container flex">
<a href = "index.html" class = "site-brand">
Taj<span>Trails</span>
</a>
<button type = "button" id = "navbar-show-btn" class = "flex">
<i class = "fas fa-bars"></i>
</button>
<div id = "navbar-collapse">
<button type = "button" id = "navbar-close-btn" class = "flex">
<i class = "fas fa-times"></i>
</button>
<ul class = "navbar-nav">
<li class = "nav-item">
<a href = "index.html" class = "nav-link">Home</a>
</li>
<li class = "nav-item">
<a href = "gallery.html" class = "nav-link">Gallery</a>
</li>
<li class = "nav-item">
<a href = "about.html" class = "nav-link">About</a>
</li>
<li class = "nav-item">
<a href = "Booking.html" class = "nav-link">Booking</a>
</li>
<li class = "nav-item">
<a href = "contact.html" class = "nav-link">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
<header class = "flex header-sm" id="gallery1">
<div class = "container">
<div class = "header-title">
<h1>Gallery</h1>
<p>Experience breathtaking sights from around the world with Taj Trails gallery page. Explore now and ignite your wanderlust.</p>
</div>
</div>
</header>
<div id = "gallery" class = "py-4">
<div class = "container">
<div class = "gallery-row">
<div class = "gallery-item shadow">
<img src = "images/gallery-1.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-2.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-3.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-4.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-5.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-6.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-7.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-8.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
<div class = "gallery-item shadow">
<img src = "images/gallery-9.jpg" alt = "gallery img">
<span class = "zoom-icon">
<i class = "fas fa-search-plus"></i>
</span>
</div>
</div>
</div>
</div>
<div id = "img-modal-box">
<div id = "img-modal">
<button type = "button" id = "modal-close-btn" class = "flex">
<i class = "fas fa-times"></i>
</button>
<button type = "button" id = "prev-btn" class = "flex">
<i class = "fas fa-chevron-left"></i>
</button>
<button type = "button" id = "next-btn" class = "flex">
<i class = "fas fa-chevron-right"></i>
</button>
<img src = "images/gallery-1.jpg">
</div>
</div>
<section id = "popular" class = "py-4">
<div class = "title-wrap">
<span class = "sm-title">know about some cool destination</span>
<h2 class = "lg-title">Popular Places</h2>
</div>
<div class = "popular-row">
<div class = "popular-item shadow">
<img src = "images/popular-1.jpg" alt = "">
<div>
<span>Eiffel Tower, Paris</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Iconic iron lattice tower, 324m tall, built in 1889, offers panoramic views of Paris.</p>
</div>
</div>
<div class = "popular-item shadow">
<img src = "images/popular-2.jpg" alt = "">
<div>
<span>Machu Picchu, Peru</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Machu Picchu - Ancient Incan citadel in the Andes mountains, known for stunning views.</p>
</div>
</div>
<div class = "popular-item shadow">
<img src = "images/popular-3.jpg" alt = "">
<div>
<span>Acropolis, Athens</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Acropolis is an ancient citadel featuring the iconic Parthenon temple in Athens, Greece.
</p>
</div>
</div>
<div class = "popular-item shadow">
<img src = "images/popular-4.jpg" alt = "">
<div>
<span>Bali, Indonesia</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Bali is a popular island destination known for its beaches, temples, and rice paddies.
</p>
</div>
</div>
<div class = "popular-item shadow">
<img src = "images/popular-5.jpg" alt = "">
<div>
<span>Dubai, United Arab Emirates</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Dubai is a luxurious city with impressive architecture, shopping, and entertainment attractions.</p>
</div>
</div>
<div class = "popular-item shadow">
<img src = "images/popular-6.jpg" alt = "">
<div>
<span>Bhutan</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Bhutan, also known as the "Land of the Thunder Dragon," is a small Himalayan kingdom famous for its scenic beauty, Buddhist temples, and Gross National Happiness index.</p>
</div>
</div>
<div class = "popular-item shadow">
<img src = "images/popular-7.jpg" alt = "">
<div>
<span>Havana, Cuba</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Havana, Cuba: Colorful architecture, classic cars, salsa music, and a rich history of revolution.</p>
</div>
</div>
<div class = "popular-item shadow">
<img src = "images/popular-8.jpg" alt = "">
<div>
<span>Moskva, Russia</span>
<ul class = "rating flex">
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star"></i></li>
<li><i class = "fas fa-star-half-alt"></i></li>
<li> 400 reviews</li>
</ul>
<p class = "text">Moscow is the capital city of Russia, known for its Red Square, Kremlin, and St. Basil's Cathedral.</p>
</div>
</div>
</div>
</section>
<footer class = "py-4">
<div class = "container footer-row">
<div class = "footer-item">
<a href = "index.html" class = "site-brand">
Taj<span>Trails</span>
</a>
<p class = "text">Taj Trails is your ultimate travel guide to explore the world's most popular destinations. Discover famous locations, specialities, and hotels based on your desired location. Our expert team brings you the best tips, tricks, and hidden gems for your next adventure. Start exploring today!</p>
</div>
<div class = "footer-item">
<h2>Follow us on: </h2>
<ul class = "social-links">
<li>
<a href = "#">
<i class = "fab fa-facebook-f"></i>
</a>
</li>
<li>
<a href = "#">
<i class = "fab fa-instagram"></i>
</a>
</li>
<li>
<a href = "#">
<i class = "fab fa-twitter"></i>
</a>
</li>
<li>
<a href = "#">
<i class = "fab fa-pinterest"></i>
</a>
</li>
<li>
<a href = "#">
<i class = "fab fa-google-plus"></i>
</a>
</li>
</ul>
</div>
<div class = "footer-item">
<h2>Popular Places:</h2>
<ul>
<li><a href = "#">Mumbai</a></li>
<li><a href = "#">Goa</a></li>
<li><a href = "#">Delhi</a></li>
<li><a href = "#">Meghalya</a></li>
<li><a href = "#">Kashmir</a></li>
</ul>
</div>
<div class = "subscribe-form footer-item">
<h2>Subscribe for Newsletter!</h2>
<form class = "flex">
<input type = "email" placeholder="Enter Email" class = "form-control">
<input type = "submit" class = "btn" value = "Subscribe">
</form>
</div>
</div>
</footer>
<script src = "js/script.js"></script>
<script>
const allGalleryItem = document.querySelectorAll('.gallery-item');
const imgModalDiv = document.getElementById('img-modal-box');
const modalCloseBtn = document.getElementById('modal-close-btn');
const nextBtn = document.getElementById('next-btn');
const prevBtn = document.getElementById('prev-btn');
let imgIndex = 0;
allGalleryItem.forEach((galleryItem) => {
galleryItem.addEventListener('click', () => {
imgModalDiv.style.display = "block";
let imgSrc = galleryItem.querySelector('img').src;
imgIndex = parseInt(imgSrc.split("-")[1].substring(0, 1));
showImageContent(imgIndex);
})
});
nextBtn.addEventListener('click', () => {
imgIndex++;
if(imgIndex > allGalleryItem.length){
imgIndex = 1;
}
showImageContent(imgIndex);
});
prevBtn.addEventListener('click', () => {
imgIndex--;
if(imgIndex <= 0){
imgIndex = allGalleryItem.length;
}
showImageContent(imgIndex);
});
function showImageContent(index){
imgModalDiv.querySelector('#img-modal img').src = `images/gallery-${index}.jpg`;
}
modalCloseBtn.addEventListener('click', () => {
imgModalDiv.style.display = "none";
});
</script>
</body>
</html>