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

commit message #5064

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

commit message #5064

wants to merge 14 commits into from

Conversation

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

Thank you for your hard work on this pull request! 😊 There are a few critical issues that need to be addressed before we can approve it. The most important ones include the incorrect nesting of div elements in the HTML, which could lead to rendering problems, and the missing separate SCSS file for the stars block, which is a core requirement. Additionally, ensure that SCSS variables are used and placed in a separate file as specified. Please address these issues to meet the task requirements. Keep up the great effort, and I'm confident you'll get it right! 🚀

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

src/index.html Outdated
Comment on lines 9 to 11
<link rel="preconnect" href="https://fonts.gstatic.com"
crossorigin="anonymous"
>

Choose a reason for hiding this comment

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

The crossorigin attribute should be part of the <link> tag on line 9. It should be written as <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous">.

<img src="images/imac.jpeg" alt="Monitor">
</div>
</div>

Choose a reason for hiding this comment

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

There is an extra closing div tag on line 26 that does not match any opening tag. This could cause rendering issues.

src/index.html Outdated
BUY
</button>
</div>
</div>

Choose a reason for hiding this comment

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

There is an extra closing div tag on line 98 that does not match any opening tag. This could cause rendering issues.

Comment on lines 60 to 63
.card__star:hover~.card__star svg {
background-color: #FFDE6A;
stroke-width: 0;
}

Choose a reason for hiding this comment

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

The background-color property is not applicable to SVG elements. You might want to use fill to change the color of the SVG on hover.

.card__reviews {
font-size: 10px;
font-weight: 400;
color: #fff;

Choose a reason for hiding this comment

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

The color for .card__reviews is set to white. Ensure that the background where this text appears is not white, or change the text color to ensure it is visible.

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 on addressing some of the previous issues! 🎉 Your efforts in improving the HTML structure and creating the stars.scss file are commendable. However, there are a few critical points that need attention to fully meet the task requirements:

  1. SCSS Variables File: It's important to create a separate SCSS file for variables. This helps in maintaining consistency and makes it easier to manage main values across your stylesheets.

  2. Nesting of SCSS: Ensure that all elements, modifiers, and pseudo-classes are properly nested according to the BEM methodology. This will enhance the readability and maintainability of your code.

  3. Separate SCSS File for Stars Block: While the stars.scss file is correctly created, make sure all styles related to the stars block are encapsulated within this file and not duplicated elsewhere.

  4. HTML Structure: Your HTML structure is mostly correct, and the use of BEM methodology is consistent. Keep up the good work!

The decision to approve is made to help you move forward with your learning journey. Please review the comments and address these issues to improve your code. Remember, learning from these points will help you avoid similar problems in the future. Keep up the great work and continue to enhance your skills! 🚀

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

src/index.html Outdated
Comment on lines 24 to 27
<link
rel="stylesheet"
href="./styles/index.scss"
/>

Choose a reason for hiding this comment

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

Ensure that the SCSS file for the stars block is created and linked correctly. This is a core requirement as per the task description.

Comment on lines 80 to 94
.stars {
display: flex;
gap: 4px;
}

.stars__star {
background-image: url(../images/star.svg);
background-repeat: no-repeat;
width: 16px;
height: 16px;
}

.stars--4 .stars__star:nth-child(-n + 4) {
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 SCSS for the stars block should be placed in a separate file as per the task requirements. Ensure that this block is moved to its own SCSS file.

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.

Good job!
Let's improve your code
This part of the task is incomplete
image

Remove these images from the PR
image
image

border: 1px solid #f3f3f3;
border-radius: 5px;
width: 200px;
height: 406px;

Choose a reason for hiding this comment

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

Don't need to write fixed height for the card

Suggested change
height: 406px;

}

&__product {
width: 98px;

Choose a reason for hiding this comment

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

Suggested change
width: 98px;

}

&__button {
background-color: #00acdc;

Choose a reason for hiding this comment

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

Create a variable for repeated color and use it everywhere

Copy link

@vadiimvooo vadiimvooo left a comment

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.

4 participants