-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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 #5850
base: master
Are you sure you want to change the base?
MOYO Header #5850
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.
Thank you for your hard work on this project! 😊 While your code meets many of the task requirements, there are a few critical issues that need to be addressed before we can approve the pull request:
-
CSS Variable for Blue Color: You need to define and use a CSS variable for the blue color instead of using
#00acdc
directly. This will enhance maintainability and consistency across your styles. -
Flex Gap Property: The task specifies using
margin
instead of thegap
property for flexbox indents. Please adjust the.header__container
and.nav__list
classes accordingly. -
HTML Formatting: Ensure your HTML follows the specified formatting guidelines, such as using 2 spaces for indentation.
-
Dynamic Active Link Styling: The
is-active
class should be applied dynamically to reflect the active state accurately. Ensure this is implemented correctly in your HTML. -
Navigation Links: The
href
attributes for navigation links are set to'#'
, which is not valid. Consider using meaningful URLs or handling the click events with JavaScript if these are placeholders.
Please address these issues to ensure your code fully complies with the task requirements. Once these changes are made, we can proceed with the approval. Keep up the great work, and don't hesitate to reach out if you have any questions! 🚀
✨ 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.
src/index.html
Outdated
<li class="nav__item"> | ||
<a | ||
class="nav__link is-active" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/index.html
Outdated
<li class="nav__item"> | ||
<a | ||
class="nav__link" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/index.html
Outdated
<li class="nav__item"> | ||
<a | ||
class="nav__link" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/index.html
Outdated
<a | ||
class="nav__link" | ||
data-qa="hover" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/index.html
Outdated
<li class="nav__item"> | ||
<a | ||
class="nav__link" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/index.html
Outdated
<li class="nav__item"> | ||
<a | ||
class="nav__link" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/index.html
Outdated
<li class="nav__item"> | ||
<a | ||
class="nav__link" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/index.html
Outdated
<li class="nav__item"> | ||
<a | ||
class="nav__link" | ||
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 for the navigation links is set to '#', which is not a valid URL. Consider using a more meaningful URL or a JavaScript function to handle the click event if these are placeholder links.
src/style.css
Outdated
.nav__link:nth-child(4) { | ||
color: #00acdc; | ||
} |
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 selector .nav__link:nth-child(4)
is used to style the fourth navigation link. This approach is fragile because it relies on the order of elements in the HTML. Consider using a more specific class or data attribute to target this element.
src/style.css
Outdated
a.is-active { | ||
position: relative; | ||
color: #00acdc; |
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 class is-active
is used to style active links. Ensure that this class is applied dynamically to the correct element in the HTML to reflect the active state accurately.
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 addressing several issues from the previous review! 🎉 While there are still a few critical points that need attention, your progress is commendable. Here are the key areas to focus on:
-
CSS Variable for Blue Color: You've defined a CSS variable
--header-color
for the blue color#00acdc
, which is great. However, ensure that this variable is used consistently throughout your code, replacing any direct use of#00acdc
. -
Flex Gap Property: The task specifies using
margin
instead of thegap
property for flexbox indents. Please adjust the.header__container
and.nav__list
classes to usemargin
for spacing. -
Dynamic Active Link Styling: The
is-active
class should be applied dynamically to reflect the active state accurately. Ensure this class is applied based on the current active page.
Your decision to approve this pull request is to help you move forward with your learning journey. Please review the comments to improve your code. Addressing these issues will enhance your code's functionality and maintainability. 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! ✨
<ul class="nav__list"> | ||
<li class="nav__item"> | ||
<a | ||
class="nav__link 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.
The is-active
class is applied statically to the 'Apple' link. Ensure this class is applied dynamically based on the current active page to reflect the active state accurately.
src/style.css
Outdated
justify-content: space-between; | ||
background-color: white; | ||
flex-wrap: wrap; | ||
gap: 60px; |
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 task specifies using margin
instead of the gap
property for flexbox indents. Please replace the gap
property with appropriate margin
settings.
src/style.css
Outdated
.nav__list { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 20px; |
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 task specifies using margin
instead of the gap
property for flexbox indents. Please replace the gap
property with appropriate margin
settings.
src/style.css
Outdated
} | ||
|
||
.nav__link:nth-child(4) { | ||
color: #00acdc; |
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.
Replace the direct use of #00acdc
with the CSS variable var(--header-color)
for consistency and maintainability.
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 ❗️