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

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

Conversation

Vladyslava-hub
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 on this project! There are a few critical issues that need to be addressed before we can approve the pull request:

  1. Grid Usage for Cards: The requirement specifies using a grid layout for the cards, but currently, flexbox is being used. This needs to be corrected to meet the task requirements.

  2. HTML Tag Issue: The <html> tag is not properly closed, which could lead to rendering issues. Please ensure it is correctly formatted.

  3. Card Hover Effect: The hover effect on the .card__buy element makes the text color the same as the border, which can make it unreadable. Consider adjusting the color for better readability.

  4. Responsive Design: The fixed width for .cards might not be responsive on smaller screens. Consider using a percentage-based width or media queries to ensure the layout adapts to different screen sizes.

  5. Placeholder Content: All product cards have the same content, which seems to be placeholder data. Please update each card with unique product details.

Once these issues are addressed, your code will be in great shape! Keep up the great work, and don't hesitate to reach out if you need any help. 😊

✨ 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
@@ -1,5 +1,8 @@
<!doctype html>
<html lang="en">
<html

Choose a reason for hiding this comment

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

The <html> tag is not properly closed. It should be <html> instead of <html /++2++/>.

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.

All product cards have the same content, including the image, title, product code, reviews, and price. This might be placeholder content and should be updated with unique data for each product.

Comment on lines 81 to 84
&:hover {
transform: scale(1.2);
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 .card__buy changes the text color to $main-color, which is the same as the border color. This can make the text unreadable against the white background. Consider using a different color for the text or the border to ensure readability.

flex-wrap: wrap;

box-sizing: border-box;
width: 1024px;

Choose a reason for hiding this comment

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

The fixed width of 1024px for .cards might not be responsive on smaller screens. Consider using a percentage-based width or media queries to ensure the layout adapts to different screen sizes.

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 job on your progress! 🎉 Your code is shaping up well, but there are a few key areas to focus on for improvement:

  1. Card Hover Effect: The hover effect on the .card__buy element needs attention. The text color becomes the same as the border, making it unreadable. Adjust the button background to #fff and text color to #00acdc on hover for better contrast.

  2. Unique Product Details: All product cards currently have placeholder content. Ensure each card has unique product details to meet the task requirements.

These adjustments will enhance the functionality and readability of your project. Remember, addressing these issues will not only improve your current work but also help you grow as a developer. Keep up the great work and continue learning from these experiences! 🚀

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

Comment on lines +116 to +391
<img
class="card__image"
src="images/imac.jpeg"
alt="iMac A1419"
/>

<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 A1419"
/>

<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 A1419"
/>

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

All product cards have the same content, which appears to be placeholder data. Please update each card with unique product details as per the task requirements.

Comment on lines +76 to +78
&:hover {
transform: scale(1.2);
color: #fff; /* Ensure this contrasts well with the border color */

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 .card__buy element makes the text color the same as the border, which can make it unreadable. Consider adjusting the color for better readability.

Comment on lines +245 to +248
.card__buy:hover {
-webkit-transform: scale(1.2);
transform: scale(1.2);
color: #fff; /* Ensure this contrasts well with the border color */

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 .card__buy element makes the text color the same as the border, which can make it unreadable. Consider adjusting the color for better readability.

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