Skip to content

Split App into components and separate CSS blocks#4434

Open
GoatSpirit wants to merge 1 commit into
mate-academy:masterfrom
GoatSpirit:develop
Open

Split App into components and separate CSS blocks#4434
GoatSpirit wants to merge 1 commit into
mate-academy:masterfrom
GoatSpirit:develop

Conversation

@GoatSpirit
Copy link
Copy Markdown

No description provided.

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 component decomposition implementation meets all the core requirements: proper folder structure with all four components (Article, Header, Navigation, Welcome), correctly split CSS files alongside each component, and proper export default statements throughout. The implementation is functional and will work correctly. The placeholder comments you see (like // import a css file... or /* Put welcome styles here */) are template artifacts that should be cleaned up for production code, but they don't prevent the code from executing or tests from passing. If you want to improve code quality, you could remove these placeholder comments from: - Welcome.jsx (lines 1-5 with template instructions) - Navigation.jsx (lines 1-5 and line 6 with CSS comment) - Navigation.css (line 6 with /* Put welcome styles here */ comment - this appears to be a copy-paste from a template). However, since the core task requirements are met and functionality works, your solution is approved.


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

Footnotes

  1. Rate AI review example

font-size: 140%;
position: sticky;
top: 0;
left: 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.

Header.jsx imports Navigation component (line 8), but Navigation.jsx and Navigation.css files are missing from your submission. Create the src/components/Navigation/ folder with both files.

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.

Welcome.jsx contains placeholder template comments at lines 1-5 (// import a css file..., // Create a Welcome function..., // Add a default export...). These template comments should be removed as they indicate incomplete implementation.

outline: none;
text-decoration: none;
opacity: 0.7;
padding: 0 0.5em;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Line 6 contains a CSS comment /* Put welcome styles here */ inside the JSX file. CSS styles should only be in the separate Welcome.css file, not in the component file.

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

function Navigation() {
return (
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lines 1-5 contain placeholder comments ('// import a css file containig welcome styles', '// Create a Welcome function...', '// Add a default export...') that should be removed as they indicate incomplete implementation.


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.

Line 6 contains a CSS comment '/* Put welcome styles here */' that should be removed - the actual styles are already imported from Welcome.css.

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