-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 #4908
base: master
Are you sure you want to change the base?
Moyo Header #4908
Conversation
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.
Good job, but pay attention to this comments.
src/index.html
Outdated
> | ||
<img | ||
src="./images/logo.png" | ||
alt="logo" |
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/style.css
Outdated
margin-right: 50px; | ||
} | ||
|
||
.logo img { |
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.
Let`s use classes instead of tags as selectors.
src/style.css
Outdated
} | ||
|
||
body { | ||
/* stylelint-disable-next-line font-family-name-quotes */ |
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.
Try to write the code so that it is not necessary to disable the linter.
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.
Nice job, but the HTML formatting needs some work.
src/index.html
Outdated
<li class="list_item"> | ||
<a href="#" class="nav_link">Samsung</a> | ||
</li> | ||
<li class="list_item"> | ||
<a href="#" class="nav_link">Smartphones</a> | ||
</li> | ||
<li class="list_item"> | ||
<a href="#" data-qa="hover" class="nav_link">Laptops & Computers</a> | ||
</li> | ||
<li class="list_item"> | ||
<a href="#" class="nav_link">Gadgets</a> | ||
</li> | ||
<li class="list_item"> | ||
<a href="#" class="nav_link">Tablets</a> | ||
</li> | ||
<li class="list_item"> | ||
<a href="#" class="nav_link">Photo</a> | ||
</li> |
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
<li class="list_item"> | ||
<a href="#" class="nav_link is-active">Apple</a> | ||
</li> |
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.
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.
Yes, I knew that only 2 attributes in a single line are allowed. But the Prettier reduces everything to one attribute in a line. That's why I changed my formatter's default settings. But okay. I'll fix it the way you wish
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.
Well done ⭐
DEMO LINK
TEST REPORT LINK
Header height is set in 1 place (for the links)
Content is vertically centered (for any header height)
CSS is used to show all letters in Uppercase (don't type them in HTML)
Logo is an image wrapped with a link
CSS Variable is used for a blue color
Pseudo-element is used for a blue line below the active link
Code follows all the Code Style Rules ❗️