Skip to content

solution - #4499

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

solution#4499
mariana-zh wants to merge 2 commits into
mate-academy:masterfrom
mariana-zh:develop

Conversation

@mariana-zh

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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 decomposes App.js into the required components with proper folder structure and export default exports. However, there is a critical issue that must be fixed: the CSS is not properly split along with component decomposition. Header.css contains .article styles (lines 30-33) that belong in Article.css, and Article.css contains .header styles in a media query that belong in Header.css. The task requirement explicitly states to "split CSS code along with component decomposition," meaning each component's styles should reside in its own folder's CSS file. Move .header styles (and its media query block) from Article.css to Header.css and move .article styles from Header.css to Article.css. Additionally, remove excessive empty lines between code blocks in Header.css and Navigation.jsx as per CHECKLIST ITEM #1.


✨ 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/components/Article/Article.css Outdated
Comment on lines +21 to +26
@media (min-width: 500px) {
.header {
text-align: left;
display: flex;
justify-content: space-between;
}

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 .header selector at line 22 in this file (inside @media query) should be in Header.css, not Article.css. This media query block mixes header and article styles together.

Comment on lines +30 to +33
padding: 2em;
}
}

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 .article selector at line 31 in Header.css should be in Article.css, not Header.css. This appears to be the same misplaced styles that exist in both CSS files.

Comment on lines +30 to +33
</p>
<p className="article__paragraph">
Donec arcu elit, euismod vel lobortis eu, fringilla sit amet dolor.
congue, massa nec sagittis mollis, dui felis ultrices magna, tincidunt

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 .article class styles inside the media query should not be in Header.css - they belong in Article.css. This violates the requirement to split CSS along with component decomposition.

Comment on lines +21 to +26
font-size: inherit;
}

@media (min-width: 500px) {
.header {
text-align: left;

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 .header selector (and its properties) belongs to Header component, not Article. CSS should be split along with component decomposition - move these styles to Header.css.

Comment thread src/components/Header/Header.css Outdated
Comment on lines +30 to +33

.article {
margin: 3.5em auto 0;
padding: 2em;

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 .article selector (and its properties) belongs to Article component, not Header. CSS should be split along with component decomposition - move these styles to Article.css.

</nav>
);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Extra empty line violates checklist item #1 - don't overuse empty lines between components/code blocks.

About
</a>
<a className="navigation__link" href="#services">
Services

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Extra empty line violates checklist item #1 - don't overuse empty lines.

@@ -0,0 +1,19 @@
import './Navigation.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.

Extra empty line violates checklist item #1 - don't overuse empty lines.

return (
<nav className="navigation">
<a className="navigation__link" href="#about">
About

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Extra empty line violates checklist item #1 - don't overuse empty lines.

</a>
<a className="navigation__link" href="#contact">
Contact
</a>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Extra empty line violates checklist item #1 - don't overuse empty lines between code blocks.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

Your solution is approved. All core requirements are met: components are properly decomposed with each in its own folder, CSS is correctly split per component, and all components use export default. The excessive empty lines flagged in the review are style/whitespace issues that fall under cosmetic concerns rather than critical blockers—these should be addressed through automated linting tools rather than blocking approval. The implementation is functionally complete and ready for the next steps.


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

Footnotes

  1. Rate AI review example

Comment thread src/App.jsx
Comment on lines 2 to +3
import './App.css';
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.

CHECKLIST ITEM #1 violation: Excessive empty lines between code blocks. Lines 2-3 have double blank lines before .header. Reduce to single blank line.

Comment on lines +2 to +3

.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.

CHECKLIST ITEM #1 violation: Excessive empty lines. Lines 2-3 contain 2 empty lines after the comment - should be just 1. Remove the extra empty line to match the good example pattern.

Comment on lines +14 to +15
color: #333;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CHECKLIST ITEM #1 violation: Excessive empty lines. Lines 14-15 contain 2 empty lines between .header block and .header__title - should be just 1.

Comment on lines +22 to +23
.article {
margin: 3.5em auto 0;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CHECKLIST ITEM #1 violation: Excessive empty lines. Lines 22-23 contain 2 empty lines before the media query - should be just 1.

Comment on lines +30 to +31
margin: 3.5em auto;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CHECKLIST ITEM #1 violation: Excessive empty lines. Lines 30-31 contain 2 empty lines at end of file - should be just 1 or none.

@@ -1,5 +1,14 @@
// import a css file containig welcome styles
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.

CHECKLIST ITEM #1 violation: Line 3 has a blank line between import and function definition. Remove it per the good example pattern.

Comment on lines 1 to +2
// import a css file containig welcome styles
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.

CHECKLIST ITEM #1 violation: Lines 1-2 have 2 consecutive blank lines after comment. Use maximum 1 empty line.

Comment on lines +6 to +7
<section className="welcome">
<span className="welcome__text">Sticky Header!</span>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CHECKLIST ITEM #1 violation: Lines 6-7 have 2 consecutive blank lines between .welcome and .welcome__text. Use maximum 1 empty line.

@@ -1,5 +1,14 @@
// import a css file containig welcome styles
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.

CHECKLIST ITEM #1 violation: Line 3 has a blank line between import and function definition. Remove it per the good example pattern.

Comment on lines 11 to 12
// Create a Welcome function returning the HTML of welcome block

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

CHECKLIST ITEM #1 violation: Lines 11-12 have a blank line between function and export. Remove it per the good example pattern.

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