-
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
add moyo header #5858
base: master
Are you sure you want to change the base?
add moyo header #5858
Conversation
AleksandraFrangovska
commented
Dec 23, 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.
Thank you for your hard work on this project! 😊 While your code meets many of the requirements, there are a few critical issues that need to be addressed before we can approve the pull request:
-
CSS Reset: Using the universal selector
*
for resetting margins and paddings can impact performance. It's recommended to use more specific selectors to avoid potential issues. -
CSS Variable for Blue Color: The task specifies using a CSS variable for the blue color, but this hasn't been implemented. This is important for maintaining consistency and ease of updates.
-
Line Height: The line-height is set to an uneven fixed value of
14.06px
. Consider using a relative or unitless value for better scalability and consistency. -
Font Size: The font-size is set to
12px
for thehtml
element. Using relative units likeem
orrem
would improve responsiveness across different devices. -
Active Link Styling: The height for the
.is-active
class is set to8px
, which might not display as intended. Please review this to ensure it aligns with your design. -
Accessibility: The
alt
attribute for the logo image could be more descriptive, such as 'Moyo Company Logo', to improve accessibility. -
Navigation Links: The
href
attribute is set to#
, which is a placeholder. Consider replacing it with actual URLs or handling navigation with JavaScript if it's for a single-page application.
Please address these issues to ensure the code meets the task requirements and functions as intended. Keep up the great work, and I look forward to seeing the improvements! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review
button in the Reviewers tab.
<header class="header"> | ||
<div class="container"> | ||
<a | ||
href="#" |
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.
The 'href' attribute is set to '#', which is typically used as a placeholder. Consider replacing it with actual URLs or using JavaScript to handle navigation if this is intended for a single-page application.
class="logo" | ||
> | ||
<img | ||
src="images/logo.png" |
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.
The 'alt' attribute for the logo image is 'moyo-logo'. While this is functional, consider making it more descriptive to improve accessibility, such as 'Moyo Company Logo'.
src/style.css
Outdated
.is-active { | ||
position: relative; | ||
color: #00acdc; | ||
height: 8px; |
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.
The height property for the '.is-active' class is set to 8px, which seems incorrect as it might not display the element as intended. Consider reviewing this value to ensure it aligns with your design requirements.
src/style.css
Outdated
|
||
html { | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; |
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.
The font-size is set to 12px for the 'html' element. This might not be responsive across different devices. Consider using relative units like 'em' or 'rem' for better scalability.
src/style.css
Outdated
html { | ||
font-family: Roboto, sans-serif; | ||
font-size: 12px; | ||
line-height: 14.06px; |
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.
The line-height is set to a fixed value of 14.06px. Using a relative unit or a unitless value might provide better scalability and consistency across different font sizes.
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.
Review Summary
Great job on making significant improvements to your code! 🎉 Here are a few points to consider for future enhancements:
-
CSS Reset: Using the universal selector
*
for resetting box-sizing can impact performance. It's recommended to use more specific selectors to avoid potential issues. -
Navigation Links: The
href
attributes for the navigation links are placeholders (#
). If this is intended for a single-page application, consider handling navigation with JavaScript or replacing them with actual URLs. -
Accessibility: The
alt
attribute for the logo image contains an unnecessary single quote at the beginning and could be more descriptive. Consider changing it to something likeMoyo Company Logo
.
Your efforts are commendable, and the decision to approve is to help you move forward with your learning. Please review the comments to improve your code, and ensure that critical issues are addressed in future projects to avoid similar problems. Keep up the great work and continue learning from these experiences! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
> | ||
<img | ||
src="images/logo.png" | ||
alt="'Moyo Company 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.
The alt
attribute for the logo image contains an unnecessary single quote at the beginning and could be more descriptive. Consider changing it to something like Moyo Company Logo
.
src/index.html
Outdated
href="#" | ||
class="logo" | ||
> | ||
<img | ||
src="images/logo.png" | ||
alt="'Moyo Company Logo" | ||
/> | ||
</a> | ||
<nav class="nav"> | ||
<ul> | ||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link is-active apple" | ||
> | ||
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> | ||
</li> | ||
<li class="nav_item"> | ||
<a | ||
href="#" | ||
data-qa="hover" | ||
class="nav_link lc" | ||
> | ||
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="#" |
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.
The href
attributes for the navigation links are set to #
, which is a placeholder. Consider replacing them with actual URLs or handling navigation with JavaScript if it's for a single-page application.
* { | ||
box-sizing: border-box; | ||
} |
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.
Using the universal selector *
for resetting box-sizing can impact performance. Consider using more specific selectors to avoid potential issues.
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.
please, don't hesitate to ask for some help in the chat how to pass all tests
src/index.html
Outdated
<li class="nav_item"> | ||
<a | ||
href="#" | ||
class="nav_link is-active apple" |
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="nav_link is-active apple" | |
class="nav_link is-active" |
you don't need this class
src/index.html
Outdated
<a | ||
href="#" | ||
data-qa="hover" | ||
class="nav_link lc" |
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="nav_link lc" | |
class="nav_link" |
same here