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

add task solution #5137

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

add task solution #5137

wants to merge 2 commits into from

Conversation

Katy4S
Copy link

@Katy4S Katy4S commented Jan 2, 2025

  • DEMO LINK

  • TEST REPORT LINK

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

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

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

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

  • [ x] 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! 😊 While your code is mostly on point, there are a few critical issues that need to be addressed before we can approve the pull request. Specifically, several SCSS variables such as $font-family, $card-buy-color, $card-secondary-color, $card-main-color, and $card-width are used but not defined in the relevant files. This could lead to styling issues and affect the functionality of your code. Please ensure these variables are defined in the variables.scss file or another imported file. Once these issues are resolved, your code will be in great shape! Keep up the great work, and feel free 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.

@@ -0,0 +1,120 @@
.card {
box-sizing: border-box;
width: $card-width;

Choose a reason for hiding this comment

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

The variable $card-width is used here, but it's not defined within this file. Ensure that it is defined in a file that is imported before this one or within this file itself.

text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: $card-main-color;

Choose a reason for hiding this comment

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

The variable $card-main-color is used here, but it's not defined within this file. Ensure that it is defined in a file that is imported before this one or within this file itself.

text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: $card-secondary-color;

Choose a reason for hiding this comment

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

The variable $card-secondary-color is used here, but it's not defined within this file. Ensure that it is defined in a file that is imported before this one or within this file itself.

justify-content: center;
align-items: center;
height: 40px;
background-color: $card-buy-color;

Choose a reason for hiding this comment

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

The variable $card-buy-color is used here, but it's not defined within this file. Ensure that it is defined in a file that is imported before this one or within this file itself.

body {
margin: 0;
font-family: $font-family;

Choose a reason for hiding this comment

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

The variable $font-family is used here, but it's not defined within this file. Ensure that it is defined in the variables.scss file or another imported file.

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 addressing the previous issues regarding the undefined SCSS variables! 🎉 All necessary variables, including $font-family, $card-buy-color, $card-secondary-color, $card-main-color, $card-width, and $card-border-color, are now correctly defined in the variables.scss file. This ensures that your styles are consistent and maintainable across your project.

Your code is well-structured and meets the task requirements. While there were initial concerns about undefined variables, you've successfully resolved them, ensuring no compilation errors. Moving forward, always ensure that all variables are defined in the appropriate files to avoid similar issues. Keep up the excellent work and continue learning from each task! 🚀

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

@@ -0,0 +1,120 @@
.card {
box-sizing: border-box;
width: $card-width;

Choose a reason for hiding this comment

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

The variable $card-width is used but not defined in this file. Ensure it is defined in variables.scss or another imported file.

.card {
box-sizing: border-box;
width: $card-width;
border: 1px solid $card-border-color;

Choose a reason for hiding this comment

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

The variable $card-border-color is used but not defined in this file. Ensure it is defined in variables.scss or another imported file.

}

&__name {
font-family: $font-family;

Choose a reason for hiding this comment

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

The variable $font-family is used but not defined in this file. Ensure it is defined in variables.scss or another imported file.

text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: $card-main-color;

Choose a reason for hiding this comment

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

The variable $card-main-color is used but not defined in this file. Ensure it is defined in variables.scss or another imported file.

text-align: left;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: $card-secondary-color;

Choose a reason for hiding this comment

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

The variable $card-secondary-color is used but not defined in this file. Ensure it is defined in variables.scss or another imported file.

text-align: right;
text-underline-position: from-font;
text-decoration-skip-ink: none;
color: $card-main-color;

Choose a reason for hiding this comment

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

The variable $card-main-color is used again here. Ensure it is defined in variables.scss or another imported file.

justify-content: center;
align-items: center;
height: 40px;
background-color: $card-buy-color;

Choose a reason for hiding this comment

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

The variable $card-buy-color is used but not defined in this file. Ensure it is defined in variables.scss or another imported file.

box-sizing: border-box;
text-decoration: none;
border-radius: 5px;
font-family: $font-family;

Choose a reason for hiding this comment

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

The variable $font-family is used again here. Ensure it is defined in variables.scss or another imported file.

text-transform: uppercase;

&:hover {
border: 1px solid $card-buy-color;

Choose a reason for hiding this comment

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

The variable $card-buy-color is used again here. Ensure it is defined in variables.scss or another imported file.

&:hover {
border: 1px solid $card-buy-color;
background-color: rgba(243, 243, 243, 1);
color: $card-buy-color;

Choose a reason for hiding this comment

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

The variable $card-buy-color is used again here. Ensure it is defined in variables.scss or another imported file.

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