File tree Expand file tree Collapse file tree 2 files changed +86
-2
lines changed Expand file tree Collapse file tree 2 files changed +86
-2
lines changed Original file line number Diff line number Diff line change @@ -259,4 +259,62 @@ ul {
259
259
Navbar
260
260
===============
261
261
*/
262
+ .navbar {
263
+ display : flex;
264
+ justify-content : center;
265
+ align-items : center;
262
266
267
+ }
268
+ .nav-center {
269
+ width : 90vw ;
270
+ max-width : var (--max-width );
271
+ }
272
+ .nav-header {
273
+ height : 6rem ;
274
+ display : flex;
275
+ justify-content : space-between;
276
+ align-items : center;
277
+ }
278
+ .nav-logo {
279
+ display : flex;
280
+ align-items : center;
281
+ }
282
+ .nav-header img {
283
+ width : 200px ;
284
+ }
285
+
286
+ .nav-btn {
287
+ padding : 0.15rem 0.75rem ;
288
+ }
289
+ .nav-btn i {
290
+ font-size : 1.25rem ;
291
+ }
292
+ .nav-links {
293
+ display : flex;
294
+ flex-direction : column;
295
+ /* todo */
296
+ height : 0 ;
297
+ overflow : hidden;
298
+ transition : var (--transition );
299
+ }
300
+ .show-links {
301
+ height : 310px ;
302
+ }
303
+ .nav-link {
304
+ display : block;
305
+ text-align : center;
306
+ text-transform : capitalize;
307
+ color : var (--grey-900 );
308
+ letter-spacing : var (--letterSpacing );
309
+ padding : 1rem 0 ;
310
+ border-top : 1px solid var (--grey-500 );
311
+ transition : var (--transtion );
312
+ }
313
+ .nav-link : hover {
314
+ color : var (--primary-500 );
315
+ }
316
+ .contact-link a {
317
+ padding : 0.15rem 1rem ;
318
+ }
319
+
320
+
Original file line number Diff line number Diff line change 18
18
< link rel ="stylesheet " href ="./css/main.css " />
19
19
</ head >
20
20
< body >
21
- < h1 > Home Page </ h1 >
22
-
21
+ <!-- nav -->
22
+ < div class ="navbar ">
23
+ < div class ="nav-center ">
24
+ <!-- header -->
25
+ < div class ="nav-header ">
26
+ < a href ="index.html " class ="nav-logo ">
27
+ < img src ="./assets/logo.svg " alt ="Simply Recipes " />
28
+ </ a >
29
+ < button type ="button " class ="btn nav-btn ">
30
+ < i class ="fas fa-align-justify "> </ i >
31
+ </ button >
32
+ </ div >
33
+ <!-- links -->
34
+ < div class ="nav-links ">
35
+ < a href ="index.html " class ="nav-link "> home</ a >
36
+ < a href ="about.html " class ="nav-link "> about</ a >
37
+ < a href ="tags.html " class ="nav-link "> tags</ a >
38
+ < a href ="recipes.html " class ="nav-link "> recipes</ a >
39
+ < div class ="nav-link contact-link ">
40
+ < a href ="contact.html " class ="btn "> contact</ a >
41
+ </ div >
42
+ </ div >
43
+ </ div >
44
+ </ div >
45
+ <!-- end of nav -->
46
+ < script src ="./js/app.js ">
47
+
48
+ </ script >
23
49
</ body >
24
50
</ html >
You can’t perform that action at this time.
0 commit comments