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

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

add task solution #5004

wants to merge 3 commits into from

Conversation

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

Your implementation is almost there, but there are a few critical issues that need addressing to meet the task requirements. 🚀 The main points to focus on are: ensuring each BEM block has its own file, avoiding the use of the * selector for better performance, and adhering to the specified class naming conventions. Once these are resolved, your code will be in great shape! Keep up the good work and don't hesitate to reach out if you need further guidance. 😊

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

Copy link

@maxim2310 maxim2310 left a comment

Choose a reason for hiding this comment

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

Try to do like this

src/index.html Outdated
@@ -13,6 +13,49 @@
/>
</head>
<body>
<h1>Stars</h1>
<div class="stars-container">

Choose a reason for hiding this comment

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

Suggested change
<div class="stars-container">

src/index.html Outdated
@@ -13,6 +13,49 @@
/>
</head>
<body>
<h1>Stars</h1>
<div class="stars-container">
<div class="stars-block stars--0">

Choose a reason for hiding this comment

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

Suggested change
<div class="stars-block stars--0">
<div class="stars stars--0">

src/index.html Outdated
<div class="stars__star"></div>
</div>
<div class="stars-block stars--1">
<div class="stars__star stars__star--active"></div>

Choose a reason for hiding this comment

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

Suggested change
<div class="stars__star stars__star--active"></div>
<div class="stars__star"></div>

src/style.css Outdated
Comment on lines 8 to 11
.stars-container {
display: flex;
flex-direction: column;
}

Choose a reason for hiding this comment

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

Suggested change
.stars-container {
display: flex;
flex-direction: column;
}

src/style.css Outdated
Comment on lines 13 to 16
.stars-block {
display: flex;
margin-bottom: 4px;
}

Choose a reason for hiding this comment

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

Suggested change
.stars-block {
display: flex;
margin-bottom: 4px;
}
.stars-block {
display: flex;
}

src/style.css Outdated
.stars__star {
width: 16px;
height: 16px;
border-radius: 0.5px;

Choose a reason for hiding this comment

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

Suggested change
border-radius: 0.5px;

src/style.css Outdated
height: 16px;
border-radius: 0.5px;
background-image: url('../src/images/star.svg');
background-size: contain;

Choose a reason for hiding this comment

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

Suggested change
background-size: contain;
background-position: center;

src/style.css Outdated
Comment on lines 28 to 30
.stars__star--active {
background-image: url('../src/images/star-active.svg');
}

Choose a reason for hiding this comment

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

Suggested change
.stars__star--active {
background-image: url('../src/images/star-active.svg');
}
.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');
}

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Hi, your demo link is empty now, you need to make a deploy and check it after on the demo
image

src/style.css Outdated
@@ -1 +1,27 @@
/* add styles here */

Choose a reason for hiding this comment

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

Suggested change
/* add styles here */

src/style.css Outdated
.stars__star {
width: 16px;
height: 16px;
background-image: url('../src/images/star.svg');

Choose a reason for hiding this comment

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

Suggested change
background-image: url('../src/images/star.svg');
background-image: url('./images/star.svg');

src/style.css Outdated
.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(../src/images/star-active.svg);

Choose a reason for hiding this comment

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

Suggested change
background-image: url(../src/images/star-active.svg);
background-image: url('./images/star-active.svg');

Copy link

@VitaliyBondarenko1982 VitaliyBondarenko1982 left a comment

Choose a reason for hiding this comment

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

GJ

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.

5 participants