Skip to content

Commit 631b25d

Browse files
committed
add task solution
1 parent 2ba2611 commit 631b25d

File tree

2 files changed

+71
-38
lines changed

2 files changed

+71
-38
lines changed

src/index.html

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,49 @@
1515
rel="stylesheet"
1616
href="./style.css"
1717
/>
18-
<link rel="preconnect" href="https://fonts.googleapis.com">
19-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
20-
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
18+
<link
19+
rel="preconnect"
20+
href="https://fonts.googleapis.com"
21+
/>
22+
<link
23+
rel="preconnect"
24+
href="https://fonts.gstatic.com"
25+
crossorigin="anonymous"
26+
/>
27+
<link
28+
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
29+
rel="stylesheet"
30+
/>
2131
</head>
2232
<body>
2333
<header class="header">
24-
<a href="http://127.0.0.1:5500/src/index.html"><img class="img" src="images/logo.png" alt="logo"></a>
34+
<a href="http://127.0.0.1:5500/src/index.html">
35+
<img
36+
class="img"
37+
src="images/logo.png"
38+
alt="logo"
39+
/>
40+
</a>
2541
<nav class="nav">
2642
<ul>
27-
<li><a class="is-active" href="#">apple</a></li>
43+
<li>
44+
<a
45+
class="is-active"
46+
href="#"
47+
>
48+
apple
49+
</a>
50+
</li>
2851
<li><a href="#">samsung</a></li>
2952
<li><a href="#">smartphones</a></li>
30-
<li><a data-qa="hover" href="#">laptops & computers</a></li>
53+
<li>
54+
<a
55+
data-qa="hover"
56+
href="#"
57+
>
58+
laptops & computers
59+
</a>
60+
</li>
3161
<li><a href="#">gadgets</a></li>
3262
<li><a href="#">tables</a></li>
3363
<li><a href="#">photo</a></li>

src/style.css

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
body {
22
margin: 0;
3-
font-family: "Roboto", sans-serif;
4-
font-weight: 400;
3+
font-family: Roboto, sans-serif;
4+
font-weight: 700;
55
font-style: normal;
66
}
77

@@ -11,47 +11,50 @@ body {
1111
background-color: fff;
1212
justify-content: space-between;
1313

14-
.img {
15-
display: block;
16-
margin-left: 50px;
17-
margin-top: 10px;
18-
margin-bottom: 10px;
19-
}
20-
.nav {
21-
margin-right: 50px;
22-
display: flex;
23-
align-items: center;
24-
justify-content: center;
25-
}
26-
a {
27-
text-decoration: none;
28-
color: black;
29-
}
30-
31-
ul {
32-
display: flex;
33-
font-size: 12px;
34-
list-style: none;
35-
text-transform: uppercase;
14+
.img {
15+
display: block;
16+
margin-left: 50px;
17+
margin-top: 10px;
18+
margin-bottom: 10px;
19+
}
20+
.nav {
21+
margin-right: 50px;
22+
display: flex;
23+
align-items: center;
24+
justify-content: center;
25+
}
26+
a {
27+
text-decoration: none;
28+
color: black;
29+
}
3630

31+
ul {
32+
display: flex;
33+
font-size: 12px;
34+
list-style: none;
35+
text-transform: uppercase;
36+
font-weight: bold;
37+
}
38+
li:not(:last-child) {
39+
margin-right: 20px;
40+
}
3741
}
38-
li:not(:last-child) {
39-
margin-right: 20px;
40-
}
41-
}
42+
4243
.blue {
43-
color: #00ACDC;
44+
color: #00acdc;
4445
}
4546

4647
a:hover {
47-
color: #00ACDC;
48+
color: #00acdc;
4849
}
50+
4951
.is-active {
50-
color: #00ACDC;
52+
color: #00acdc;
5153
position: relative;
5254
}
55+
5356
.is-active::after {
54-
content: "";
57+
content: '';
5558
position: absolute;
5659
left: 0;
5760
bottom: -22.5px;

0 commit comments

Comments
 (0)