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

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

add task solution #5502

wants to merge 2 commits into from

Conversation

mgad83
Copy link

@mgad83 mgad83 commented Mar 15, 2025

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.

Hey there! 👋 The HTML and CSS structure look good overall, and you've correctly implemented the star blocks. However, please address the indentation in src/index.html (use 2 spaces) and add empty lines between multiline HTML blocks. Also, remember that each BEM block should have its own separate CSS file, so split the CSS rules for .stars and .star accordingly. Keep up the great work! 🚀

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

🤖 If you have any comments about this review, please leave a message in the Add a comment field below and mention me with @mateacademy-ai-mentor tag. I will read your message when I perform the next review of your pull request.

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.

The HTML structure is mostly correct, and the code generally follows the guidelines. The indentation and spacing issues have been fixed. Keep up the good work! 🚀
However, there are still some issues that need to be addressed.
In src/index.html, the indentation is still incorrect. Use 2 spaces for indentation and add empty lines between multiline sibling blocks of HTML.
In src/style.css, each BEM block should have its own separate CSS file. You should split the CSS rules for .stars and .star accordingly. Also, according to the checklist, the yellow stars should be added with a container modifier and pseudo-selector (NO extra classes).
I am approving this PR to help you move forward with your learning. Please review the comments and address the mentioned issues to improve your code. Keep up the great work! 💪

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

Comment on lines +6 to +39
.stars {
display: flex;
justify-content: center;
}

.stars__star {
height: 16px;
width: 16px;
background-image: url('./images/star.svg');
background-repeat: no-repeat;
background-position: center;
list-style: none;
margin-right: 4px;
}

.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--3 > .stars__star:nth-child(-n + 3) {
background-image: url('./images/star-active.svg');
}

.stars--4 > .stars__star:nth-child(-n + 4) {
background-image: url('./images/star-active.svg');
}

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

According to the checklist item "Each BEM block has its own separate file", you should split the CSS rules for .stars and .star into separate files.

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