Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
This requires a few changes before it can be approved. You've made a good start on the header structure with flexbox, but there are several critical issues that cause the visual tests to fail and violate key project requirements.
Please focus on these areas:
- Header Height: The height is currently set on the
<header>. It must be removed from there and applied to the navigation links (.nav-link) instead, as per [CHECKLIST ITEM #1]. - CSS Variable: The blue color
#00acdcis hardcoded in several places. Please define it as a CSS variable in the:rootand use that variable for the link color and underline [CHECKLIST ITEM #5]. - Active Link Underline: The underline for the active link is positioned incorrectly. To fix this, you need to add
position: relative;to the.nav-link.is-activerule to create a positioning context for its::afterpseudo-element. - Navigation Margins: The current
marginrule adds unwanted space before the first link and after the last one. The spacing should only be between the items. A common way to achieve this is by applying amargin-leftto all list items except the first one.
Fixing these points will align your solution with the requirements and should resolve the build failures. Keep up the good effort!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great job implementing the CSS variables and fixing the active link's underline! However, some changes are needed because a few critical layout issues are causing the automated visual tests to fail.
Here’s what needs to be fixed:
- Incorrect Height Application: The
heightproperty on your.containerelement must be removed. The requirement is that the header's height should be controlled only by the height of the navigation links (.nav-link). [CHECKLIST ITEM #1] - Broken Vertical Centering: The
margin-bottomproperties on the.logoand.navelements are conflicting withalign-items: centeron the parent container. Please remove these margins to allow flexbox to correctly handle the vertical alignment. [CHECKLIST ITEM #2]
Fixing these two issues should resolve the visual discrepancies and allow the tests to pass. You're very close to completing this!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great job fixing the header height and vertical alignment from the last review! The layout is much closer to the target. I am approving this submission to help you move forward, but there are a couple of key adjustments needed to make it pixel-perfect.
First, the active link's underline is positioned relative to the entire header. To fix this, its parent link (.nav-link) needs position: relative; so the underline is positioned correctly beneath the text.
Second, the horizontal spacing should be handled by the .container. Instead of adding margins to individual navigation items, which violates one of the requirements, apply horizontal padding directly to the .container (e.g., padding: 0 50px;).
You're very close to a perfect solution. Keep up the great work!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
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 ❗️
The Google Fonts Configuration follows requirements.