-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 #5006
base: master
Are you sure you want to change the base?
Develop #5006
Conversation
There was a problem hiding this 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. Specifically, the separation of BEM blocks into individual files, the use of SCSS nesting, and the organization of SCSS variables into a separate file are core requirements that have not been met. Additionally, the stars
block needs to be rewritten as specified, and the background image URLs should be relative. These changes are essential for the functionality and maintainability of the code. Once these issues are resolved, your code will be in great shape! Keep up the great effort, and don't hesitate to reach out if you need any help. 🚀
✨ 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.
src/styles/index.scss
Outdated
font-weight: 700; | ||
width: 166px; | ||
height: 40px; | ||
color: #ffff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The color value '#ffff' is incorrect. It should be '#ffffff' for white. Ensure that the color values are correctly specified.
src/styles/index.scss
Outdated
font-weight: 700; | ||
width: 166px; | ||
height: 40px; | ||
color: #00acdc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The color value '#ffff' is incorrect. It should be '#ffffff' for white. Ensure that the color values are correctly specified.
src/styles/index.scss
Outdated
} | ||
} | ||
|
||
.product-card__stars__star:nth-child(-n + 4) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The selector '.product-card__stars__star:nth-child(-n + 4)' is overly specific. Consider simplifying the selector if possible to improve maintainability and avoid potential specificity issues.
There was a problem hiding this 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: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
There was a problem hiding this 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: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
There was a problem hiding this 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: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
There was a problem hiding this 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: 7]
If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.html
Outdated
<div class="product-card__stars"> | ||
<div class="product-card__stars-star"></div> | ||
<div class="product-card__stars-star"></div> | ||
<div class="product-card__stars-star"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.html
Outdated
<div class="product-card__stars-star"></div> | ||
<div class="product-card__stars-star"></div> | ||
<div class="product-card__stars-star"></div> | ||
<div class="product-card__stars-review">Reviews: 5</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use the semantic tag for text, fix it everywhere
src/index.html
Outdated
<div class="product-card__price-number">$2,199</div> | ||
</div> | ||
|
||
<div class="button"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant wrapper
<div class="button"> |
src/styles/index.scss
Outdated
$main-color: #060b35; | ||
$secondary-color: #616070; | ||
$button-bg-color: #00acdc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move variables to the separate file
src/styles/index.scss
Outdated
.product-card__stars { | ||
display: flex; | ||
padding-bottom: 24px; | ||
&-star { | ||
background-image: url(/src/images/star.svg); | ||
background-repeat: no-repeat; | ||
height: 16px; | ||
width: 16px; | ||
padding-right: 4px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move stars styles to the separate file
src/styles/index.scss
Outdated
font-weight: 700; | ||
width: 166px; | ||
height: 40px; | ||
color: #ffff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/styles/index.scss
Outdated
font-weight: 700; | ||
width: 166px; | ||
height: 40px; | ||
color: #00acdc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a variable for repeated color and use scss nesting everywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/styles/modifiers.scss
Outdated
} | ||
|
||
// .card__button { | ||
// padding-bottom: 16px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not keep commented code
src/styles/modifiers.scss
Outdated
width: 160px; | ||
height: 134px; | ||
padding-top: 32px; | ||
padding-bottom: 40px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to make paddings for .card (for each side) and inside card should be only vertical margins between elements. it is should be on bottom or only top margins.
src/styles/modifiers.scss
Outdated
padding-bottom: 16px; | ||
|
||
&-value { | ||
padding-left: 85px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is hardcode. instead use justify-content: space-between for parent element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, don't forget to fix all tests and then re-request the review
src/styles/modifiers.scss
Outdated
.card__price { | ||
display: flex; | ||
justify-content: space-between; | ||
color: $secondary-color; | ||
font-size: 12px; | ||
font-weight: 400; | ||
line-height: 18px; | ||
margin-bottom: 16px; | ||
|
||
&-value { | ||
font-size: 16px; | ||
font-weight: 700; | ||
line-height: 18px; | ||
color: $main-color; | ||
} | ||
} | ||
|
||
.card__button-buy { | ||
cursor: pointer; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 14px; | ||
line-height: 16px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget to use sass nesting here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.html
Outdated
<p class="card__code">Product code: 195434</p> | ||
</h2> | ||
|
||
<div class="stars"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the modifier class
<div class="stars"> | |
<div class="stars stars--4"> |
src/index.html
Outdated
<div class="stars-star"></div> | ||
<div class="stars-star"></div> | ||
<div class="stars-star"></div> | ||
<div class="stars-review">Reviews: 5</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use the semantic tag for text, fix it everywhere
<div class="stars-review">Reviews: 5</div> | |
<p class="stars-review">Reviews: 5</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/index.html
Outdated
<div class="card__price"> | ||
Price: | ||
<div class="card__price-value">$2,199</div> | ||
</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to use semantic tag for text
<div class="card__price"> | |
Price: | |
<div class="card__price-value">$2,199</div> | |
</div> | |
<div class="card__price"> | |
<p class="card__price-label">Price:</p> | |
<p class="card__price-value">$2,199</p> | |
</div> |
src/styles/modifiers.scss
Outdated
&__price { | ||
display: flex; | ||
justify-content: space-between; | ||
color: $secondary-color; | ||
font-size: 12px; | ||
font-weight: 400; | ||
line-height: 18px; | ||
margin-bottom: 16px; | ||
} | ||
|
||
&__price-value { | ||
font-size: 16px; | ||
font-weight: 700; | ||
line-height: 18px; | ||
color: $main-color; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use scss nesting everywhere
&__price { | |
display: flex; | |
justify-content: space-between; | |
color: $secondary-color; | |
font-size: 12px; | |
font-weight: 400; | |
line-height: 18px; | |
margin-bottom: 16px; | |
} | |
&__price-value { | |
font-size: 16px; | |
font-weight: 700; | |
line-height: 18px; | |
color: $main-color; | |
} | |
&__price { | |
display: flex; | |
justify-content: space-between; | |
color: $secondary-color; | |
font-size: 12px; | |
font-weight: 400; | |
line-height: 18px; | |
margin-bottom: 16px; | |
&-value { | |
// write styles here | |
} | |
} |
DEMO LINK
TEST REPORT LINK
there 2 BEM blocks
card
andstars
each in their own fileSCSS Nesting is used for
elements
,modifiers
andpseudo-classes
SCSS Variables are used for main values and placed in a separate file
all
stars--N
modifiers work as expected (Highlight firstN
stars)Code follows all the Code Style Rules ❗️