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

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

Develop #4961

wants to merge 2 commits into from

Conversation

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

Great job on your submission! 🎉 While there are some areas for improvement, such as optimizing the hover effect on the .card class and considering dynamic generation of repeated elements, these are minor issues that don't impact the core functionality. Keep up the good work and consider these suggestions for future enhancements! 😊

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

Comment on lines +107 to +406
<div class="card__price">
<div class="card__price-price">Price:</div>

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

<a
href="#"
class="card__buy"
data-qa="card-hover"
>
BUY
</a>
</div>

<div
class="card"
data-qa="card"
>
<img
class="card__iMac"
src="images/imac.jpeg"
alt="iMac 27"
/>

<p class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</p>

<p class="card__code">Product code: 195434</p>

<div class="card__stars">
<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__reviews">Reviews: 5</div>
</div>

<div class="card__price">
<div class="card__price-price">Price:</div>

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

<a
href="#"
class="card__buy"
data-qa="card-hover"
>
BUY
</a>
</div>

<div
class="card"
data-qa="card"
>
<img
class="card__iMac"
src="images/imac.jpeg"
alt="iMac 27"
/>

<p class="card__title">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</p>

<p class="card__code">Product code: 195434</p>

<div class="card__stars">
<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__reviews">Reviews: 5</div>
</div>

<div class="card__price">
<div class="card__price-price">Price:</div>

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

<a
href="#"
class="card__buy"
data-qa="card-hover"
>
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 multiple times with the same content. Consider using a templating engine or JavaScript to dynamically generate these cards. This will make your code more maintainable and easier to update in the future.

Comment on lines +38 to +39
&:hover {
transform: scale(1.2);

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 class uses transform: scale(1.2), which can cause layout shifts and affect the user experience. Consider using a more subtle transformation or adding will-change: transform; to optimize performance and prevent layout shifts.

}

body {
font-family: Roboto, serif;

Choose a reason for hiding this comment

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

Consider adding a generic fallback font after 'Roboto', such as 'sans-serif', to ensure that the text is displayed correctly if the primary font fails to load.

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