-
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
Moyo-Header(add task solution) #4911
base: master
Are you sure you want to change the base?
Conversation
gorbachovam00
commented
Apr 30, 2024
- DEMO LINK
- TEST REPORT LINK
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.
src/index.html
Outdated
<div class="container"> | ||
<div class="header__container"> |
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.
These divs are redundant, so you need to remove it
<div class="container"> | |
<div class="header__container"> |
src/index.html
Outdated
<nav class="header__nav"> | ||
<ul class="header__menu"> | ||
<li class="menu-item"> |
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.
Fix class everywhere
<nav class="header__nav"> | |
<ul class="header__menu"> | |
<li class="menu-item"> | |
<nav class="nav"> | |
<ul class="nav__list"> | |
<li class="nav__item"> |
src/index.html
Outdated
<li class="menu-item"> | ||
<a | ||
href="#" | ||
class="link link-1 is-active" |
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.
Fix class everywhere
class="link link-1 is-active" | |
class="nav__link is-active" |
src/index.html
Outdated
</li> | ||
<li class="menu-item"> |
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.
Add a blank line between the links
</li> | |
<li class="menu-item"> | |
</li> | |
<li class="menu-item"> |
src/index.html
Outdated
<!-- <!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>Document</title> | ||
</head> | ||
<body></body> | ||
</html> --> |
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.
Remove comments
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
font-weight: 500; | ||
line-height: 1.2; |
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.
Move these styles to the html selector
src/style.css
Outdated
/* .container { | ||
margin: 0 auto; | ||
} */ | ||
|
||
/* .header__container { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 10px 50px; | ||
} |
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.
Remove comments everywhere
src/style.css
Outdated
display: block; | ||
position: absolute; | ||
content: ''; | ||
width: 37px; |
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.
width: 37px; | |
width: 100%; |
src/style.css
Outdated
height: 4px; | ||
background-color: var(--color-header); | ||
border-radius: 8px; | ||
top: 56px; |
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.
top: 56px; | |
bottom: 0; |
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.
Great work!
src/style.css
Outdated
margin: 0; | ||
} | ||
|
||
ul li:not(:last-child) { |
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.
ul li:not(:last-child) { | |
.nav__item:not(:last-child) { |
text-decoration: none; | ||
color: var(--color-text); | ||
text-transform: uppercase; | ||
overflow-x: hidden; |
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.
overflow-x: hidden; |