Skip to content

Well Done!#6232

Open
KOSTII177 wants to merge 3 commits into
mate-academy:masterfrom
KOSTII177:develop
Open

Well Done!#6232
KOSTII177 wants to merge 3 commits into
mate-academy:masterfrom
KOSTII177:develop

Conversation

@KOSTII177
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

The implementation has two critical blockers that must be fixed before approval. First, the 3-column responsive breakpoint uses min-width: 488px in both card.scss and index.html, which overlaps with the 2-column breakpoint at the same threshold—change the 3-column media query to use min-width: 768px to create proper non-overlapping ranges. Second, the CSS gap property applies values as row-gap column-gap (vertical then horizontal), but the current implementation in var.scss has $row-gap: 48px and $column-gap: 46px, resulting in gap: 46px 48px which reverses the required 48px horizontal and 46px vertical—swap these values so horizontal gap is 48px. Additionally, hardcoded color values #616070 and #060b35 in card.scss should be replaced with $secondary-accent and $main-accent variables for consistency.


✨ 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/styles/card.scss
Comment on lines +160 to +164

@media (min-width: 488px) and (max-width: 1023px) {
.catalog {
grid-template-columns: repeat(3, $card-width);
}
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 3-column breakpoint overlaps with the 2-column breakpoint. Since both use min-width: 488px, at 768px screen width, both media queries match and the 2-column rule (being later) takes precedence. Change min-width: 488px to min-width: 768px for the 3-column rule to create proper progression: 1 column → 2 columns (488px) → 3 columns (768px) → 4 columns (1024px).

Comment thread src/styles/card.scss
margin-bottom: 16px;
}

&__text {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Color #616070 is hardcoded here but $secondary-accent variable is already defined with this value. Use the variable for consistency.

Comment thread src/styles/card.scss
margin: 0;
}

&__suma {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Color #060b35 is hardcoded here but $main-accent variable is already defined with this value. Use the variable for consistency.

Comment thread src/styles/card.scss
display: grid;
justify-content: center;
align-items: start;
gap: $column-gap $row-gap;
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 CSS gap property syntax is gap: row-gap column-gap. Currently it's gap: $column-gap $row-gap which reverses the values. The horizontal gap (48px) should come first, then vertical gap (46px). Swap to gap: $row-gap $column-gap.

Comment thread src/index.html
Comment on lines +148 to +170

<section class="card">
<img
src="./images/imac.jpeg"
alt="monitor"
class="card__photo"
/>
<div class="card__main">
<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<p class="card__code">Product code: 195434</p>
</div>

<div class="card__container">
<div class="stars stars--4">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
<p class="card__reviews">Reviews: 5</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.

These media query ranges overlap. The second query (488px-767px for 2 columns) is completely overridden by the third query (488px-1023px for 3 columns) at widths >=768px. Consider restructuring: 1 column (max-width: 487px), 2 columns (min-width: 488px), 3 columns (min-width: 768px), 4 columns (min-width: 1024px) - removing the max-width conditions to create non-overlapping ranges.

Comment thread src/index.html
data-qa="card"
>
<img
src="./images/imac.jpeg"
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 color value is hardcoded as '#060b35' but the variable $main-accent is defined in var.scss and should be used instead for consistency.

Comment thread src/styles/index.scss
@import '/src/styles/header';
@import '/src/styles/card';
@import '/src/styles/stars';

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 gap values are swapped. According to requirements, horizontal gap should be 48px and vertical gap should be 46px, but $row-gap is 48px and $column-gap is 46px. In CSS grid, the gap property uses 'gap: row-gap column-gap', so $column-gap 46px is applied horizontally and $row-gap 48px is applied vertically.

Comment thread src/styles/header.scss
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 50px;
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 gap values are applied in reversed CSS order. The CSS gap: $column-gap $row-gap translates to row-gap column-gap (vertical then horizontal). Consider renaming variables for clarity: $row-gap for horizontal (48px) and $column-gap for vertical (46px), then apply as gap: $row-gap $column-gap.

Comment thread src/styles/stars.scss
Comment on lines +1 to +6
.stars {
display: flex;

&__star {
background-image: url('../images/star.svg');
background-position: center;
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 CSS gap property syntax is 'row-gap column-gap', but the current gap: $column-gap $row-gap applies 46px horizontally and 48px vertically (reversed). The requirement specifies 48px horizontal and 46px vertical. Either swap the variable names or use gap: $row-gap $column-gap.

Comment thread src/styles/var.scss
Comment on lines +1 to +6
$font-main: Roboto, sans-serif;
$main-accent: #060b35;
$secondary-accent: #616070;
$blue-accent: #00acdc;
$white-accent: #fff;
$bg-fon: #f3f3f3;
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 CSS gap property applies values as row-gap column-gap. Currently gap: $column-gap $row-gap outputs gap: 46px 48px, which means 46px vertical and 48px horizontal. This reverses the required values. Swap to gap: $row-gap $column-gap to get 48px horizontal and 46px vertical as specified.

Copy link
Copy Markdown

@brespect brespect left a comment

Choose a reason for hiding this comment

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

Well done!

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.

3 participants