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

Develop #4826

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

Develop #4826

wants to merge 6 commits into from

Conversation

yzhyhaliuk
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • there 2 BEM blocks card and stars each in it 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 structuring your styles and following the BEM methodology! 👍 Just a few minor suggestions on code style and consistency. Remember to define common variables for maintainability and to keep following the code style guide for SCSS. Keep up the good work! 🌟

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

Comment on lines +42 to +49
<div class="stars">
<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>

Choose a reason for hiding this comment

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

There are two nested elements with the class stars which seems incorrect. You should have only one block element and multiple stars__star elements inside it to represent individual stars. Check the BEM structure to ensure the block is not nested within itself.

<div class="card__price-text">Price:</div>
<div class="card__price-tag">$2,199</div>
</div>
<a

Choose a reason for hiding this comment

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

The href attribute is missing in the anchor tag. If this button is meant to link to a product or a purchase page, you should include the appropriate URL in the href attribute.

}

&__content {
font-family: Roboto, sans-serif;

Choose a reason for hiding this comment

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

According to the checklist's code style rules, font-family should be defined in a variable for reusability and to ensure consistency across the project. Consider creating a variable for the font-family.

Comment on lines +20 to +25
font-weight: 500;
font-size: 12px;
line-height: 18px;
color: #060b35;
margin-top: 0;
margin-bottom: 4px;

Choose a reason for hiding this comment

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

The values for font-size and line-height should also be extracted into variables. This will make it easier to maintain consistent typography throughout the application.

Comment on lines +29 to +34
font-weight: 400;
font-size: 10px;
line-height: 14px;
color: #616070;
margin-top: 0;
margin-bottom: 16px;

Choose a reason for hiding this comment

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

Similar to the previous comment, font-size and line-height values should be stored in variables for maintainability and ease of changes in the future.

Comment on lines +50 to +53
font-weight: 700;
font-size: 16px;
line-height: 18px;
color: #060b35;

Choose a reason for hiding this comment

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

Consider using a variable for the font-size and line-height to maintain consistency and to make the codebase easier to maintain.

.stars {
display: flex;
height: 16px;
justify-content: space-between;

Choose a reason for hiding this comment

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

According to the Code Style Rules, properties should be ordered alphabetically. Please rearrange the properties of the .stars selector.

margin-bottom: 24px;

&--4 {
gap: 4px;

Choose a reason for hiding this comment

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

The gap property should be defined within the .stars block, not only for the .stars--4 modifier. This is because all star blocks likely need a gap, and we should keep the styles consistent.

background-repeat: no-repeat;
width: 16px;
height: 16px;
background-position: center;

Choose a reason for hiding this comment

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

The background-position property should be combined with the background shorthand property used in lines 12 and 24 for better code organization.

Copy link

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

Comment on lines +7 to +9
&--4 {
gap: 4px;
}

Choose a reason for hiding this comment

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

just add to the stars

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