Skip to content

complit luyot catalog#6225

Open
142536Def wants to merge 1 commit into
mate-academy:masterfrom
142536Def:develop
Open

complit luyot catalog#6225
142536Def wants to merge 1 commit into
mate-academy:masterfrom
142536Def:develop

Conversation

@142536Def
Copy link
Copy Markdown

  • DEMO LINK
  • TEST REPORT LINK
  • [x]All components follow BEM and use SCSS
  • Repeated sizes and special colors are put to variables
  • Grid is used for the columns
  • Cards are shown in 1, 2, 3, or 4 columns based on screen resolution
  • All changes on :hover are smooth
  • [x]Code follows all the Code Style Rules ❗️

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 requires changes before approval. Critical issue: The card's transform: scale(1.2) on :hover lacks a transition property, making the 20% scale-up instant instead of smooth 300ms as explicitly required. Add transition: transform 0.3s ease; to the .card base rule in src/styles/_card.scss. Medium issue: Cards 2-8 still contain data-qa="hover" attributes that should be removed per the 'remove old data-qa attributes' requirement. Minor issue: The .is-active class should be BEM-scoped under .nav (e.g., .nav__link.is-active) rather than standalone to follow BEM conventions. The catalog padding at 1024px (changing to 50px instead of 40px) should also be corrected per the specification. These issues prevent the code from fully meeting the task 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
Comment on lines +9 to +11

&:hover {
transform: scale(1.2);
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 card's transform: scale(1.2) effect lacks an explicit transition property. The requirement states all changes on :hover should be smooth during 300ms. Currently the scale effect will be instant. Add transition: transform 0.3s ease; (or include transform in a general transition property) to the .card rule.

Comment thread src/index.html
<a
href="#"
class="card__button"
data-qa="hover"
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 data-qa="hover" attributes should be removed per the requirement to 'remove old data-qa attributes'. Only the first card's Buy button needs data-qa="card-hover".

Comment thread src/index.html
<a
href="#"
class="card__button"
data-qa="hover"
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 data-qa="hover" attributes should be removed per the requirement to 'remove old data-qa attributes'.

Comment thread src/index.html
<a
href="#"
class="card__button"
data-qa="hover"
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 data-qa="hover" attributes should be removed per the requirement to 'remove old data-qa attributes'.

Comment thread src/index.html
<a
href="#"
class="card__button"
data-qa="hover"
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 data-qa="hover" attributes should be removed per the requirement to 'remove old data-qa attributes'.

Comment thread src/index.html
<a
href="#"
class="card__button"
data-qa="hover"
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 data-qa="hover" attributes should be removed per the requirement to 'remove old data-qa attributes'.

Comment thread src/index.html
<a
href="#"
class="card__button"
data-qa="hover"
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 data-qa="hover" attributes should be removed per the requirement to 'remove old data-qa attributes'.

Comment thread src/index.html
Comment on lines +40 to +54
class="nav__link is-active"
>
Apple
</a>
</li>
<li class="nav__item">
<a
href="#"
class="nav__link"
>
Samsung
</a>
</li>
<li class="nav__item">
<a
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

According to BEM methodology, .is-active should be scoped under a BEM block (e.g., .nav__link.is-active or nested inside .nav). Currently it's defined outside any block.

Comment thread src/styles/_stars.scss
Comment on lines +16 to +19
margin-right: 0;
}

&--1 &__star:nth-child(-n + 1),
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 horizontal padding changes to 50px at 1024px, but the requirement specifies cards container should have fixed 40px horizontal padding. Remove the padding override from this media query or set it to 40px.

Comment thread src/styles/index.scss
Comment on lines +1 to +26
@import './variables';
@import './header';
@import './catalog';
@import './stars';
@import './card';

body {
margin: 0;
font-family: Roboto, sans-serif;
color: #333;
}

* {
padding: 0;
margin: 0;
box-sizing: border-box;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

/* Links */

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 card's scale transform effect (line 10-11 in _card.scss) lacks a transition property. The requirement states all changes on :hover should be smooth during 300ms. Add transition: transform 0.3s; to make the card scale-up smooth.

Copy link
Copy Markdown

@2pasha 2pasha left a comment

Choose a reason for hiding this comment

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

lgtm 🔥

I recommend to add some transition for hover effect

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