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 product card #5132

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

Conversation

vsolodkyi-mate
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 code is on the right track, but there are a few critical issues that need to be addressed to fully meet the task requirements. 🚀

  1. BEM Blocks: Separate the card and stars BEM blocks into their own SCSS files as required.
  2. SCSS Variables: Move the SCSS variables to a separate file for better organization.
  3. SCSS Nesting: Implement SCSS nesting for elements, modifiers, and pseudo-classes to align with the task requirements.
  4. Stars Modifiers: Use BEM modifiers like stars--N to ensure all star modifiers work as expected.

These changes will help improve the structure and maintainability of your code. Keep up the great work, and I'm confident you'll nail it with these adjustments! 💪

✨ 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

@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 addressing the previous issues and meeting the task requirements! 🎉 Your code is well-organized, and you've effectively used SCSS features. However, there are a few points to consider for future improvements:

  • BEM Naming Conventions: Ensure that classes like allstars follow BEM conventions. Consider renaming it to something like card__allstars for consistency.
  • SCSS Nesting: The class allstars__text should be nested under the correct BEM block. Make sure the SCSS reflects this structure.
  • SCSS Structure: Verify that index.scss is organized with separate files for different BEM blocks.

These adjustments will enhance the maintainability and readability of your code. Keep up the good work and continue learning from these experiences! 🚀

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

APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h1>
<p class="card__text">Product code: 195434</p>
<div class="allstars">

Choose a reason for hiding this comment

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

The class allstars does not follow the BEM naming convention. Consider renaming it to something like card__allstars to maintain consistency with the BEM methodology.

<div class="stars__star stars__star--active"></div>
<div class="stars__star stars__star--active"></div>
</div>
<p class="allstars__text">Reviews: 5</p>

Choose a reason for hiding this comment

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

The class allstars__text should be nested under the allstars block if following BEM conventions. Ensure that the SCSS reflects this structure.

@@ -11,8 +11,57 @@
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 index.scss is correctly structured and organized as per the task requirements, with separate files for different BEM blocks.

@@ -0,0 +1,40 @@
.allstars {

Choose a reason for hiding this comment

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

The class allstars does not follow the BEM naming convention. Consider renaming it to something like stars__container to maintain consistency with the BEM methodology.

margin: 16px 0 0;
display: flex;

.stars {

Choose a reason for hiding this comment

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

The class stars should be a block, not an element under allstars. Ensure that the BEM structure is correctly implemented.

}
}

&__text {

Choose a reason for hiding this comment

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

The class allstars__text should be nested under the correct BEM block. Ensure that the SCSS reflects this structure.

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