File tree 3 files changed +162
-0
lines changed
3 files changed +162
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+
4
+ < head >
5
+ < meta charset ="UTF-8 ">
6
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
7
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
8
+
9
+ < link rel ="preconnect " href ="https://fonts.googleapis.com ">
10
+ < link rel ="preconnect " href ="https://fonts.gstatic.com " crossorigin >
11
+ < link href ="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap " rel ="stylesheet ">
12
+
13
+ < link rel ="stylesheet " href ="style.css ">
14
+
15
+ < title > Tutorial</ title >
16
+ </ head >
17
+
18
+ < body >
19
+
20
+ < header class ="header ">
21
+ < div class ="header__content ">
22
+ < a href ="# " class ="logo ">
23
+ < img class ="logo__img " src ="logo.svg " alt ="logo ">
24
+ </ a >
25
+
26
+ < nav class ="nav ">
27
+ < ul class ="nav__list ">
28
+ < li class ="nav__item ">
29
+ < a class ="nav__link " href ="# "> Solutions</ a >
30
+ </ li >
31
+ < li class ="nav__item ">
32
+ < a class ="nav__link " href ="# "> Projects</ a >
33
+ </ li >
34
+ < li class ="nav__item ">
35
+ < a class ="btn " href ="# "> Contact</ a >
36
+ </ li >
37
+ </ ul >
38
+ </ nav >
39
+ </ div >
40
+ </ header >
41
+
42
+ </ body >
43
+
44
+ </ html >
Original file line number Diff line number Diff line change
1
+ /* RESET */
2
+ * {
3
+ margin : 0 ;
4
+ padding : 0 ;
5
+ box-sizing : border-box;
6
+ }
7
+
8
+ ul {
9
+ list-style : none;
10
+ }
11
+
12
+ a {
13
+ text-decoration : none;
14
+ color : inherit;
15
+ }
16
+
17
+ button {
18
+ background : none;
19
+ border : none;
20
+ font : inherit;
21
+ color : inherit;
22
+ }
23
+
24
+ /* BASE STYLES */
25
+ body {
26
+ background-color : # e8f0f7 ;
27
+ font-family : 'Inter' , sans-serif;
28
+ min-height : 500vh ;
29
+ }
30
+
31
+ /* NORMAL STYLES */
32
+ .header {
33
+ position : fixed;
34
+ width : 100% ;
35
+ background-color : rgb (19 , 22 , 26 );
36
+ }
37
+
38
+ .header__content {
39
+ min-height : 60px ;
40
+ display : flex;
41
+ justify-content : space-between;
42
+ align-items : center;
43
+ max-width : 1200px ;
44
+ padding : 0 30px ;
45
+ margin : 0 auto;
46
+ }
47
+
48
+ .logo {
49
+
50
+ }
51
+
52
+ .logo__img {
53
+ display : block;
54
+ height : 20px ;
55
+ }
56
+
57
+ .nav {
58
+
59
+ }
60
+
61
+ .nav__list {
62
+ display : flex;
63
+ column-gap : 40px ;
64
+ }
65
+
66
+ .nav__item {
67
+
68
+ }
69
+
70
+ .nav__link {
71
+ color : rgba (255 , 255 , 255 , 0.75 );
72
+ font-size : 15px ;
73
+ transition : all 0.2s ;
74
+ }
75
+
76
+ .nav__link : hover {
77
+ color : rgba (255 , 255 , 255 , 1 );
78
+ }
79
+
80
+ .btn {
81
+ color : # fff ;
82
+ background-color : # 0071e3 ;
83
+ padding : 7px 18px ;
84
+ border-radius : 1000px ;
85
+ text-transform : uppercase;
86
+ font-size : 12px ;
87
+ font-weight : 500 ;
88
+ cursor : pointer;
89
+ transition : all 0.2s ;
90
+ }
91
+
92
+ .btn : hover {
93
+ background-color : rgb (28 , 128 , 228 );
94
+ }
95
+
96
+ /* MEDIA QUERIES */
97
+ @media (max-width : 650px ) {
98
+ .header__content {
99
+ padding : 25px 0 ;
100
+ flex-direction : column;
101
+ row-gap : 18px ;
102
+ align-items : center;
103
+ }
104
+
105
+ .nav__list {
106
+ column-gap : 20px ;
107
+ }
108
+ }
You can’t perform that action at this time.
0 commit comments