6
6
7
7
< link href ="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900 " rel ="stylesheet ">
8
8
9
- < link rel ="stylesheet " href ="css/icon-font.css ">
10
9
< link rel ="stylesheet " href ="css/style.css ">
11
10
< link rel ="shortcut icon " type ="image/png " href ="img/favicon.png ">
12
11
@@ -38,7 +37,7 @@ <h1 class="heading-primary"> <!-- SEO checks for h1, we want the whole slogan to
38
37
< span class ="heading-primary--main "> Outdoors</ span >
39
38
< span class ="heading-primary--sub "> is where life happens</ span >
40
39
</ h1 >
41
- < a href ="# " class ="btn btn--white btn--animated "> Discover our tours</ a >
40
+ < a href ="#section-tours " class ="btn btn--white btn--animated "> Discover our tours</ a >
42
41
</ div >
43
42
</ header >
44
43
< main >
@@ -63,7 +62,15 @@ <h3 class="heading-tertiary u-margin-bottom-small">Live adventures like you neve
63
62
</ div >
64
63
< div class ="col-1-of-2 ">
65
64
< div class ="composition ">
66
- < img src ="img/nat-1-large.jpg " alt ="photo 1 " class ="composition__photo composition__photo--p1 ">
65
+ <!-- 300w means the width px of the image -->
66
+ <!-- sizes = informs the browser of the approximate width of the image at different viewport width -->
67
+ <!-- ie: the image is approx 20% when the viewport is 900px, now the browser can properly choose which srcset to download and use. -->
68
+ < img srcset ="img/nat-1.jpg 300w, img/nat-1-large.jpg 1000w "
69
+ src ="img/nat-1-large.jpg "
70
+ sizes ="(max-width: 900px) 20vw, (max-width: 600) 30vw, 300px "
71
+ alt ="Photo 1 "
72
+ class ="composition__photo composition__photo--p1 "
73
+ >
67
74
< img src ="img/nat-2-large.jpg " alt ="photo 2 " class ="composition__photo composition__photo--p2 ">
68
75
< img src ="img/nat-3-large.jpg " alt ="photo 3 " class ="composition__photo composition__photo--p3 ">
69
76
</ div >
@@ -112,7 +119,7 @@ <h3 class="heading-tertiary u-margin-bottom-small">live a healthier life</h3>
112
119
</ div >
113
120
</ section >
114
121
115
- < section class ="section-tours ">
122
+ < section class ="section-tours " id =" section-tours " >
116
123
< div class ="u-center-text u-margin-bottom-big ">
117
124
< h2 class ="heading-secondary ">
118
125
Most popular tours
@@ -147,7 +154,7 @@ <h4 class="card__heading">
147
154
< p class ="card__price-only "> Only</ p >
148
155
< p class ="card__price-value "> $297</ p >
149
156
</ div >
150
- < a href ="# " class ="btn btn--white "> Book now!</ a >
157
+ < a href ="#popup " class ="btn btn--white "> Book now!</ a >
151
158
</ div >
152
159
</ div >
153
160
</ div >
@@ -179,7 +186,7 @@ <h4 class="card__heading">
179
186
< p class ="card__price-only "> Only</ p >
180
187
< p class ="card__price-value "> $497</ p >
181
188
</ div >
182
- < a href ="# " class ="btn btn--white "> Book now!</ a >
189
+ < a href ="#popup " class ="btn btn--white "> Book now!</ a >
183
190
</ div >
184
191
</ div >
185
192
</ div >
@@ -211,15 +218,15 @@ <h4 class="card__heading">
211
218
< p class ="card__price-only "> Only</ p >
212
219
< p class ="card__price-value "> $897</ p >
213
220
</ div >
214
- < a href ="# " class ="btn btn--white "> Book now!</ a >
221
+ < a href ="#popup " class ="btn btn--white "> Book now!</ a >
215
222
</ div >
216
223
</ div >
217
224
</ div >
218
225
</ div >
219
226
</ div >
220
227
221
228
< div class ="u-center-text u-margin-top-huge ">
222
- < a href ="# " class ="btn btn--green "> Discover all tours</ a >
229
+ < a href ="#section-tours " class ="btn btn--green "> Discover all tours</ a >
223
230
</ div >
224
231
225
232
</ section >
@@ -309,7 +316,10 @@ <h2 class="heading-secondary">Start booking now</h2>
309
316
</ main >
310
317
< footer class ="footer ">
311
318
< div class ="footer__logo-box ">
312
- < img class ="footer__logo " src ="img/logo-green-2x.png " alt ="Full logo-green-2x ">
319
+ < picture class ="footer__logo ">
320
+ < source srcset ="img/logo-green-small-1x.png 1x, img/logo-green-small-2x.png 2x " media ="(max-width: 37.5em) ">
321
+ < img class ="footer__logo " srcset ="img/logo-green-1x.png 1x, img/logo-green-2x.png 2x " alt ="Full logo-green-2x ">
322
+ </ picture >
313
323
</ div >
314
324
< div class ="row ">
315
325
< div class ="col-1-of-2 ">
@@ -330,5 +340,24 @@ <h2 class="heading-secondary">Start booking now</h2>
330
340
</ div >
331
341
</ div >
332
342
</ footer >
343
+
344
+ < div class ="popup " id ="popup ">
345
+ < div class ="popup__content ">
346
+ < div class ="popup__left ">
347
+ < img src ="img/nat-8.jpg " alt ="Tour photo " class ="popup__img ">
348
+ < img src ="img/nat-9.jpg " alt ="Tour photo " class ="popup__img ">
349
+ </ div >
350
+ < div class ="popup__right ">
351
+ < a href ="#section-tours " class ="popup__close "> ×</ a >
352
+ < h2 class ="heading-secondary u-margin-bottom-small "> Start booking now</ h2 >
353
+ < h3 class ="heading-tertiary u-margin-bottom-small "> Important – Please read these terms before booking</ h3 >
354
+ < p class ="popup__text ">
355
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Voluptatibus pariatur iusto, suscipit odio quisquam modi magnam similique totam aliquam in sapiente iure nobis esse, officiis commodi expedita quam facilis dolore! Quaerat laudantium magnam excepturi illo est! Adipisci iusto, quibusdam dolores assumenda deleniti vitae amet debitis commodi fuga sapiente veniam aliquid, asperiores excepturi magni. Et, molestias dicta. Autem minus sequi veniam?
356
+ </ p >
357
+ < a href ="# " class ="btn btn--green "> Book now</ a >
358
+ </ div >
359
+ </ div >
360
+ </ div >
361
+
333
362
</ body >
334
363
</ html >
0 commit comments