File tree Expand file tree Collapse file tree 2 files changed +136
-1
lines changed Expand file tree Collapse file tree 2 files changed +136
-1
lines changed Original file line number Diff line number Diff line change 10
10
http-equiv ="X-UA-Compatible "
11
11
content ="ie=edge "
12
12
/>
13
+ < link
14
+ rel ="preconnect "
15
+ href ="https://fonts.googleapis.com "
16
+ />
17
+ < link
18
+ rel ="preconnect "
19
+ href ="https://fonts.gstatic.com "
20
+ />
21
+ < link
22
+ href ="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap "
23
+ rel ="stylesheet "
24
+ />
25
+ < link
26
+ href ="./style.css "
27
+ rel ="stylesheet "
28
+ />
13
29
< title > Moyo header</ title >
14
30
< link
15
31
rel ="stylesheet "
16
32
href ="./style.css "
17
33
/>
18
34
</ head >
19
35
< body >
20
- < h1 > Moyo header</ h1 >
36
+ < header class ="header ">
37
+ < div class ="nav-logo ">
38
+ < a href ="home ">
39
+ < img
40
+ src ="./images/logo.png "
41
+ alt ="Moyo logo "
42
+ class ="nav-bar-logo "
43
+ />
44
+ </ a >
45
+ </ div >
46
+ < nav class ="nav-bar ">
47
+ < div class ="nav-menu ">
48
+ < ul class ="nav-items ">
49
+ < li >
50
+ < a
51
+ href ="apple "
52
+ class ="is-active "
53
+ >
54
+ Apple
55
+ </ a >
56
+ </ li >
57
+ < li > < a href ="samsung "> Samsung</ a > </ li >
58
+ < li > < a href ="smartphones "> Smartphones</ a > </ li >
59
+ < li >
60
+ < a
61
+ href ="Laptops "
62
+ data-qa ="hover "
63
+ >
64
+ Laptops & Computers
65
+ </ a >
66
+ </ li >
67
+ < li > < a href ="gadgets "> Gadgets</ a > </ li >
68
+ < li > < a href ="tablets "> Tablets</ a > </ li >
69
+ < li > < a href ="photo "> Photo</ a > </ li >
70
+ < li > < a href ="video "> Video</ a > </ li >
71
+ </ ul >
72
+ </ div >
73
+ </ nav >
74
+ </ header >
21
75
</ body >
22
76
</ html >
Original file line number Diff line number Diff line change 1
1
body {
2
2
margin : 0 ;
3
+ font-family : Roboto, sans-serif;
4
+ font-size : 12px ;
5
+ font-weight : 500 ;
6
+ text-align : left;
7
+ text-underline-position : from-font;
8
+ text-decoration-skip-ink : none;
9
+ }
10
+
11
+ .header {
12
+ display : flex;
13
+ justify-content : space-between;
14
+ padding : 0 50px ;
15
+ align-items : center;
16
+ text-transform : uppercase;
17
+ }
18
+
19
+ .nav-logo {
20
+ height : 40px ;
21
+ width : 40px ;
22
+ }
23
+
24
+ .nav-bar {
25
+ margin : 0 ;
26
+ }
27
+
28
+ .nav-items {
29
+ display : flex;
30
+ list-style : none;
31
+ height : 60px ;
32
+ align-items : center;
33
+ }
34
+
35
+ ul {
36
+ margin : 0 ;
37
+ padding : 0 ;
38
+ }
39
+
40
+ li {
41
+ position : relative;
42
+ text-align : center;
43
+ line-height : 60px ;
44
+ margin : 0 10px ;
45
+ }
46
+
47
+ ul li : first-child {
48
+ margin-left : 0 ;
49
+ }
50
+
51
+ ul li : last-child {
52
+ margin-right : 0 ;
53
+ }
54
+
55
+ a {
56
+ display : inline-block;
57
+ text-decoration : none;
58
+ color : # 000 ;
59
+ height : 100% ;
60
+ }
61
+
62
+ a : hover {
63
+ color : # 00acdc ;
64
+ }
65
+
66
+ a : visited {
67
+ color : # 000 ;
68
+ }
69
+
70
+ li > .is-active {
71
+ color : # 00acdc ;
72
+ }
73
+
74
+ .is-active ::after {
75
+ position : absolute;
76
+ content : '' ;
77
+ display : inline-block;
78
+ height : 4px ;
79
+ width : 100% ;
80
+ background-color : # 00acdc ;
81
+ border-radius : 8px ;
82
+ bottom : 0 ;
83
+ left : 0 ;
3
84
}
You can’t perform that action at this time.
0 commit comments