-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
base: master
Are you sure you want to change the base?
Develop #4845
Conversation
zhudim
commented
Nov 12, 2024
- DEMO LINK
- TEST REPORT LINK
There was a problem hiding this 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:
-
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.
-
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. -
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
<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> |
There was a problem hiding this comment.
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.
color: $main-color; | ||
background-color: #fff; |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
There was a problem hiding this 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.
There was a problem hiding this 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:
-
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 usedisplay: grid;
and adjust the grid properties to accommodate different screen resolutions. -
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 setz-index
to prevent overlap issues. -
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"> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.
display: flex; | ||
flex-wrap: wrap; |
There was a problem hiding this comment.
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.