Skip to content

add task solution#4433

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

add task solution#4433
aamaltseva-sqwosh wants to merge 1 commit into
mate-academy:masterfrom
aamaltseva-sqwosh:develop

Conversation

@aamaltseva-sqwosh
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. The App.jsx has been properly decomposed into separate components (Welcome, Header, Article, Navigation) with CSS split along component boundaries. All components are in their respective folders and use export default as required. While there are some excessive blank lines between JSX elements in files like Article.jsx, Navigation.jsx, and Welcome.jsx, these are minor code style issues that don't prevent task completion or break functionality. According to the decision criteria, whitespace and spacing issues are considered non-blockers. The submission is functional and meets the requirements—consider cleaning up the blank lines in your JSX for better code style in future work.


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

Footnotes

  1. Rate AI review example

@@ -1 +1,30 @@
/* Put article styles here */
.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.

Missing src/components/Header/Header.jsx file - the task requires using the existing Header folder and splitting CSS from components based on CSS blocks

@@ -1 +1,30 @@
/* Put article styles here */
.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.

Missing src/components/Navigation/Navigation.jsx and Navigation.css files - the task explicitly requires creating a Navigation folder and moving navigation there

@@ -1 +1,30 @@
/* Put article styles here */
.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.

Missing src/components/Welcome/Welcome.jsx and Welcome.css files - the task requires using the existing Welcome folder

@@ -1 +1,30 @@
/* Put article styles here */
.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.

Missing src/App.css - the task requires splitting CSS code too, and the original App.css contains base styles that should be handled appropriately


// Add a default export statement for Article component to use it in the other files
function Article() {
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.

Missing Navigation.jsx file - Header.jsx imports Navigation but this file doesn't exist in the provided code

import React from 'react';

// Create an Article function returning the HTML of article block
import './Article.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.

Missing Navigation.css file - referenced by the import in Navigation.jsx

import './Article.css';

// Add a default export statement for Article component to use it in the other files
function 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.

Missing Welcome.jsx and Welcome.css files - App.jsx imports Welcome but these files don't exist


// Add a default export statement for Article component to use it in the other files
function Article() {
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.

Missing Header.jsx file - the component is imported in App.jsx but the file wasn't provided

Comment on lines +8 to +12
<h2 className="article__title">Headline</h2>

<p className="article__paragraph">
In elementum lorem eget est euismod ornare...
</p>
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: excessive blank lines between JSX elements inside the article component

Comment on lines +13 to +14

<p className="article__paragraph">In ac nisi lacus. Fusce est dolor...</p>
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: excessive blank lines between JSX elements inside the article component

Comment on lines +15 to +17

<p className="article__paragraph">
Donec arcu elit, euismod vel lobortis eu...
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: excessive blank lines between JSX elements inside the article component

Comment on lines +18 to +22
</p>

<p className="article__paragraph">
Cras egestas tempor nibh, a fermentum lorem...
</p>
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: excessive blank lines between JSX elements inside the article component

Comment on lines +23 to +26

<p className="article__paragraph">
Pellentesque habitant morbi tristique senectus...
</p>
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: excessive blank lines between JSX elements inside the article component

import './Header.css';

// Add a default export statement for Header component to use it in the other files
import Navigation from '../Navigation/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.

Missing Welcome.jsx file - App.jsx imports this component but the JSX file doesn't exist in the Welcome folder

Comment on lines +10 to +12
<h1 className="header__title">Site Name</h1>

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

Checklist item #1 violation: excessive blank lines between components inside JSX

Comment on lines +10 to +17
<h1 className="header__title">Site Name</h1>

<Navigation />
</header>
);
}

export default Header;
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 blank lines between JSX elements inside nav

Comment on lines +8 to +12
<a className="navigation__link" href="#about">
About
</a>

<a className="navigation__link" href="#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.

This violates checklist item #1: excessive blank lines between JSX elements (lines 8, 13, 15, 18, 23 contain empty lines between <p> tags). Compare to GOOD example - components should be placed directly without multiple blank lines between them.

Comment on lines +2 to +16

import './Navigation.css';

function Navigation() {
return (
<nav className="navigation">
<a className="navigation__link" href="#about">
About
</a>

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

<a className="navigation__link" href="#contact">
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: excessive blank lines between JSX elements (lines 2, 4, 6, 11, 16 contain empty lines). The JSX children should flow directly after each other.

Comment on lines +2 to +22

import './Navigation.css';

function Navigation() {
return (
<nav className="navigation">
<a className="navigation__link" href="#about">
About
</a>

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

<a className="navigation__link" href="#contact">
Contact
</a>
</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.

This violates checklist item #1: excessive blank lines between JSX elements (lines 2, 4, 11, 15, 22 contain empty lines). Remove these blank lines to follow the GOOD example pattern.

Comment on lines +10 to +11
line-height: 1;
padding-top: calc(50vh - 20pt);
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: There's an unnecessary blank line between the h1 and Navigation component inside the header element

Comment on lines +10 to +14
line-height: 1;
padding-top: calc(50vh - 20pt);
display: block;
font-weight: 700;
}
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: Excessive blank line between link elements inside the nav

Comment on lines 2 to +8

// Create a Welcome function returning the HTML of welcome block
import './Welcome.css';

// Add a default export statement for Welcome component to use it in the other files
function Welcome() {
return (
<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: excessive empty lines between imports and component definition (lines 2, 4)

Comment on lines +10 to +12
);
}

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 line between h1 and Navigation inside header JSX

Comment on lines 2 to +8

// Create a Welcome function returning the HTML of welcome block
import './Welcome.css';

// Add a default export statement for Welcome component to use it in the other files
function Welcome() {
return (
<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: excessive empty lines between imports and component definition (lines 2, 4)

Comment on lines 2 to +10

// Create a Welcome function returning the HTML of welcome block
import './Welcome.css';

// Add a default export statement for Welcome component to use it in the other files
function Welcome() {
return (
<section className="welcome">
<span className="welcome__text">Sticky Header!</span>
</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.

Checklist item #1 violation: excessive empty lines between imports and component definition (lines 2, 4)

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