Skip to content

Commit e1dcca0

Browse files
committed
complete
0 parents  commit e1dcca0

File tree

3 files changed

+182
-0
lines changed

3 files changed

+182
-0
lines changed

index.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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>

logo.svg

Lines changed: 10 additions & 0 deletions
Loading

style.css

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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.4s;
74+
position: relative;
75+
}
76+
77+
.nav__link:hover,
78+
.nav__link:focus {
79+
color: rgba(255, 255, 255, 1);
80+
}
81+
82+
.nav__link::after {
83+
content: '';
84+
opacity: 0;
85+
transition: all 0.2s;
86+
position: absolute;
87+
bottom: -8px;
88+
left: 0;
89+
height: 2px;
90+
width: 100%;
91+
background-color: rgb(0, 183, 255);
92+
pointer-events: none;
93+
}
94+
95+
.nav__link:hover::after,
96+
.nav__link:focus::after {
97+
opacity: 1;
98+
}
99+
100+
.btn {
101+
color: #fff;
102+
background-color: #0071e3;
103+
padding: 7px 18px;
104+
border-radius: 1000px;
105+
text-transform: uppercase;
106+
font-size: 12px;
107+
font-weight: 500;
108+
cursor: pointer;
109+
transition: all 0.2s;
110+
}
111+
112+
.btn:hover {
113+
background-color: rgb(28, 128, 228);
114+
}
115+
116+
/* MEDIA QUERIES */
117+
@media (max-width: 650px) {
118+
.header__content {
119+
padding: 25px 0;
120+
flex-direction: column;
121+
row-gap: 18px;
122+
align-items: center;
123+
}
124+
125+
.nav__list {
126+
column-gap: 20px;
127+
}
128+
}

0 commit comments

Comments
 (0)