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

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

Develop #5262

wants to merge 3 commits into from

Conversation

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

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 task requires separate files for the BEM blocks card and stars, but the stars block file is missing. Additionally, the stars--N modifiers are not implemented, which is a core requirement. Please make these changes, and you'll be all set! 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.

@@ -0,0 +1,148 @@
@import '/src/styles/variables';

Choose a reason for hiding this comment

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

The import path for variables should be relative to the current file. Consider changing '/src/styles/variables' to './variables' to ensure the path is correct.

Comment on lines 71 to 75

&__starlist .main__starlist:hover {
display: '';
background-image: url(/src/images/star-active.svg);
}

Choose a reason for hiding this comment

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

The background-image URL should be relative to the index.scss file as per the task requirements. Change the path to ../images/star-active.svg.

Comment on lines 81 to 83
background-image: url(/src/images/star.svg);
background-size: cover;
background-repeat: no-repeat;

Choose a reason for hiding this comment

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

The background-image URL should be relative to the index.scss file as per the task requirements. Change the path to ../images/star.svg.

Comment on lines 86 to 90
&__starlist .main__star:nth-child(-n + 4) {
background-image: url(/src/images/star-active.svg);
width: 13px;
height: 12px;
}

Choose a reason for hiding this comment

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

The background-image URL should be relative to the index.scss file as per the task requirements. Change the path to ../images/star-active.svg.

$mainAccent-color: #060b35;
$mainSecondary-color: #616070;
$mainBlueAccent-color: #00acdc;
$mainAccent-color: #060b35;

Choose a reason for hiding this comment

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

There is a duplicate definition of $mainAccent-color. Remove the duplicate to avoid confusion and potential 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.

Great job on your submission! 🎉 While your code is well-structured and follows good practices like BEM methodology and SCSS partials, there are a few areas for improvement. Specifically, the stars--N modifiers are missing, which are crucial for implementing different star ratings as per the task requirements. Additionally, ensure that the SCSS file is correctly compiled by the Parcel bundler and that all variables are defined to avoid compilation errors.

The decision to approve is made to help you move forward with your learning journey. Please review the comments and address the issues to enhance your code quality. Keep up the good work and continue to learn from these experiences! 🚀

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

Comment on lines +81 to +85
&__starlist .main__star:nth-child(-n + 4) {
background-image: url(../images/star-active.svg);
width: 13px;
height: 12px;
}

Choose a reason for hiding this comment

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

The stars--N modifiers are missing. According to the task requirements, you need to implement these modifiers to represent different star ratings (e.g., stars--1, stars--2, etc.).

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