Skip to content

add task solution#4445

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

add task solution#4445
galina-palyukh wants to merge 2 commits into
mate-academy:masterfrom
galina-palyukh:develop

Conversation

@galina-palyukh
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

Your implementation successfully meets all core task requirements: App.jsx is properly decomposed into Welcome, Header, Article, and Navigation components with their own folders and CSS files, all components use export default, and the component structure is correctly implemented. The stylelint error in Header.css (missing empty line before at-rule on line 21) and the missing .article__title CSS class are style/cosmetic issues that don't affect functionality. Similarly, the leftover template comments and excessive blank lines mentioned in the review are code cleanliness issues. Since the core decomposition requirements are met and there are no critical blockers that prevent task completion or break functionality, these issues should be addressed as you continue improving your code quality. Run npx stylelint 'src/**/*.scss' --fix to automatically fix the CSS formatting issue.


✨ 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

left: 0;
right: 0;
transition: opacity 0.2s ease-in-out;
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 class .article__title is used in Article.jsx (line 11) but no corresponding style exists in Article.css. Consider adding .article__title styles to match the BEM naming convention used in the rest of the CSS file.

Comment thread src/App.jsx
Comment on lines 1 to 6
import React from 'react';
import './App.css';
// Move each BEM block to a separate component (file) and import them here
import Welcome from './components/Welcome/Welcome';
import Header from './components/Header/Header';
import Article from './components/Article/Article';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1 - Don't overuse empty lines between components. There are excessive blank lines (lines 2, 4) between the comments and the actual code that should be removed.

Comment thread src/App.jsx
Comment on lines 1 to +5
import React from 'react';
import './App.css';
// Move each BEM block to a separate component (file) and import them here
import Welcome from './components/Welcome/Welcome';
import Header from './components/Header/Header';
import Article from './components/Article/Article';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove these placeholder comments - they are no longer needed now that the component is implemented.

Comment thread src/components/Article/Article.css Outdated
Comment on lines +1 to +5
/* Put article styles here */

.article {
margin: 5em auto 0;
padding: 1em;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These are leftover instruction comments from the template. The actual implementation is already done below, so these comments should be removed.

Comment thread src/components/Welcome/Welcome.css Outdated
Comment on lines +1 to +5
/* Put welcome styles here */
.welcome {
height: 100vh;
background: coral;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These are leftover instruction comments from the template that should be removed since the implementation is already complete below.

Comment on lines +1 to +5
import './Navigation.css';

function Navigation() {
return (
<nav className="navigation">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These are leftover instruction comments from the template. The actual implementation is already done below, so these comments should be removed.

Comment on lines +1 to +5
.navigation__link {
display: inline-block;
outline: none;
text-decoration: none;
opacity: 0.7;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

These are leftover instruction comments from the template. The actual implementation starts at line 6, so these comments should be removed.

Comment thread src/components/Welcome/Welcome.jsx Outdated
// Create a Welcome function returning the HTML of welcome block

// Add a default export statement for Welcome component to use it in the other files

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1 - Don't overuse empty lines between components. Remove this extra blank line after the template comments.

// Add a default export statement for Welcome component to use it in the other files

import './Welcome.css';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1 - Don't overuse empty lines between components. Remove this extra blank line between the import and function declaration.

</section>
);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #1 - Don't overuse empty lines between components. Remove this extra blank line between the function and export statement.

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

Your implementation fully meets all task requirements. The App.jsx is properly decomposed into Welcome, Header, Article, and Navigation components, each in their own dedicated folder with corresponding CSS files. All components correctly use export default, and BEM naming conventions are consistently applied throughout (.article__paragraph, .article__title, .header__title, .navigation__link, etc.). The Navigation component is correctly imported and used within Header. Previous issues mentioned in earlier reviews (missing .article__title class and stylelint errors) have been resolved. Great work on the component decomposition!


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

Footnotes

  1. Rate AI review example

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