Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Excellent work on structuring the components into their own folders! The project organization is very clean.
This requires a couple of changes to fully meet the task requirements. The primary issue is with the CSS. While you've moved component styles into their own files, they also remain in the global src/App.css, creating duplication. To complete the task, please remove the component-specific styles (like those for .article) from App.css.
Additionally, please fix a small typo in src/components/Article/Article.jsx: the component is named Artice but should be Article to match the filename. Once these are addressed, your solution will be in great shape!
✨ 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
src/components/Article/Article.jsx
Outdated
| import './Article.css'; | ||
|
|
||
| // Create an Article function returning the HTML of article block | ||
| const Artice = () => ( |
There was a problem hiding this comment.
There's a typo in the component name. It should be Article to match the filename and the import statement in App.jsx. Consistent naming is important for code readability and maintainability.
| @media (min-width: 500px) { | ||
| .article { | ||
| margin: 3.5em auto 0; | ||
| padding: 2em; | ||
| } | ||
| } | ||
|
|
||
| @media (min-width: 800px) { | ||
| .article { | ||
| margin: 3.5em auto; | ||
| } | ||
| } |
There was a problem hiding this comment.
These styles for the .article component are also present in src/App.css. To properly split the CSS according to the task, component-specific styles should be moved to the component's CSS file and removed from the global stylesheet to avoid duplication and potential conflicts.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great job separating the CSS into component-specific files! The project structure is much cleaner and more modular now.
However, the one critical correction from the last review hasn't been addressed yet. This requires a change before I can approve it.
In src/components/Article/Article.jsx, the component is still named Artice. Please correct this typo to Article in both the function declaration and the export statement to match the filename. This is essential for code consistency and maintainability.
// In src/components/Article/Article.jsx
// Change this:
const Artice = () => { /* ... */ };
export default Artice;
// To this:
const Article = () => { /* ... */ };
export default Article;Once you've made that fix, the solution will be complete. You're very close!
✨ 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
src/components/Article/Article.jsx
Outdated
| import './Article.css'; | ||
|
|
||
| // Create an Article function returning the HTML of article block | ||
| const Artice = () => ( |
There was a problem hiding this comment.
The component name Artice has a typo. To maintain consistency and align with conventions, it should match the filename, Article.jsx.
src/components/Article/Article.jsx
Outdated
| ); | ||
|
|
||
| // Add a default export statement for Article component to use it in the other files | ||
| export default Artice; |
There was a problem hiding this comment.
The exported name Artice also needs to be corrected to Article to match the component name.
| import React from 'react'; | ||
| import './App.css'; | ||
| // Move each BEM block to a separate component (file) and import them here | ||
| import Article from './components/Article/Article'; |
There was a problem hiding this comment.
The component imported here from ./components/Article/Article.jsx has a typo in its name (Artice instead of Article). While you can rename it during import, it's best to fix the name in the component file itself to maintain consistency and clarity, as requested in the previous review.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Excellent work on this submission, your solution is approved! You've done a fantastic job addressing the feedback from the last review by correcting the Article component name. The project's structure is now exemplary, with well-decomposed components and their styles neatly separated into their own folders. Your code is clean, well-organized, and fully meets all the task requirements. Keep up the great work!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
No description provided.