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 #5006

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

Develop #5006

wants to merge 8 commits into from

Conversation

RuslanKhaiko
Copy link

@RuslanKhaiko RuslanKhaiko commented Nov 22, 2024

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

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.

font-weight: 700;
width: 166px;
height: 40px;
color: #ffff;

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.

font-weight: 700;
width: 166px;
height: 40px;
color: #00acdc;

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.

}
}

.product-card__stars__star:nth-child(-n + 4) {

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.

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.

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.

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.

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.

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.

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.

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.

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.

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Hi, here is no styles on the demo, you need to make a deploy again and check it after on the demo
image

src/index.html Outdated
Comment on lines 45 to 48
<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>

Choose a reason for hiding this comment

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

This part of the task is incomplete, you need to add the modifier class and use styles from the previous task
image

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>

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">

Choose a reason for hiding this comment

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

Redundant wrapper

Suggested change
<div class="button">

Comment on lines 1 to 3
$main-color: #060b35;
$secondary-color: #616070;
$button-bg-color: #00acdc;

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

Comment on lines 44 to 53
.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;
}

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

font-weight: 700;
width: 166px;
height: 40px;
color: #ffff;

Choose a reason for hiding this comment

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

Fix it
image

font-weight: 700;
width: 166px;
height: 40px;
color: #00acdc;

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

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

No space under button. It is a reason of failed tests.
Screenshot 2024-11-23 at 18 31 51

}

// .card__button {
// padding-bottom: 16px;

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

width: 160px;
height: 134px;
padding-top: 32px;
padding-bottom: 40px;

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.

padding-bottom: 16px;

&-value {
padding-left: 85px;

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

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, but you have to fix stars and title margin. Please feel free to ask for help in fe_chat
image

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.

please, don't forget to fix all tests and then re-request the review

Comment on lines 44 to 67
.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;

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

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Almost done!
This part of the task is incomplete, you need to implement the modifier logic for active stars, use styles for stars from the previous task
image

src/index.html Outdated
<p class="card__code">Product code: 195434</p>
</h2>

<div class="stars">

Choose a reason for hiding this comment

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

Add the modifier class

Suggested change
<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>

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

Suggested change
<div class="stars-review">Reviews: 5</div>
<p class="stars-review">Reviews: 5</p>

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Hi, this part of the task is incomplete, you need to use styles for stars block from the previous task, if you have any questions feel free in the fe_chat
image

src/index.html Outdated
Comment on lines 62 to 65
<div class="card__price">
Price:
<div class="card__price-value">$2,199</div>
</div>

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

Suggested change
<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>

Comment on lines 43 to 58
&__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;
}

Choose a reason for hiding this comment

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

Use scss nesting everywhere

Suggested change
&__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
}
}

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.

6 participants