Skip to content

add task solution#7489

Open
Skay9n wants to merge 2 commits intomate-academy:masterfrom
Skay9n:develop
Open

add task solution#7489
Skay9n wants to merge 2 commits intomate-academy:masterfrom
Skay9n:develop

Conversation

@Skay9n
Copy link

@Skay9n Skay9n commented Jan 31, 2026

Copy link

@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

Great job on the overall HTML structure and the use of flexbox for the layout! The semantic tags are used correctly.

However, a few changes are needed to meet all the project's requirements. Here are the key issues to address:

  • The header is not full-width because of the horizontal margin applied to it. The requirement is for the header element itself to span the entire page width, with spacing applied to the content inside it.
  • Several styles are applied using tag selectors (header, img, li), which is against the project's coding standards. Please add classes to these elements and use class selectors for styling instead.
  • The blue color (#00acdc) is hardcoded. This color should be defined as a CSS variable in the :root and used throughout the stylesheet. [CHECKLIST ITEM #5]

Once these points are addressed, your solution will be ready for approval. Keep up the great work!


✨ 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

src/index.html Outdated
Comment on lines 34 to 98
<li>
<a
href="/"
class="nav__link is-active"
>
Apple
</a>
</li>
<li>
<a
href="/"
class="nav__link"
>
Samsung
</a>
</li>
<li>
<a
href="/"
class="nav__link"
>
Smartphones
</a>
</li>
<li>
<a
href="/"
class="nav__link"
data-qa="hover"
>
Laptops & Computers
</a>
</li>
<li>
<a
href="/"
class="nav__link"
>
Gadgets
</a>
</li>
<li>
<a
href="/"
class="nav__link"
>
Tablets
</a>
</li>
<li>
<a
href="/"
class="nav__link"
>
Photo
</a>
</li>
<li>
<a
href="/"
class="nav__link"
>
Video
</a>
</li>

Choose a reason for hiding this comment

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

To fully adhere to the project's CSS code style guidelines, which prohibit styling by tag name, consider adding a class to each <li> element (e.g., class="nav__item"). This will enable you to style the list items in your CSS file without using the li tag selector.

src/style.css Outdated
margin: 0;
}

header {

Choose a reason for hiding this comment

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

According to the task requirements, you should not use tag names for styling (except for html and body). Please add a class to the <header> element in your HTML and use that class for styling.

src/style.css Outdated
font-weight: 500;
display: flex;
justify-content: space-between;
margin: 0 50px;

Choose a reason for hiding this comment

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

The requirement states, 'the header should stretch the full page width (don't use a horizontal margin)'. Applying a horizontal margin here violates this. This rule, combined with width: 100%, also causes a horizontal scrollbar. The content inside the header should be spaced from the edges, not the header element itself.

src/style.css Outdated
width: 100%;
}

img {

Choose a reason for hiding this comment

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

Styling elements with tag selectors is not allowed as per the project guidelines. This img selector is too generic and will affect all images on the page. Please add a specific class to the logo image for styling.

src/style.css Outdated
color: black;
}

.nav__list li:not(:last-child) {

Choose a reason for hiding this comment

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

Using the li tag selector is against the project's coding standards. You should add a class to the list items (e.g., .nav__item) in your HTML and use that class to apply styles for the margin.

src/style.css Outdated
}

.nav__link:hover {
color: #00acdc;

Choose a reason for hiding this comment

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

This violates checklist item #5: 'CSS Variable is used for a blue color'. The color #00acdc is hardcoded. Please define a CSS variable for this color (e.g., in a :root selector) and use it here and in other rules where this color is needed.

Copy link

@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

Excellent work on this update! You've successfully addressed all the feedback from the previous review, and the solution is now in great shape. Your code is clean, well-structured, and meets all project requirements, from the full-width flexbox header to the correct use of CSS variables. I am approving your submission. Great job!


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

Footnotes

  1. Rate AI review example

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