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 solution #4977

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

Conversation

FelixTheFallen
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! 😊 There are a few critical issues that need to be addressed before we can approve your submission. Specifically, you need to create a separate SCSS file for variables as required by the task, and ensure the background-image URL in stars.scss is relative to index.scss. Additionally, the styles.css file is unnecessary due to the use of the Parcel library. Once these issues are resolved, your solution will be ready for approval. Keep up the great work! 🚀

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

Sorry, the pull request review was unsuccessful for the following reasons:

Warning

No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: 7]

If the issue is within your control, please address it.
The next review attempt will automatically launch in 1 hour.
If you believe this is an error or need assistance, please contact the support team.

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 effort on your project! 🎉 While your code is mostly well-structured and organized, there are a few critical issues that need attention to ensure full functionality:

  1. Missing variables.scss File: It's important to create a separate file for SCSS variables as required by the task. This will help in maintaining and organizing your styles better.

  2. Incorrect background-image URL: Ensure that the background-image URLs in your SCSS files are relative to index.scss. This will ensure that images load correctly.

  3. SCSS Compilation: Remember to compile your SCSS into CSS, as browsers cannot interpret SCSS files directly. Make sure the href attribute in your HTML links to the compiled CSS file.

  4. Unnecessary styles.css File: If you are using Parcel to handle SCSS, the styles.css file might be redundant. Consider removing it to keep your project clean.

These issues are crucial for the functionality of your code, so please address them in future iterations. 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! ✨

<meta
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<title>Product cards</title>
<link
rel="stylesheet"
href="./styles/index.scss"
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 pointing to an SCSS file (styles/index.scss). Browsers cannot directly interpret SCSS files. You need to compile your SCSS into a CSS file and link to that CSS file instead.

// .stars__star

&__star {
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.

The background-image URL should be relative to the index.scss file. Ensure the path is correct so that the image can be loaded properly.

&__star--3:nth-child(-n + 3),
&__star--4:nth-child(-n + 4),
&__star--5 :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.

The background-image URL should be relative to the index.scss file. Ensure the path is correct so that the image can be loaded properly.

// .stars__star

&__star {
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.

The background-image URL should be relative to the index.scss file. Ensure the path is correct so that the image can be loaded properly.

&__star--3:nth-child(-n + 3),
&__star--4:nth-child(-n + 4),
&__star--5 :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.

The background-image URL should be relative to the index.scss file. Ensure the path is correct so that the image can be loaded properly.

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