Skip to content

create layout stars#6894

Open
YaroslavYakym wants to merge 2 commits into
mate-academy:masterfrom
YaroslavYakym:develop
Open

create layout stars#6894
YaroslavYakym wants to merge 2 commits into
mate-academy:masterfrom
YaroslavYakym:develop

Conversation

@YaroslavYakym

Copy link
Copy Markdown

Checklist

❗️ Replace <your_account> with your Github username and copy the links to Pull Request description:

❗️ Copy this Checklist to the Pull Request description after links, and put - [x] before each point after you checked it.

  • 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 ❗️

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

I am requesting changes because there are still checklist violations that are considered core requirements for this task. First, the rule “Each BEM block has its own separate file” [CHECKLIST ITEM #2] is not followed: all stars styles currently live in src/style.css instead of a dedicated file (e.g. src/blocks/stars/stars.css or similar), so you should move all .stars and .stars__star rules there and keep style.css only for global/base styles if needed. Second, the requirement to “Use semantic tags where possible” is not fully met: the top-level wrapper for the rating group in src/index.html is a generic <div> (around lines where all the .stars blocks live); replace that wrapper with a more semantic element such as <main> or <section> that better reflects the page structure.

Functionally your solution is very solid: the six stars blocks, modifiers stars--0 through stars--5, background-image usage, and flex layout all look correct and clean. Once you split the BEM block styles into their own file and adjust the top-level wrapper to a semantic tag, your solution will fully align with the task requirements. You're close—fixing these structural points will bring it over the finish line.


✨ 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

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread src/index.html
<html lang="en">
<head>
<meta charset="UTF-8" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item #2: "Each BEM block has its own separate file". All styles for the stars block are currently placed in style.css; you need to move the stars-related rules into a dedicated CSS file for this BEM block and keep the separation consistent.

Comment thread src/style.css Outdated
margin: 0;
}

.stars {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This violates checklist item "Each BEM block has its own separate file" – all styles, including the stars block, are collected in style.css instead of being split into separate files per BEM block.

Comment thread src/style.css Outdated
Comment on lines +19 to +20
margin-right: 4px;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

According to checklist item "Use semantic tags where possible", consider replacing a generic top-level <div> wrapper for the rating group with a more semantic container element (e.g. main or section) to better reflect the page structure.

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]

If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.

@vadiimvooo vadiimvooo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done

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