Skip to content

add layout-catalog#6241

Open
Vanders1989 wants to merge 2 commits into
mate-academy:masterfrom
Vanders1989:develop
Open

add layout-catalog#6241
Vanders1989 wants to merge 2 commits into
mate-academy:masterfrom
Vanders1989:develop

Conversation

@Vanders1989
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 has three critical blockers that prevent it from meeting the task requirements: 1. Class mismatch blocking grid layout: Your HTML uses class="cards" on the container, but _catalog.scss defines the responsive grid on .catalog class. This means the grid with media queries is never applied, and cards use flexbox instead. [CHECKLIST ITEM #3] 2. Missing card hover scale effect: The .card:hover rule with transform: scale(1.2) is completely absent from all SCSS files. The card must increase by 20% on hover as specified in the requirements. 3. Missing card title color change: The .card:hover .card__title rule with color: #34568b is completely missing. The title text must change color on hover. Medium priority issues: - Colors like #f3f3f3 and #fff should use variables from _variables.scss instead of hardcoded values - Transition time 300ms is hardcoded instead of using $transition-time variable. The core functionality (grid layout and hover effects) is not implemented. These are explicit requirements from the checklist, not minor style preferences. Once you fix the class mismatch and add the hover rules, the implementation should meet the requirements.


✨ 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
.cards__card:nth-last-child(-n + 4) {
margin-bottom: 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.

Missing transition property on .card - need to add transition: transform 0.3s; for smooth scale effect.

Comment thread src/styles/_card.scss Outdated
border: 1px solid #f3f3f3;
border-radius: 5px;
padding: 32px 16px 16px;
background: #fff;
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 .card:hover rule - need to add transform: scale(1.2); to increase card by 20 percent as required.

Comment thread src/styles/_card.scss Outdated
font-size: 12px;
line-height: 18px;
font-weight: 500;
color: var(--text-accent-color);
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 .card:hover .card__title rule - need to add color: $title-hover-color; (or #34568b) to change title text color on hover as required by the task.

Comment thread src/styles/_catalog.scss
Comment on lines +1 to +2
.catalog {
display: grid;
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 grid layout for cards - checklist item #3 requires using grid for columns. Currently using flexbox (display: flex; flex-wrap: wrap;) which doesn't match the requirement.

Comment thread src/styles/_catalog.scss
Comment on lines +1 to +3
.catalog {
display: grid;
grid-template-columns: repeat(1, $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.

CSS variables are defined in _header.scss but should be in _variables.scss per checklist item #2. Variables should be centralized.

Comment thread src/index.html
>
Photo
</a>
</li>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Use variable $transition-time instead of hardcoded value.

Comment thread src/index.html
</a>
</li>

<li class="nav__item">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Use variable $white-color instead of hardcoded #fff.

Comment thread src/index.html
href="#"
class="nav__link is-active"
>
Apple
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Add transition to card title: transition: color $transition-time; so the color change on hover is smooth.

Comment thread src/styles/main.scss
Comment on lines +1 to +3
@import './variables';
@import './header';
@import './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.

CSS variables are defined in html {} selector but should use SCSS variables from _variables.scss. Variables defined as CSS custom properties in html {} are not available to _catalog.scss which uses SCSS $variables.

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

.stars__star {
width: 16px;
height: 16px;
margin-right: 4px;
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 .cards selector uses flexbox but should be replaced with the .catalog grid layout. Either remove the flexbox rules from .cards or rename the HTML class to match the grid styles.

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.

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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 task requirements. The grid layout with responsive breakpoints, card hover effects, data-qa attributes, semantic HTML, BEM naming, and SCSS variables are all correctly implemented and functional.

One cleanup item to address: There's unused ".cards" block (lines 1-21) in _card.scss with flexbox layout that never gets applied—your HTML uses class="catalog" which pulls grid styles from _catalog.scss. This dead code creates confusion and should be removed to keep the codebase clean.

Once you remove that unused ".cards" block, the implementation will be complete and clean. Great work on getting all the core functionality working correctly!


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

Footnotes

  1. Rate AI review example

Comment thread src/styles/_card.scss
Comment on lines +1 to +21
.cards {
display: flex;
flex-wrap: wrap;

box-sizing: border-box;
width: 1024px;
margin: 0 auto;
padding: 50px 40px;

&__card {
margin-right: 48px;
margin-bottom: 46px;
}

&__card:nth-child(4n) {
margin-right: 0;
}

&__card:nth-last-child(-n + 4) {
margin-bottom: 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.

This .cards class is dead code - it's never used in the HTML (the container uses class="catalog"). Its flexbox layout rules conflict with the grid layout defined in _catalog.scss. Since checklist item #3 requires using grid for columns, and the .catalog class correctly implements grid, this .cards block should be removed to avoid confusion and code redundancy.

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