-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add task solution #4451
base: master
Are you sure you want to change the base?
add task solution #4451
Changes from 1 commit
e19f512
d5a12c8
48b44dc
dfc0436
77df4bf
9886dd3
21bff60
c9d610c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,14 +1,61 @@ | ||||||||||||||||
<!doctype html> | ||||||||||||||||
<!DOCTYPE html> | ||||||||||||||||
<html lang="en"> | ||||||||||||||||
<head> | ||||||||||||||||
<meta charset="UTF-8"> | ||||||||||||||||
<meta name="viewport" | ||||||||||||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||||||||||||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||||||||||||||||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||||||||||||||||
<meta http-equiv="X-UA-Compatible" | ||||||||||||||||
content="ie=edge"> | ||||||||||||||||
<title>Moyo header</title> | ||||||||||||||||
<link rel="stylesheet" href="./style.css"> | ||||||||||||||||
<link rel="stylesheet" | ||||||||||||||||
href="./style.css"> | ||||||||||||||||
<link rel="preconnect" | ||||||||||||||||
href="https://fonts.googleapis.com/"> | ||||||||||||||||
<link rel="preconnect" | ||||||||||||||||
href="https://fonts.gstatic.com/" | ||||||||||||||||
crossorigin="true"> | ||||||||||||||||
<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"> | ||||||||||||||||
</head> | ||||||||||||||||
|
||||||||||||||||
<body> | ||||||||||||||||
<h1>Moyo header</h1> | ||||||||||||||||
<header class="header"> | ||||||||||||||||
<a href="#" class="logo"> | ||||||||||||||||
<img src="./images/logo.png" alt="Moyo logo" | ||||||||||||||||
class="logo__image"> | ||||||||||||||||
</a> | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same as above, check and fix it everywhere
Suggested change
|
||||||||||||||||
|
||||||||||||||||
<nav class="nav"> | ||||||||||||||||
<ul class="nav__list"> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link is-active">Apple</a> | ||||||||||||||||
</li> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link">Samsung</a> | ||||||||||||||||
</li> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link">Smartphones</a> | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the blank line between the links
Suggested change
|
||||||||||||||||
</li> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link" | ||||||||||||||||
data-qa="hover"> | ||||||||||||||||
Laptops & computers | ||||||||||||||||
</a> | ||||||||||||||||
</li> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link">Gadgets</a> | ||||||||||||||||
</li> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link">Tablets</a> | ||||||||||||||||
</li> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link">Photo</a> | ||||||||||||||||
</li> | ||||||||||||||||
<li class="nav__item"> | ||||||||||||||||
<a href="#" class="nav__link">Video</a> | ||||||||||||||||
</li> | ||||||||||||||||
</ul> | ||||||||||||||||
</nav> | ||||||||||||||||
</header> | ||||||||||||||||
</body> | ||||||||||||||||
</html> |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,3 +1,72 @@ | ||||||
body { | ||||||
margin: 0; | ||||||
} | ||||||
|
||||||
.header { | ||||||
font-family: Roboto, sans-serif; | ||||||
display: flex; | ||||||
justify-content: space-between; | ||||||
align-items: center; | ||||||
padding: 0 50px; | ||||||
background: #fff; | ||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); | ||||||
} | ||||||
|
||||||
.logo { | ||||||
display: block; | ||||||
height: 40px; | ||||||
width: 40px; | ||||||
} | ||||||
|
||||||
.logo__image { | ||||||
height: 100%; | ||||||
width: 100%; | ||||||
} | ||||||
|
||||||
.nav__list { | ||||||
display: flex; | ||||||
padding: 0; | ||||||
margin: 0; | ||||||
list-style: none; | ||||||
} | ||||||
|
||||||
.nav__item { | ||||||
margin-left: 20px; | ||||||
} | ||||||
|
||||||
.nav__item:first-child { | ||||||
margin-left: 0; | ||||||
} | ||||||
|
||||||
.nav__link { | ||||||
position: relative; | ||||||
display: flex; | ||||||
align-items: center; | ||||||
height: 60px; | ||||||
font-size: 12px; | ||||||
font-weight: 500; | ||||||
white-space: nowrap; | ||||||
text-decoration: none; | ||||||
text-transform: uppercase; | ||||||
color: #000; | ||||||
transition: color 0.3s; | ||||||
} | ||||||
|
||||||
.nav__link:hover { | ||||||
color: #00acdc; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Create the variable for repeated color and use it everywhere |
||||||
} | ||||||
|
||||||
.nav__link.is-active { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
color: #00acdc; | ||||||
} | ||||||
|
||||||
.nav__link.is-active::after { | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
content: ""; | ||||||
position: absolute; | ||||||
bottom: 0; | ||||||
left: 0; | ||||||
right: 0; | ||||||
height: 4px; | ||||||
border-radius: 2px; | ||||||
background-color: #00acdc; | ||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix code style everywhere