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 solution #5249

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

add solution #5249

wants to merge 3 commits into from

Conversation

MartaKurdylo
Copy link

  • DEMO LINK
  • TEST REPORT LINK
  • Yellow stars are added with container modifier + pseudo-selector (NO extra classes)
  • Each BEM block has its own separate file
  • All Typical Mistakes from BEM lesson theory are checked.
  • 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 implementation is mostly on point, there are a few critical issues that need to be addressed before we can proceed:

  1. CSS Flex Gap Usage: The task specifies not to use the gap property in the flex container, as it doesn't work in tests. Please remove gap: 4px; from the .stars class.

  2. File Structure: Each BEM block should have its own file. Currently, all styles are in a single style.css file. Please refactor your code to meet this requirement.

  3. Missing Files: The images necessary for the background of the stars are missing. Ensure these files are included so the code functions as expected.

Once these issues are resolved, your code will be ready for approval. Keep up the great work, 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.

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 some of the previous feedback! 🎉 While there are still a few areas that need improvement, such as the CSS file structure and missing image files, your efforts are commendable. Remember to:

  • Refactor the CSS to ensure each BEM block has its own file.
  • Include all necessary image files to avoid broken links.
  • Correct the typo in the comment tag for better readability.

These adjustments will help you enhance your code quality and align with the task requirements. Keep up the good work and continue learning from these experiences! 🚀

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

<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
<!-- #endregin-->

Choose a reason for hiding this comment

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

There is a typo in the comment tag. It should be <!-- #endregion --> instead of <!-- #endregin-->.

Comment on lines +8 to +10
.stars {
display: flex;
}

Choose a reason for hiding this comment

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

The task specifies not to use the gap property in the flex container. While you have used margin-right for spacing, ensure that this approach is consistent with the task requirements and does not rely on the gap property.

src/style.css Outdated
margin-right: 4px;
}

.stars--0 .stars__star:nth-child(-n + 0) {

Choose a reason for hiding this comment

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

The selector .stars--0 .stars__star:nth-child(-n + 0) is effectively selecting no elements because -n + 0 results in an empty set. Consider removing or adjusting this rule.

src/style.css Outdated
Comment on lines 25 to 31
.stars--1 .stars__star:nth-child(-n + 1) {
background-image: url('./images/star-active.svg');
}

.stars--2 .stars__star:nth-child(-n + 2) {
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.

Suggested change
.stars--1 .stars__star:nth-child(-n + 1) {
background-image: url('./images/star-active.svg');
}
.stars--2 .stars__star:nth-child(-n + 2) {
background-image: url('./images/star-active.svg');
}
.stars--1 .stars__star:nth-child(-n + 1),
.stars--2 .stars__star:nth-child(-n + 2) {
background-image: url('./images/star-active.svg');
}

combine it all with a comma

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.

3 participants