-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 solution (header) #5393
add solution (header) #5393
Conversation
MaxOnRem
commented
Sep 20, 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.
Great job on the Pull Request! 🌟 While there are some minor issues like ensuring proper fallback fonts, avoiding the universal selector for performance, using descriptive class names, and maintaining consistent indentation, none of these are critical blockers. Keep these tips in mind to enhance your code quality for future tasks. Keep up the good work! 👍
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
src/index.html
Outdated
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link is-active" | ||
> | ||
apple | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
smartphones | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
data-qa="hover" | ||
> | ||
laptops & computers | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
gadgets | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
tablets | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
photo | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
video | ||
</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.
Indentation should be consistent throughout the file. Each level of nesting requires a 2-space offset. Make sure all child elements are indented relative to their parent elements.
src/index.html
Outdated
<a | ||
href="#" | ||
class="logo-link" | ||
> | ||
<img | ||
src="./images/logo.png" | ||
alt="MOYO" | ||
/> | ||
</a> | ||
<nav> | ||
<ul class="menu-list"> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link is-active" | ||
> | ||
apple | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
smartphones | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
data-qa="hover" | ||
> | ||
laptops & computers | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
gadgets | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
tablets | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
photo | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> |
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.
Class names should represent the meaning of the content, not the styles or tag names. For example, 'logo-link' is good, but 'item-link' could be more descriptive, like 'nav-link'.
src/index.html
Outdated
<a | ||
href="#" | ||
class="logo-link" | ||
> | ||
<img | ||
src="./images/logo.png" | ||
alt="MOYO" | ||
/> | ||
</a> | ||
<nav> | ||
<ul class="menu-list"> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link is-active" | ||
> | ||
apple | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
Samsung | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
smartphones | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
data-qa="hover" | ||
> | ||
laptops & computers | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
gadgets | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
tablets | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
photo | ||
</a> | ||
</li> | ||
<li class="list-item"> | ||
<a | ||
href="#" | ||
class="item-link" | ||
> | ||
video | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> |
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.
Avoid using spaces in the href
attribute of <a>
tags. If these links are placeholders, consider using #
without any additional spaces or characters.
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!