-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
'commit' #580
base: master
Are you sure you want to change the base?
'commit' #580
Changes from 1 commit
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ node_modules | |
# Generated files | ||
backstop_data | ||
dist | ||
.cache |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,14 +1,56 @@ | ||||||||||||||||||||
<!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"> | ||||||||||||||||||||
<title>Moyo header</title> | ||||||||||||||||||||
<link rel="stylesheet" href="./style.css"> | ||||||||||||||||||||
</head> | ||||||||||||||||||||
<body> | ||||||||||||||||||||
<h1>Moyo header</h1> | ||||||||||||||||||||
</body> | ||||||||||||||||||||
<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"> | ||||||||||||||||||||
<title>Moyo header</title> | ||||||||||||||||||||
<link rel="stylesheet" href="./style.css"> | ||||||||||||||||||||
<link rel="preconnect" href="https://fonts.gstatic.com"> | ||||||||||||||||||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet"> | ||||||||||||||||||||
</head> | ||||||||||||||||||||
<body> | ||||||||||||||||||||
<header class="header"> | ||||||||||||||||||||
<a href="#" | ||||||||||||||||||||
class="header__logo" | ||||||||||||||||||||
> | ||||||||||||||||||||
<img src="images/logo.png" | ||||||||||||||||||||
alt="Moyo-logo" | ||||||||||||||||||||
> | ||||||||||||||||||||
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
|
||||||||||||||||||||
</a> | ||||||||||||||||||||
<nav class="nav"> | ||||||||||||||||||||
<ul class="nav__list"> | ||||||||||||||||||||
<li class="nav__link"> | ||||||||||||||||||||
<a href="#" class="nav__item is-active">Apple</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
<li class="nav__link"> | ||||||||||||||||||||
<a href="#" class="nav__item">Samsung</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
<li class="nav__link"> | ||||||||||||||||||||
<a href="#" class="nav__item">Смартфоны и телефоны</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
<li class="nav__link"> | ||||||||||||||||||||
<a href="#" | ||||||||||||||||||||
class="nav__item" | ||||||||||||||||||||
data-qa="hover" | ||||||||||||||||||||
> | ||||||||||||||||||||
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
|
||||||||||||||||||||
ноутбуки и компьютеры | ||||||||||||||||||||
</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
<li class="nav__link"> | ||||||||||||||||||||
<a href="#" class="nav__item">гаджеты</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
<li class="nav__link"><a href="#" class="nav__item">планшеты</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
<li class="nav__link"> | ||||||||||||||||||||
<a href="#" class="nav__item">фото</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
<li class="nav__link"> | ||||||||||||||||||||
<a href="#" class="nav__item">видео</a> | ||||||||||||||||||||
</li> | ||||||||||||||||||||
</ul> | ||||||||||||||||||||
</nav> | ||||||||||||||||||||
</header> | ||||||||||||||||||||
</body> | ||||||||||||||||||||
</html> |
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,80 @@ | ||||||||||||||||
* { | ||||||||||||||||
box-sizing: border-box; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
body { | ||||||||||||||||
margin: 0; | ||||||||||||||||
font-family: "Roboto", sans-serif; | ||||||||||||||||
font-weight: 500; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.header { | ||||||||||||||||
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); | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.header__logo { | ||||||||||||||||
width: 40px; | ||||||||||||||||
height: 40px; | ||||||||||||||||
align-self: center; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.nav__list { | ||||||||||||||||
display: flex; | ||||||||||||||||
justify-content: space-between; | ||||||||||||||||
margin: 0; | ||||||||||||||||
padding: 0; | ||||||||||||||||
flex-direction: row; | ||||||||||||||||
list-style: none; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.nav__link { | ||||||||||||||||
margin-right: 20px; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.nav__item { | ||||||||||||||||
position: relative; | ||||||||||||||||
display: flex; | ||||||||||||||||
height: 60px; | ||||||||||||||||
line-height: 60px; | ||||||||||||||||
white-space: nowrap; | ||||||||||||||||
font-family: Roboto, sans-serif; | ||||||||||||||||
font-weight: 500; | ||||||||||||||||
font-size: 12px; | ||||||||||||||||
text-decoration: none; | ||||||||||||||||
text-transform: uppercase; | ||||||||||||||||
color: #000; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.nav__item:hover { | ||||||||||||||||
color: #00acdc; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.nav__link:last-child, | ||||||||||||||||
.nav__link:last-child .nav__item { | ||||||||||||||||
margin-right: 0; | ||||||||||||||||
} | ||||||||||||||||
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
|
||||||||||||||||
|
||||||||||||||||
.nav__item:after { | ||||||||||||||||
content: ""; | ||||||||||||||||
position: absolute; | ||||||||||||||||
right: 0; | ||||||||||||||||
bottom: 0; | ||||||||||||||||
left: 0; | ||||||||||||||||
height: 4px; | ||||||||||||||||
background-color: #00acdc; | ||||||||||||||||
border-radius: 8px; | ||||||||||||||||
opacity: 0; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
.nav__item.is-active { | ||||||||||||||||
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.
Suggested change
Don't repeat yourself |
||||||||||||||||
|
||||||||||||||||
.nav__item.is-active:after { | ||||||||||||||||
opacity: 1; | ||||||||||||||||
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. why do you need this? |
||||||||||||||||
} |
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.