This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tour.html
522 lines (493 loc) · 17.7 KB
/
tour.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
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css?family=Lato:300,400,400i,700"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/style.css" />
<link rel="shortcut icon" type="image/png" href="img/favicon.png" />
<title>Natours | The Park Camper Tour</title>
<script src="https://api.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.js"></script>
<link
href="https://api.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.css"
rel="stylesheet"
/>
</head>
<body>
<header class="header">
<nav class="nav nav--tours">
<a href="/overview.html" class="nav__el">All tours</a>
<form class="nav__search">
<button class="nav__search-btn">
<svg>
<use xlink:href="img/icons.svg#icon-search"></use>
</svg>
</button>
<input
type="text"
placeholder="Search tours"
class="nav__search-input"
/>
</form>
</nav>
<div class="header__logo">
<img src="img/logo-white.png" alt="Natours logo" />
</div>
<nav class="nav nav--user">
<a href="#" class="nav__el">My bookings</a>
<button class="nav__el">Log out</button>
<a href="#" class="nav__el">
<img src="img/user.jpg" alt="User photo" class="nav__user-img" />
<span>Jonas</span>
</a>
<!--
<button class="nav__el">Log in</button>
<button class="nav__el nav__el--cta">Sign up</button>
-->
</nav>
</header>
<section class="section-header">
<div class="heading-box">
<h1 class="heading-primary">
<span
>The Park <br />
Camper Tour</span
>
</h1>
<div class="heading-box__group">
<div class="heading-box__detail">
<svg class="heading-box__icon">
<use xlink:href="img/icons.svg#icon-clock"></use>
</svg>
<span class="heading-box__text">10 days</span>
</div>
<div class="heading-box__detail">
<svg class="heading-box__icon">
<use xlink:href="img/icons.svg#icon-map-pin"></use>
</svg>
<span class="heading-box__text">Las Vegas, USA</span>
</div>
</div>
</div>
</section>
<section class="section-description">
<div class="overview-box">
<div>
<div class="overview-box__group">
<h2 class="heading-secondary ma-bt-lg">Quick facts</h2>
<div class="overview-box__detail">
<svg class="overview-box__icon">
<use xlink:href="img/icons.svg#icon-calendar"></use>
</svg>
<span class="overview-box__label">Next date</span>
<span class="overview-box__text">August 2021</span>
</div>
<div class="overview-box__detail">
<svg class="overview-box__icon">
<use xlink:href="img/icons.svg#icon-trending-up"></use>
</svg>
<span class="overview-box__label">Difficulty</span>
<span class="overview-box__text">Medium</span>
</div>
<div class="overview-box__detail">
<svg class="overview-box__icon">
<use xlink:href="img/icons.svg#icon-user"></use>
</svg>
<span class="overview-box__label">Participants</span>
<span class="overview-box__text">10 people</span>
</div>
<div class="overview-box__detail">
<svg class="overview-box__icon">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<span class="overview-box__label">Rating</span>
<span class="overview-box__text">4.9 / 5</span>
</div>
</div>
<div class="overview-box__group">
<h2 class="heading-secondary ma-bt-lg">Your tour guides</h2>
<div class="overview-box__detail">
<img
src="img/users/user-19.jpg"
alt="Lead guide"
class="overview-box__img"
/>
<span class="overview-box__label">Lead guide</span>
<span class="overview-box__text">Steven Miller</span>
</div>
<div class="overview-box__detail">
<img
src="img/users/user-18.jpg"
alt="Tour guide"
class="overview-box__img"
/>
<span class="overview-box__label">Tour guide</span>
<span class="overview-box__text">Lisa Brown</span>
</div>
<div class="overview-box__detail">
<img
src="img/users/user-17.jpg"
alt="Intern"
class="overview-box__img"
/>
<span class="overview-box__label">Intern</span>
<span class="overview-box__text">Max Smith</span>
</div>
</div>
</div>
</div>
<div class="description-box">
<h2 class="heading-secondary ma-bt-lg">About the park camper tour</h2>
<p class="description__text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur.
</p>
<p class="description__text">
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum
dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est
laborum!
</p>
</div>
</section>
<section class="section-pictures">
<div class="picture-box">
<img
class="picture-box__img picture-box__img--1"
src="img/tour-5-1.jpg"
alt="The Park Camper Tour 1"
/>
</div>
<div class="picture-box">
<img
class="picture-box__img picture-box__img--2"
src="img/tour-5-2.jpg"
alt="The Park Camper Tour 1"
/>
</div>
<div class="picture-box">
<img
class="picture-box__img picture-box__img--3"
src="img/tour-5-3.jpg"
alt="The Park Camper Tour 1"
/>
</div>
</section>
<section class="section-map">
<div id="map"></div>
<script>
mapboxgl.accessToken =
'pk.eyJ1Ijoiam9uYXNzY2htZWR0bWFubiIsImEiOiJjam54ZmM5N3gwNjAzM3dtZDNxYTVlMnd2In0.ytpI7V7w7cyT1Kq5rT9Z1A';
const geojson = {
type: 'FeatureCollection',
features: [
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [-112.987418, 37.198125]
},
properties: {
description: 'Zion Canyon National Park'
}
},
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [-111.376161, 36.86438]
},
properties: {
description: 'Antelope Canyon'
}
},
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [-112.115763, 36.058973]
},
properties: {
description: 'Grand Canyon National Park'
}
},
{
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [-116.107963, 34.011646]
},
properties: {
description: 'Joshua Tree National Park'
}
}
]
};
const map = new mapboxgl.Map({
container: 'map',
style: 'mapbox:https://styles/jonasschmedtmann/cjnxfn3zk7bj52rpegdltx58h',
scrollZoom: false
});
const bounds = new mapboxgl.LngLatBounds();
geojson.features.forEach(function(marker) {
var el = document.createElement('div');
el.className = 'marker';
new mapboxgl.Marker({
element: el,
anchor: 'bottom'
})
.setLngLat(marker.geometry.coordinates)
.addTo(map);
new mapboxgl.Popup({
offset: 30,
closeOnClick: false
})
.setLngLat(marker.geometry.coordinates)
.setHTML('<p>' + marker.properties.description + '</p>')
.addTo(map);
bounds.extend(marker.geometry.coordinates);
});
map.fitBounds(bounds, {
padding: {
top: 200,
bottom: 150,
left: 50,
right: 50
}
});
map.on('load', function() {
map.addLayer({
id: 'route',
type: 'line',
source: {
type: 'geojson',
data: {
type: 'Feature',
properties: {},
geometry: {
type: 'LineString',
coordinates: [
[-112.987418, 37.198125],
[-111.376161, 36.86438],
[-112.115763, 36.058973],
[-116.107963, 34.011646]
]
}
}
},
layout: {
'line-join': 'round',
'line-cap': 'round'
},
paint: {
'line-color': '#55c57a',
'line-opacity': 0.6,
'line-width': 3
}
});
});
</script>
</section>
<section class="section-reviews">
<div class="reviews">
<div class="reviews__card">
<div class="reviews__avatar">
<img
src="img/users/user-7.jpg"
alt="Jim Brown"
class="reviews__avatar-img"
/>
<h6 class="reviews__user">Jim Brown</h6>
</div>
<p class="reviews__text">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Cumque
dignissimos sint quo commodi corrupti accusantium veniam saepe
numquam.
</p>
<div class="reviews__rating">
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
</div>
</div>
<div class="reviews__card">
<div class="reviews__avatar">
<img
src="img/users/user-14.jpg"
alt="Laura Wilson"
class="reviews__avatar-img"
/>
<h6 class="reviews__user">Laura Wilson</h6>
</div>
<p class="reviews__text">
Veniam adipisci blanditiis, corporis sit magnam aperiam ad, fuga
reiciendis provident deleniti cumque similique itaque animi,
sapiente obcaecati beatae accusantium.
</p>
<div class="reviews__rating">
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--inactive">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
</div>
</div>
<div class="reviews__card">
<div class="reviews__avatar">
<img
src="img/users/user-15.jpg"
alt="Ben Hadley"
class="reviews__avatar-img"
/>
<h6 class="reviews__user">Ben Hadley</h6>
</div>
<p class="reviews__text">
Debitis, nesciunt itaque! At quis officia natus. Suscipit,
reprehenderit blanditiis mollitia distinctio ducimus porro tempore
perspiciatis sunt vel.
</p>
<div class="reviews__rating">
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
</div>
</div>
<div class="reviews__card">
<div class="reviews__avatar">
<img
src="img/users/user-6.jpg"
alt="Alexander Jones"
class="reviews__avatar-img"
/>
<h6 class="reviews__user">Alexander Jones</h6>
</div>
<p class="reviews__text">
Quaerat laborum eveniet ut aut maiores doloribus mollitia aperiam
quis praesentium sed inventore harum aliquam veritatis at adipisci
ea assumenda!
</p>
<div class="reviews__rating">
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
</div>
</div>
<div class="reviews__card">
<div class="reviews__avatar">
<img
src="img/users/user-3.jpg"
alt="Ayla Cornell"
class="reviews__avatar-img"
/>
<h6 class="reviews__user">Ayla Cornell</h6>
</div>
<p class="reviews__text">
Perferendis quo aliquid iste quas laboriosam molestias illo est
voluptatem odit ea. Vero placeat culpa provident dicta maiores!
</p>
<div class="reviews__rating">
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
<svg class="reviews__star reviews__star--active">
<use xlink:href="img/icons.svg#icon-star"></use>
</svg>
</div>
</div>
</div>
</section>
<section class="section-cta">
<div class="cta">
<div class="cta__img cta__img--logo">
<img src="img/logo-white.png" alt="Natours logo" class="" />
</div>
<img src="img/tour-5-2.jpg" alt="" class="cta__img cta__img--1" />
<img src="img/tour-5-1.jpg" alt="" class="cta__img cta__img--2" />
<div class="cta__content">
<h2 class="heading-secondary">What are you waiting for?</h2>
<p class="cta__text">
10 days. 1 adventure. Infinite memories. Make it yours today!
</p>
<button class="btn btn--green span-all-rows">Book tour now!</button>
</div>
</div>
</section>
<div class="footer">
<div class="footer__logo">
<img src="img/logo-green.png" alt="Natours logo" />
</div>
<ul class="footer__nav">
<li><a href="#">About us</a></li>
<li><a href="#">Download apps</a></li>
<li><a href="#">Become a guide</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact</a></li>
</ul>
<p class="footer__copyright">
© by Jonas Schmedtmann. All rights reserved.
</p>
</div>
</body>
</html>