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

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

add task solution #5154

wants to merge 6 commits into from

Conversation

tymchukmr
Copy link

@tymchukmr tymchukmr commented Feb 25, 2025

  • DEMO LINK

  • TEST REPORT LINK

  • All components follow BEM and use SCSS

  • Repeated sizes and special colors are put to variables

  • Grid is used for the columns

  • Cards are shown in 1, 2, 3, or 4 columns based on screen resolution

  • All changes on :hover are smooth

  • Code follows all the Code Style Rules ❗️

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! 😊 There are a few critical issues that need to be addressed before we can approve the pull request. The data-qa attributes are not implemented correctly, and the navigation link color does not meet the specified requirements. Additionally, the hover effects need to be adjusted to ensure smooth transitions and correct color changes. Please address these issues to align with 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.

width: 200px;
border: 1px solid #f3f3f3;
border-radius: 5px;
background: $bg-color;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $bg-color is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.

font-weight: 500;
height: 36px;
width: 166px;
color: $main-accent;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $main-accent is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.


&:hover {
transform: scale(1.2);
transition: $transition;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $transition is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.

font-size: 10px;
font-weight: 400;
line-height: 14px;
color: $secondary;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $secondary is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.


&__rate {
font-weight: 400;
color: $main-accent;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $main-accent is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.

background: #fff;
border: 1px solid #00acdc;
border-radius: 5px;
transition: $transition;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $transition is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.

display: flex;

& :hover {
color: $blue-color;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $blue-color is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.

text-decoration: none;
text-transform: uppercase;
position: relative;
color: $blue-color;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $blue-color is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.

position: absolute;
height: 4px;
border-radius: 8px;
background-color: $blue-color;

Choose a reason for hiding this comment

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

Ensure that the SCSS variable $blue-color is defined elsewhere in your stylesheets. If it's not defined, it will cause a compilation error.

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

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Good job 👍
Let's improve your code

src/index.html Outdated
Comment on lines 119 to 121
<div class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</div>

Choose a reason for hiding this comment

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

You need to use the semantic tag for text, fix it everywhere

@@ -0,0 +1,73 @@
header {

Choose a reason for hiding this comment

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

Use only class selector

Copy link

@volodymyr-soltys97 volodymyr-soltys97 left a comment

Choose a reason for hiding this comment

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

Almost done!
To improve:
Cards should shrink as smoothly as they grow.
image

src/index.html Outdated
Comment on lines 136 to 138
<div class="card__price-label">Price:</div>

<div class="card__price-tag">$2,199</div>

Choose a reason for hiding this comment

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

You need to use semantic tags for text everywhere

Suggested change
<div class="card__price-label">Price:</div>
<div class="card__price-tag">$2,199</div>
<p class="card__price-label">Price:</p>
<p class="card__price-tag">$2,199</p>

src/index.html Outdated
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>
Reviews: 5

Choose a reason for hiding this comment

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

Use semantic tag here

class="card"
data-qa="card"
>
<div class="card__content">

Choose a reason for hiding this comment

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

Do you need this wrapper? Consider it's redundant

Suggested change
<div class="card__content">

Copy link
Author

Choose a reason for hiding this comment

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

I consider it necessary. If I remove it, here is what happens:
image
The card content is not positioned as it should be.

Copy link

@vadiimvooo vadiimvooo left a comment

Choose a reason for hiding this comment

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

Well done

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.

5 participants