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

final-code #5067

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

final-code #5067

wants to merge 2 commits into from

Conversation

pryge
Copy link

@pryge pryge commented Dec 15, 2024

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 project! 😊 While you've made great progress, there are a few critical issues that need to be addressed to meet the core requirements of the task:

  1. BEM Blocks Separation: The task requires separate files for the card and stars BEM blocks. Currently, both are in the index.scss file. Please separate them into their own files.

  2. SCSS Variables: The task specifies using SCSS variables for main values in a separate file. Ensure that you implement this requirement.

  3. SCSS Nesting: While there is some nesting, please verify that all required nesting for elements, modifiers, and pseudo-classes is correctly implemented.

  4. Stars Block: Ensure that the stars block is rewritten from the Stars task using SCSS as required.

  5. Stylesheet Link: The HTML file links to a .scss file, which needs to be preprocessed into CSS. Make sure the correct CSS file is linked.

Addressing these issues will help ensure your code meets the task requirements. 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.

src/index.html Outdated
@@ -11,8 +11,55 @@
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.

The href attribute is linking to a '.scss' file. Ensure that this file is being preprocessed into a CSS file, as browsers cannot directly interpret SASS files. If this is intended to be a CSS file, make sure the correct file is linked.

body {
margin: 0;
font-family: Roboto, serif;

Choose a reason for hiding this comment

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

The font-family declaration includes 'Roboto' with a fallback of 'serif'. Since 'Roboto' is a sans-serif font, it would be more appropriate to use a sans-serif fallback, such as 'sans-serif'.

}

.button {
font-family: Roboto, serif;

Choose a reason for hiding this comment

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

Similar to the body, the font-family declaration for the button includes 'Roboto' with a fallback of 'serif'. Consider using 'sans-serif' as the fallback to match the style of 'Roboto'.

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 making progress with your project! 🎉 While there are some areas that need attention, such as ensuring SCSS variables are in a separate file and adhering to the BEM naming convention, your efforts in separating BEM blocks and implementing SCSS nesting are commendable. Please review the comments to improve your code, especially regarding the stylesheet link and class naming. Addressing these issues will enhance your code's maintainability and functionality. 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! ✨

<link
rel="stylesheet"
href="./styles/index.scss"
href="../src/styles/index.css"

Choose a reason for hiding this comment

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

The href attribute is currently pointing to a .scss file. Make sure to link to the corresponding .css file that is generated after preprocessing the SCSS.

height: 408px;
border: 1px solid #f3f3f3;
border-radius: 5px;
background-color: #fff;

Choose a reason for hiding this comment

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

Consider using SCSS variables for colors and other main values instead of hardcoding them. This will make it easier to manage and update styles.

padding: 32px 16px 16px;
}

.imac-img {

Choose a reason for hiding this comment

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

The class .imac-img does not follow the BEM naming convention. Consider renaming it to something like .card__image to maintain consistency.

display: block;
}

.name {

Choose a reason for hiding this comment

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

The class .name does not follow the BEM naming convention. Consider renaming it to something like .card__name to maintain consistency.

margin-bottom: 4px;
}

.product-code {

Choose a reason for hiding this comment

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

The class .product-code does not follow the BEM naming convention. Consider renaming it to something like .card__code to maintain consistency.

color: #616070;
}

.stars-review {

Choose a reason for hiding this comment

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

The class .stars-review does not follow the BEM naming convention. Consider renaming it to something like .card__stars-review to maintain consistency.

margin-top: 16px;
}

.card-review {

Choose a reason for hiding this comment

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

The class .card-review does not follow the BEM naming convention. Consider renaming it to something like .card__reviews to maintain consistency.

}
}

.price {

Choose a reason for hiding this comment

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

The class .price does not follow the BEM naming convention. Consider renaming it to something like .card__price to maintain consistency.

}
}

.button {

Choose a reason for hiding this comment

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

The class .button does not follow the BEM naming convention. Consider renaming it to something like .card__button to maintain consistency.

}
}

.card__stars {

Choose a reason for hiding this comment

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

The .card__stars class should ideally be part of the card block styles, not the stars block. Consider moving this style to the appropriate SCSS file for the card block to maintain separation of concerns.

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