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

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

Conversation

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


Hello! 😊 It looks like there are a few critical issues that need to be addressed before we can approve the pull request. Let's work through them together:

  1. BEM Blocks: The task requires two separate BEM blocks, card and stars, each in their own file. Currently, the stars block is not separated into its own file, which is a core requirement.

  2. SCSS Variables: While SCSS variables are used, they need to be placed in a separate file as specified in the task requirements. This helps in maintaining and organizing the code better.

  3. Card Width: The card width should be 200px including the border, but it's currently set to 165px. This needs to be adjusted to meet the task specifications.

  4. Stars Block: The task requires the stars block to be rewritten using SCSS. Currently, SVG paths are directly included in the HTML, which doesn't align with the requirement.

  5. Image Path: Ensure that the background-image: url() is used correctly and is relative to index.scss. This seems to be missing from the current implementation.

Once these issues are resolved, your code will be in great shape! Keep up the good work, and don't hesitate to reach out if you need any help. You're almost there! 🚀

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

border-radius: 5px;
border: none;

background: var(--blue-accent-color, #00acdc);

Choose a reason for hiding this comment

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

The use of var(--blue-accent-color, #00acdc) is incorrect because the variable --blue-accent-color is not defined in the SCSS file. Instead, you should use the SCSS variable $blue-accent-color directly: background: $blue-accent-color;.

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.

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.

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.

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

@pedro-ruas pedro-ruas left a comment

Choose a reason for hiding this comment

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

There are some fixes needed, and the styling is not passing the auto tests

src/index.html Outdated
<h2 class="product-card__code">Product code: 195434</h2>

<div class="product-card__reviews">
<svg

Choose a reason for hiding this comment

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

What is this svg doing here?
You should have used the same code as for the Stars task done before. The stars should be added using css and work exactly as the previous task (you can literally copy-paste most of it)

line-height: 18px;
text-align: left;

width: 166px;

Choose a reason for hiding this comment

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

We avoid using these broken numbers. If you saw a number like this in the design, it must certainly comes from another styling, like width: 100% or something like that

}

&__star {
width: 20px;

Choose a reason for hiding this comment

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

I don't believe this is the right size.
And as I said before, you can use the code from Stars' task

font-size: 16px;
}

.product-card {

Choose a reason for hiding this comment

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

I believe the height of your card is wrong and it is causing most fails in the test

Copy link
Author

Choose a reason for hiding this comment

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

Thank you, i will make the adjustments.

Copy link

@joaorpereira joaorpereira left a comment

Choose a reason for hiding this comment

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

On the left is what the tests expect to see, and on the right is the your work

image

@import 'variables';
@import 'product-card';
@import 'stars';

Choose a reason for hiding this comment

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

Missing declare:

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the tip, I'll make the adjustments

Copy link

@pedro-ruas pedro-ruas left a comment

Choose a reason for hiding this comment

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

Now we are talking!

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