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

Develop #4906

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Develop #4906

wants to merge 1 commit into from

Conversation

MiltonMario
Copy link

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 your CSS file! It's well-structured and follows most of the best practices. Just a few minor improvements are needed, such as optimizing repeated styles and ensuring consistent indentation. Keep up the good work and consider these tips for your next update! 😊👍

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

Comment on lines +16 to +23
<div class="stars__box">
<div class="stars stars--0">
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
</div>

Choose a reason for hiding this comment

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

Add an empty line between sibling blocks of HTML for better readability as per the checklist.

Comment on lines +25 to +31
<div class="stars stars--1">
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
</div>

Choose a reason for hiding this comment

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

Add an empty line between sibling blocks of HTML for better readability as per the checklist.

Comment on lines +33 to +39
<div class="stars stars--2">
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
</div>

Choose a reason for hiding this comment

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

Add an empty line between sibling blocks of HTML for better readability as per the checklist.

Comment on lines +41 to +47
<div class="stars stars--3">
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
</div>

Choose a reason for hiding this comment

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

Add an empty line between sibling blocks of HTML for better readability as per the checklist.

Comment on lines +49 to +55
<div class="stars stars--4">
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
<span class="stars__star"></span>
</div>

Choose a reason for hiding this comment

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

Add an empty line between sibling blocks of HTML for better readability as per the checklist.

Comment on lines +3 to +7
.page {
margin: 0;
padding: 0;
background-color: #fff;
}

Choose a reason for hiding this comment

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

According to the checklist, avoid using tag names for styling, with the exception of html and body. Here, the .page class seems to be intended as a global style that could be applied directly to the body tag, which is an exception to this rule. If .page is indeed meant for the body, consider applying these styles directly to the body tag.

Comment on lines +18 to +25
.stars__star {
display: flex;
background-image: url(images/star.svg);
background-repeat: no-repeat;
background-position: center;
width: 16px;
height: 16px;
}

Choose a reason for hiding this comment

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

You have repeated styles for background-repeat and background-position in the .stars__star class and also in the .stars--1 .stars__star class. To adhere to the DRY (Don't Repeat Yourself) principle, consider removing the repeated properties from the .stars--1 .stars__star class (lines 32-34) as they are already defined in the .stars__star class.

Comment on lines +31 to +34
.stars--1 .stars__star:nth-child(-n + 1) {
background-image: url(images/star-active.svg);
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 properties background-repeat: no-repeat; and background-position: center; are repeated here and in the .stars__star class. You can remove them from here since they are already defined in the .stars__star class.

Comment on lines +38 to +39
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.

The background-image property is repeated across multiple selectors for .stars--2 .stars__star, .stars--3 .stars__star, etc. Consider using a more efficient method to apply these styles, such as combining selectors that share the same properties to reduce code duplication. For example, you can write a single selector like .stars--2 .stars__star:nth-child(-n + 2), .stars--3 .stars__star:nth-child(-n + 3), ... { background-image: url(images/star-active.svg); }.

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