Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create products catalog #4931

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

OlehYavoriv
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • 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

  • Code follows all the Code Style Rules ❗️

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.


Thank you for your hard work on this project! 😊 There are a few critical issues that need to be addressed before we can approve the pull request. These include inconsistencies in data-qa attributes, missing hover effects, and the need for smooth transitions. Additionally, ensure that all mixins and imported files are correctly defined and referenced to avoid compilation errors. Once these issues are resolved, your code will be in great shape! Keep up the great work! 🚀

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

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

</div>
<button
class="card__button"
data-qa="card-hover"

Choose a reason for hiding this comment

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

The data-qa attribute here is card-hover, while in other similar buttons it is just hover. For consistency, consider using the same data-qa attribute across all similar elements unless there is a specific reason for the difference.

src/index.html Outdated
</div>
<button
class="card__button"
data-qa="hover"

Choose a reason for hiding this comment

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

The data-qa attribute here is hover, which is inconsistent with the card-hover used in another button. Ensure consistency in data-qa attributes unless different identifiers are needed for testing purposes.

src/index.html Outdated
</div>
<button
class="card__button"
data-qa="hover"

Choose a reason for hiding this comment

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

The data-qa attribute here is hover, which is inconsistent with the card-hover used in another button. Ensure consistency in data-qa attributes unless different identifiers are needed for testing purposes.

src/index.html Outdated
</div>
<button
class="card__button"
data-qa="hover"

Choose a reason for hiding this comment

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

The data-qa attribute here is hover, which is inconsistent with the card-hover used in another button. Ensure consistency in data-qa attributes unless different identifiers are needed for testing purposes.

src/index.html Outdated
</div>
<button
class="card__button"
data-qa="hover"

Choose a reason for hiding this comment

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

The data-qa attribute here is hover, which is inconsistent with the card-hover used in another button. Ensure consistency in data-qa attributes unless different identifiers are needed for testing purposes.

}

&__price-label {
@include font($size: 12px, $line-height: 18px, $color: $secondary-color);

Choose a reason for hiding this comment

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

Verify that the mixin font is defined in your mixins file. If it's not defined, this will cause an error during SCSS compilation.

}

&__price-value {
@include font($size: 16px, $weight: 700, $line-height: 18px);

Choose a reason for hiding this comment

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

Verify that the mixin font is defined in your mixins file. If it's not defined, this will cause an error during SCSS compilation.

}

&__button {
@include font(14px, 700, 16px, $white-color);

Choose a reason for hiding this comment

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

Verify that the mixin font is defined in your mixins file. If it's not defined, this will cause an error during SCSS compilation.

}

.stars {
@include flex($direction: row, $items: center);

Choose a reason for hiding this comment

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

Ensure that the mixin flex is defined in your mixins file. If it's not defined, this will cause an error during SCSS compilation.

@include flex($direction: row, $items: center);

&__star {
@include set-size(16px, 16px);

Choose a reason for hiding this comment

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

Ensure that the mixin set-size is defined in your mixins file. If it's not defined, this will cause an error during SCSS compilation.

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.


Great job on your submission! 🎉 Your code meets most of the task requirements, and it's clear you've put in a lot of effort. Here are a few points to consider for improvement:

  1. Hover Effects and Transitions: Ensure that all hover effects have a smooth transition duration of 300ms as required. This will enhance the user experience.

  2. Data-qa Attributes: Make sure that data-qa attributes are consistently applied across all similar elements, such as buttons and navigation links, to avoid confusion in testing or automation scripts.

  3. SCSS Variables: It's good to see the use of variables for colors. Ensure that all repeated sizes and special colors are also consistently defined as variables for maintainability.

  4. Mixins and Imports: Verify that all mixins like flex, font, and set-size are correctly defined and that imported files are available to prevent compilation errors.

Your adherence to BEM methodology and SCSS is commendable. Keep up the great work, and make sure to address these points in future projects to enhance your skills further. Happy coding! 😊

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

<li class="nav__item">
<a
href="#Smartphones"
class="nav__link"

Choose a reason for hiding this comment

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

The data-qa attribute is missing for this navigation link. Ensure consistency by adding data-qa attributes to all similar elements if needed for testing or automation.

<li class="nav__item">
<a
href="#gadgets"
class="nav__link"

Choose a reason for hiding this comment

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

The data-qa attribute is missing for this navigation link. Ensure consistency by adding data-qa attributes to all similar elements if needed for testing or automation.

<li class="nav__item">
<a
href="#tablets"
class="nav__link"

Choose a reason for hiding this comment

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

The data-qa attribute is missing for this navigation link. Ensure consistency by adding data-qa attributes to all similar elements if needed for testing or automation.

<li class="nav__item">
<a
href="#photo"
class="nav__link"

Choose a reason for hiding this comment

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

The data-qa attribute is missing for this navigation link. Ensure consistency by adding data-qa attributes to all similar elements if needed for testing or automation.

<li class="nav__item">
<a
href="#video"
class="nav__link"

Choose a reason for hiding this comment

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

The data-qa attribute is missing for this navigation link. Ensure consistency by adding data-qa attributes to all similar elements if needed for testing or automation.

}

&__price-label {
@include font($size: 12px, $line-height: 18px, $color: $secondary-color);

Choose a reason for hiding this comment

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

Verify that the mixin 'font' is correctly defined in the imported mixins file. Incorrect or missing mixin definitions can cause compilation errors.

}

&__price-value {
@include font($size: 16px, $weight: 700, $line-height: 18px);

Choose a reason for hiding this comment

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

Verify that the mixin 'font' is correctly defined in the imported mixins file. Incorrect or missing mixin definitions can cause compilation errors.

}

&__button {
@include font(14px, 700, 16px, $white-color);

Choose a reason for hiding this comment

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

Verify that the mixin 'font' is correctly defined in the imported mixins file. Incorrect or missing mixin definitions can cause compilation errors.

}

.stars {
@include flex($direction: row, $items: center);

Choose a reason for hiding this comment

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

Verify that the mixin 'flex' is correctly defined in the imported mixins file. Incorrect or missing mixin definitions can cause compilation errors.

@include flex($direction: row, $items: center);

&__star {
@include set-size(16px, 16px);

Choose a reason for hiding this comment

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

Verify that the mixin 'set-size' is correctly defined in the imported mixins file. Incorrect or missing mixin definitions can cause compilation errors.

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