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

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

add task solution #5089

wants to merge 2 commits into from

Conversation

veneracode
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 project! 😊 However, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. SCSS Usage: The task requires linking SCSS files directly in HTML, but your implementation links to a CSS file instead. Please ensure SCSS files are used and linked correctly.

  2. BEM Blocks: The task specifies separate files for card and stars BEM blocks, which are not present in your submission. Please create these files.

  3. SCSS Nesting and Variables: The task requires SCSS nesting and the use of SCSS variables, which are missing in your current implementation. Please incorporate these elements.

  4. Stars Block: The stars block needs to be rewritten using SCSS as per the task requirements.

  5. Font Usage: A specific font from Google Fonts should be used, but it appears to be missing. Please include this in your implementation.

  6. File Structure: Ensure there is a separate SCSS file for variables as required.

  7. Image Path: The image paths should be relative to index.scss, starting with ../images. Please adjust this accordingly.

Once these issues are resolved, we can proceed with the approval. Keep up the great work, and don't hesitate to reach out if you need any help! 🚀

✨ 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
<p class="card__info">
Product code: 195434
</p>
<div class="rewiews"></div>

Choose a reason for hiding this comment

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

The class name 'rewiews' is likely a typo. It should be 'reviews' to maintain consistency and avoid confusion.

src/index.html Outdated
<div class="stars star"></div>
</div>

<div class="rewiews__text">Rewiews:5</div>

Choose a reason for hiding this comment

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

The class name 'rewiews__text' contains a typo. It should be 'reviews__text'.

src/index.html Outdated
<h1>Product cards</h1>
<article class="card" data-qa="card">
<div>
<img src="images/imac.jpeg" alt="imacPh">

Choose a reason for hiding this comment

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

The 'alt' attribute for the image is not very descriptive. Consider providing a more detailed description to improve accessibility, such as 'Image of an Apple A1419 iMac 27" Retina 5K Monoblock'.

background-image: url(../images/star-active.svg);
}

.rewiews {

Choose a reason for hiding this comment

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

The class name 'rewiews' is misspelled. It should be 'reviews'.

justify-content: space-between;
}

.rewiews__text {

Choose a reason for hiding this comment

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

The class name 'rewiews__text' contains a typo. It should be 'reviews__text'.

height: 134px;
display: block;
margin: 0 auto 40px;
display: block;

Choose a reason for hiding this comment

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

The 'display: block;' property is declared twice for the 'img' selector. You can remove the redundant declaration.

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 progress on your project! 🎉 While there are a few areas for improvement, such as creating a variables.scss file for SCSS variables, ensuring correct image paths relative to index.scss, and maintaining consistency in BEM naming conventions, your work is on the right track. Remember to configure the Parcel bundler for SCSS compilation. Addressing these points will enhance your code's maintainability and functionality. Keep up the good work and learn from these insights to refine your skills further! 🚀

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

<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<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 Parcel bundler is configured to compile SCSS files, as linking SCSS directly in HTML requires this setup.

<div>
<img
class="card__imagep"
src="images/imac.jpeg"

Choose a reason for hiding this comment

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

The image path should be relative to index.scss, starting with ../images. Please adjust this path accordingly.

padding: 32px 16px 16px;
box-sizing: border-box;
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, font sizes, and other repeated values to enhance maintainability and readability.

color: #616070;
}

&_imagep {

Choose a reason for hiding this comment

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

The BEM naming convention should be consistent. Consider renaming &_imagep to &__image to follow the BEM standard.

Comment on lines +5 to +10
height: 16px;
width: 16px;
background-image: url(../images/star.svg);
background-repeat: no-repeat;
margin-right: 4px;
background-position: center;

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 dimensions and margins to enhance maintainability and readability.

Comment on lines +7 to +18
background-image: url(../images/star.svg);
background-repeat: no-repeat;
margin-right: 4px;
background-position: center;
}

&__star:last-child {
margin-bottom: 0;
}

&__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.

Ensure that the image paths are correct and relative to the SCSS file location. Verify that the images exist at the specified paths.

Comment on lines +12 to +13
@import './blocks/card';
@import './blocks/stars';

Choose a reason for hiding this comment

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

Consider creating a variables.scss file for SCSS variables and import it here to enhance maintainability and consistency across styles.

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