Skip to content

Stars#6597

Open
NazarKoval1212 wants to merge 1 commit intomate-academy:masterfrom
NazarKoval1212:master
Open

Stars#6597
NazarKoval1212 wants to merge 1 commit intomate-academy:masterfrom
NazarKoval1212:master

Conversation

@NazarKoval1212
Copy link

No description provided.

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.

Review Summary

Great job implementing the core logic for the star ratings! The use of BEM modifiers with the :nth-child pseudo-class is well-executed.

Before this can be approved, a few key styling requirements from the task need to be addressed. First, the browser's default margins need to be reset, which can be done by adding margin: 0; to the body selector. Second, the spacing between the stars from the Figma design is missing; you can add this using margin-right on the star elements, making sure to remove it from the last star in each group. Lastly, please remove the unused .stars_star_active class, as it's not needed and doesn't follow the project's BEM conventions [CHECKLIST ITEM #3].

After you've made these adjustments, your project will fully match the design.


✨ 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

<body>
<div class="stars stars--0">

<a class ="stars__star"> </a>

Choose a reason for hiding this comment

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

The formatting of attributes is inconsistent throughout the file. For example, there are extra spaces around the = in class attributes (e.g., class ="..."). The standard convention is to have no spaces, like class="...". Please correct this for all similar occurrences in the file.

Comment on lines +1 to +9
.stars__star{
width: 20px;
height: 20px;
background-image:url(images/star.svg);
background-size:
contain;
background-repeat: no-repeat;
background-position: center;
}

Choose a reason for hiding this comment

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

The task requires setting the distance between stars based on the Figma design. Currently, the stars will have no space between them. Consider adding a margin-right to the star elements and using a pseudo-class like :last-child to remove it from the final star in each group.

Comment on lines +5 to +6
background-size:
contain;

Choose a reason for hiding this comment

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

It's standard practice to keep a CSS property and its value on the same line for better readability, like background-size: contain;.

background-position: center;
}

.stars{

Choose a reason for hiding this comment

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

The task requires resetting the browser's default margins. This is typically done with a rule for the body element (e.g., body { margin: 0; }) at the start of your stylesheet.

Comment on lines +16 to +18
.stars_star_active{
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.

This class .stars_star_active is not used in the HTML and should be removed. The active star state is already correctly handled by the .stars--N modifier classes and the :nth-child selector. Additionally, the class name does not follow BEM naming conventions.

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.

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.

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.

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.

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.

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.

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.

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.

Copy link

@2pasha 2pasha left a comment

Choose a reason for hiding this comment

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

i suppose this task hasn't finished yet

  1. please finish this task
  2. push all your actual code
  3. deploy your app
  4. add DEMO LINK to PR's description
  5. ask for mentor's review again

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