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 product card #5125

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

Conversation

anastat1on
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • there 2 BEM blocks card and stars each in their own file

  • SCSS Nesting is used for elements, modifiers and pseudo-classes

  • SCSS Variables are used for main values and placed in a separate file

  • all stars--N modifiers work as expected (Highlight first N stars)

  • 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.

Great job on your work! 🎉 The code is well-structured and meets most of the task requirements. Just a small note: make sure to correct the typo in the variable name from $main-font-weigh to $main-font-weight for consistency. Keep up the great work! 🚀

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

src/styles/index.scss Outdated Show resolved Hide resolved
src/styles/utils/variables.scss Outdated Show resolved Hide resolved
Copy link

@vadiimvooo vadiimvooo left a comment

Choose a reason for hiding this comment

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

Good job, there are a few comments to fix. Please feel free to ask for help in fe_chat.

data-qa="card"
>
<div class="card__content">
<div class="card__item-image"></div>

Choose a reason for hiding this comment

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

use image tag to show imac picture.

Copy link
Author

Choose a reason for hiding this comment

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

thank you so much for review and suggestions, will fix it :)

class="card"
data-qa="card"
>
<div class="card__content">

Choose a reason for hiding this comment

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

This tag is redundant here, please remove it.

>
<div class="card__content">
<div class="card__item-image"></div>
<div class="card__item">

Choose a reason for hiding this comment

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

Suggested change
<div class="card__item">

Choose a reason for hiding this comment

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

This tag is redundant here, please remove it.

class="card"
data-qa="card"
>
<div class="card__content">

Choose a reason for hiding this comment

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

Suggested change
<div class="card__content">

Comment on lines +27 to +30
<div class="card__item-name">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</div>
<div class="card__item-code">Product code: 195434</div>

Choose a reason for hiding this comment

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

use semantic tags for text. Please make it for everywhere.

Suggested change
<div class="card__item-name">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</div>
<div class="card__item-code">Product code: 195434</div>
<h3 class="card__item-name">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h3>
<pclass="card__item-code">Product code: 195434</p>

Comment on lines +54 to +59
<div
class="buy"
data-qa="hover"
>
<a class="buy__button">Buy</a>
</div>

Choose a reason for hiding this comment

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

Suggested change
<div
class="buy"
data-qa="hover"
>
<a class="buy__button">Buy</a>
</div>
<a class="buy__button">Buy</a>

Choose a reason for hiding this comment

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

Use a link without div cover tag

.card {
width: 200px;
height: 400px;
margin: 40px;

Choose a reason for hiding this comment

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

this margin is redundant here, please remove it

height: 400px;
margin: 40px;

padding: 32px 19px 16px;

Choose a reason for hiding this comment

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

Suggested change
padding: 32px 19px 16px;
padding: 32px 16px 16px;

Comment on lines +4 to +9
&-stars {
background-image: url(../images/star.svg);
background-repeat: no-repeat;
width: 16px;
height: 16px;
padding: 2px;

Choose a reason for hiding this comment

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

Suggested change
&-stars {
background-image: url(../images/star.svg);
background-repeat: no-repeat;
width: 16px;
height: 16px;
padding: 2px;
&-stars {
background-image: url(../images/star.svg);
background-repeat: no-repeat;
background-position: center;
width: 16px;
height: 16px;
margin-right: 4px;

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