add task solution - #6956
Conversation
DmutroHavriliuk
commented
Jul 28, 2026
- [DEMO LINK](https://DmutroHavriliuknpm run lint.github.io/layout_stars/)
- TEST REPORT LINK
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
The stars block styles are currently in style.css but must be moved to a dedicated stars.css file as required by the checklist item [CHECKLIST ITEM - Each BEM block has its own separate file]. This is an explicit structural requirement for the assignment.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
| /* add styles here */ | ||
| body { | ||
| margin: 0; | ||
| } | ||
|
|
||
| .stars { | ||
| display: flex; | ||
| } | ||
|
|
||
| .stars__star { | ||
| width: 16px; | ||
| height: 16px; | ||
| margin-right: 4px; | ||
|
|
||
| background: url('./images/star.svg') center no-repeat; | ||
| } | ||
|
|
||
| .stars__star: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'); | ||
| } |
There was a problem hiding this comment.
Checklist item violated: 'Each BEM block has its own separate file'. The stars styles are in style.css but should be in a dedicated stars.css file.