Split App into components and separate CSS blocks#4434
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
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
| font-size: 140%; | ||
| position: sticky; | ||
| top: 0; | ||
| left: 0; |
There was a problem hiding this comment.
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.
| .navigation__link { | ||
| display: inline-block; | ||
| outline: none; | ||
| text-decoration: none; | ||
| opacity: 0.7; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
| import React from 'react'; | ||
| import './Navigation.css'; | ||
|
|
||
| function Navigation() { | ||
| return ( |
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
Line 6 contains a CSS comment '/* Put welcome styles here */' that should be removed - the actual styles are already imported from Welcome.css.
No description provided.