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

Develop #4845

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

Develop #4845

wants to merge 3 commits into from

Conversation

zhudim
Copy link

@zhudim zhudim commented Nov 12, 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 done a great job overall, there are a few critical issues that need to be addressed before we can approve the pull request:

  1. Grid Usage for Cards: The task requires using a grid layout for the cards, but the current implementation uses flexbox. This is a core requirement that needs to be met.

  2. Card Hover Effect: The hover effect should increase the card size by 20% without affecting neighboring cards. Currently, it only scales the card__buy button, which doesn't meet the task's requirements.

  3. Main Tag for Cards Container: The cards container should be wrapped in a <main> tag to meet semantic HTML requirements.

These changes are essential to ensure the functionality and requirements of the task are fully met. Once these are addressed, your code will be in great shape! Keep up the great work, and feel free to reach out if you have any questions or need further assistance. 🌟

✨ 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
Comment on lines 158 to 394
<img
class="card__image"
src="images/imac.jpeg"
alt="iMac"
/>

<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<div class="card__code">Product code: 195434</div>
<div class="card__review-container">
<div class="stars stars--4">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

<div class="card__review-count">Reviews: 5</div>
</div>
<div class="card__price-container">
<div class="card__price-label">Price:</div>
<div class="card__price">$2,199</div>
</div>
<a
class="card__buy"
href="#"
>
Buy
</a>
</div>

<div class="card cards__card">
<img
class="card__image"
src="images/imac.jpeg"
alt="iMac"
/>

<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<div class="card__code">Product code: 195434</div>
<div class="card__review-container">
<div class="stars stars--4">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

<div class="card__review-count">Reviews: 5</div>
</div>
<div class="card__price-container">
<div class="card__price-label">Price:</div>
<div class="card__price">$2,199</div>
</div>
<a
class="card__buy"
href="#"
>
Buy
</a>
</div>

<div class="card cards__card">
<img
class="card__image"
src="images/imac.jpeg"
alt="iMac"
/>

<h2 class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</h2>
<div class="card__code">Product code: 195434</div>
<div class="card__review-container">
<div class="stars stars--4">
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
<div class="stars__star"></div>
</div>

<div class="card__review-count">Reviews: 5</div>
</div>
<div class="card__price-container">
<div class="card__price-label">Price:</div>
<div class="card__price">$2,199</div>
</div>
<a
class="card__buy"
href="#"
>
Buy
</a>
</div>

Choose a reason for hiding this comment

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

The product cards are repeated with the same content. Consider using a templating approach or JavaScript to dynamically generate these cards to avoid redundancy and make the code more maintainable.

Comment on lines +83 to +84
color: $main-color;
background-color: #fff;

Choose a reason for hiding this comment

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

The hover effect on the &__buy element changes the text color to $main-color, which might not be visible against the background color #fff. Consider adjusting the text color or background color to ensure readability.

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.

Great effort on your submission! 🎉 While your code is on the right track, there are a few critical issues that need attention to fully meet the task requirements:

  1. Grid Usage for Cards: The task specifies using a grid layout for the cards, but the current implementation still uses flexbox. Please update the .cards container to use display: grid; and adjust the grid properties to accommodate different screen resolutions.

  2. Card Hover Effect: Ensure the hover effect scales the entire card by 20% without impacting neighboring cards. The current implementation uses transform: scale(1.2);, which is correct, but make sure to set z-index to prevent overlap issues.

  3. Semantic HTML: The use of the <main> tag for the cards container is correct. Just ensure the internal layout uses a grid system as required.

These adjustments are crucial for the functionality and compliance with the task specifications. Addressing these will enhance your code quality and help you learn from this experience. Keep up the good work, and continue improving your skills! 🚀

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

</nav>
</header>

<main class="cards">

Choose a reason for hiding this comment

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

The <main> tag is correctly used here for semantic HTML. However, ensure that the layout inside uses a grid system as required by the task.


<main class="cards">
<div
class="card cards__card"

Choose a reason for hiding this comment

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

Ensure that the card layout uses a CSS grid instead of flexbox to meet the task requirements.

<div class="card__price">$2,199</div>
</div>
<a
class="card__buy"

Choose a reason for hiding this comment

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

The hover effect should be applied to the entire card, not just the card__buy button. Ensure that the card scales by 20% on hover without affecting neighboring cards.

Comment on lines +2 to +3
display: flex;
flex-wrap: wrap;

Choose a reason for hiding this comment

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

The .cards container is using flexbox, but the task requires a grid layout. Please change display: flex; to display: grid; and adjust the grid properties accordingly.

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