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

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

Conversation

ALexKhodakov
Copy link

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 well-structured and meets many of the task requirements, there are a few critical issues that need to be addressed before we can proceed. Specifically, the task requires the use of separate BEM block files for card and stars, and SCSS variables should be placed in a separate file. Additionally, ensure that SCSS nesting is consistently applied for elements, modifiers, and pseudo-classes. Once these changes are made, your implementation will be in great shape! Keep up the great work, and I look forward to your updated submission! 🚀

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

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 meets several task requirements, there are a few areas for improvement. Please ensure that the stars component has its own SCSS file, separate from the card styles, and that all SCSS variables are placed in a dedicated variables.scss file. This will help maintain a clean and organized codebase. Keep up the good work, and use this feedback to enhance your skills further!

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

<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="./styles/index.scss"

Choose a reason for hiding this comment

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

The SCSS file index.scss is linked here. Ensure that SCSS variables are placed in a separate file, and separate BEM block files are used for card and stars, as per the task requirements.

Comment on lines +93 to +117
.stars {
display: flex;

&__star {
width: 16px;
height: 16px;
margin-right: 4px;

background-image: url(../images/star.svg);
background-repeat: no-repeat;
background-position: center;

& :last-child {
margin-right: 0;
}
}
}

.stars--1 .stars__star:nth-child(-n + 1),
.stars--2 .stars__star:nth-child(-n + 2),
.stars--3 .stars__star:nth-child(-n + 3),
.stars--4 .stars__star:nth-child(-n + 4),
.stars--5 .stars__star:nth-child(-n + 5) {
background-image: url(../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 styles for the stars component should be moved to a separate SCSS file dedicated to the stars BEM block, as per the task requirements.

font-family: Roboto, sans-serif;
font-size: 10px;
line-height: 14px;
color: $text-secondary-color;

Choose a reason for hiding this comment

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

Ensure that SCSS variables like $text-secondary-color are placed in a separate variables file, as required by the task.

margin: 0;
}
@import './utils/variables';
@import './blocks/card';

Choose a reason for hiding this comment

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

Ensure that you also import the stars block SCSS file here, as it should be in a separate file according to the task requirements.

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