add solution#4486
Conversation
ybriukhovetska
commented
Jul 6, 2026
- DEMO LINK
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am requesting changes because there is a critical functionality issue in your Header component that causes tests to fail and breaks a core requirement. The Cypress tests for Header/Header.spec.jsx expect the header to render navigation links with href="#about", href="#services", and href="#contact", each having the .navigation__link class, but those links are currently missing, so only 2 out of 6 header tests pass. This directly violates the task’s requirement that the header include the navigation menu and is a blocker for completing the assignment.
To fix this, update src/components/Header/Header.jsx so that inside the header you render a nav element (or equivalent) containing three anchor elements: one for About (href="#about"), one for Services (href="#services"), and one for Contact (href="#contact"), all with the navigation__link class the tests are looking for. For example, structure it like nav with <a href="#about" className="navigation__link">About</a> and similar links for services and contact, ensuring the class names and href values exactly match the test expectations. Once you add these links and re-run npm test, the header tests should pass.
Apart from this missing navigation in the header, your overall decomposition into Header, Article, Navigation, and Welcome components with separate SCSS files looks solid, and minor style issues (like extra blank lines in SCSS) are non-blocking. Addressing this header navigation issue will bring your solution fully in line with the requirements and allow the tests to succeed.
✨ 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
| font-size: 140%; | ||
| max-width: 800px; | ||
| background: white; | ||
| box-shadow: rgba(0, 0, 0, 0.05) 0 3px 15px; |
There was a problem hiding this comment.
This violates checklist item #1: Don't overuse empty lines between components. You currently have an extra blank line between the Welcome import and the App function; consider keeping component imports and the component definition more tightly grouped, similar to the provided GOOD EXAMPLE.
| @@ -0,0 +1,15 @@ | |||
| .navigation__link { | |||
| display: inline-block; | |||
There was a problem hiding this comment.
This can be seen as a minor violation of checklist item #1: Don't overuse empty lines between components. The extra blank line after the import separates it from the component declaration more than necessary; consider keeping imports and the component function more tightly grouped.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your solution is approved because it clearly meets the core functional and structural requirements of the task. You’ve correctly decomposed the app into Welcome, Header, Navigation, and Article React function components, each with their own SCSS file and default export, matching the BEM-based structure that was required. The header now renders a dedicated Navigation component with three links using href="#about", href="#services", and href="#contact" plus the navigation__link class, which is the key behavior the tests expect. You also satisfy the checklist items around component separation and avoiding excessive empty lines between components. The only remaining points are project-level: make sure all new files are added and committed to git [CHECKLIST ITEM #3], and verify that npm test passes locally. Overall, this is a solid implementation that aligns well with the task and demonstrates good component organization and styling separation.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨