Skip to content

add task solution#4442

Open
OksanaSht wants to merge 2 commits into
mate-academy:masterfrom
OksanaSht:develop
Open

add task solution#4442
OksanaSht wants to merge 2 commits into
mate-academy:masterfrom
OksanaSht:develop

Conversation

@OksanaSht
Copy link
Copy Markdown

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

The implementation is missing the Navigation component extraction, which is a critical requirement. Multiple reviewers explicitly point out that the <nav className="navigation"> element (lines 8-14 in Header.jsx) and its associated .navigation__link CSS styles (lines 25-42 in Header.css) should be moved to a separate src/components/Navigation/ folder with Navigation.jsx and Navigation.css files. The task requires decomposing App.js based on CSS blocks, and since there's a distinct .navigation__link BEM block in the CSS, it qualifies as a separate component. Please create src/components/Navigation/Navigation.jsx containing the nav element and src/components/Navigation/Navigation.css with the navigation styles, then update Header.jsx to import and render the Navigation component.


✨ 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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread src/App.css
Comment on lines 11 to 15
font-size: 10pt;
line-height: 1.4;
font-weight: 400;
font-family: "Source Sans Pro", "Open Sans", Roboto, Arial, sans-serif;
line-height: 1.4;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The <nav className="navigation"> block with navigation links should be extracted into a separate Navigation component in src/components/Navigation/Navigation.jsx, and Header.jsx should render this component instead.

Comment on lines +8 to +14
pellentesque mauris. Aliquam quis malesuada ex. Nullam eu aliquam lorem,
vitae feugiat sem magna eget massa. Vivamus quis tincidunt dolor. Fusce
efficitur, orci non vestibulum consequat, lectus turpis bibendum odio, in
efficitur leo felis sed justo. Fusce commodo iaculis orci, quis imperdiet
urna. Sed mollis facilisis lacus non condimentum. Nunc efficitur massa non
neque elementum semper. Vestibulum lorem arcu, tincidunt in quam et,
feugiat venenatis augue. Donec sed tincidunt tellus, a facilisis magna.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Navigation component is not extracted into its own folder. The task description allows creating a Navigation folder, but the <nav className="navigation"> element (lines 8-14) remains inside Header.jsx. Move this to src/components/Navigation/Navigation.jsx and update Header.jsx to import and use it.

Comment on lines +7 to +16
display: block;

margin: 0;
padding-top: calc(50vh - 20pt);

font-size: 400%;
font-weight: 700;
line-height: 1;
text-align: center;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The <nav className="navigation"> element (lines 7-16) should be moved to src/components/Navigation/Navigation.jsx and imported into Header.jsx, rather than being inline in the Header component.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

All components have been properly decomposed from App.js based on CSS BEM blocks: Welcome, Header, Navigation, and Article. Each component is in its own folder with a corresponding CSS file, and all components use export default as required by tests. The Navigation component is correctly extracted with its <nav className="navigation"> element in Navigation.jsx and .navigation__link styles in Navigation.css. The Header.jsx properly imports and renders the Navigation component. The project structure follows all checklist requirements and the implementation is complete.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

Comment on lines +1 to +6
.article {
max-width: 800px;
margin: 5em auto 0;
padding: 1em;

font-size: 140%;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing src/components/Header/Header.jsx file. The Header component should import and render the Navigation component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants