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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

WhiteP8wder8
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 a few minor improvements suggested, such as ensuring all variables are defined and considering dynamic generation for repeated elements, your implementation meets the core requirements. Keep up the good work and continue refining your skills! 😊

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

Comment on lines +154 to +419
<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>

<p class="card__review-amount">Reviews: 5</p>
</div>

<div class="card__price">
<p class="card__price-label">Price:</p>

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

<a
href="#buy-link"
class="button card__button"
>
Buy
</a>
</div>
<div class="card">
<img
class="card__image"
src="images/imac.jpeg"
alt="iMac image"
/>

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

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

<div class="card__review">
<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>

<p class="card__review-amount">Reviews: 5</p>
</div>

<div class="card__price">
<p class="card__price-label">Price:</p>

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

<a
href="#buy-link"
class="button card__button"
>
Buy
</a>
</div>
<div class="card">
<img
class="card__image"
src="images/imac.jpeg"
alt="iMac image"
/>

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

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

<div class="card__review">
<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>

<p class="card__review-amount">Reviews: 5</p>
</div>

<div class="card__price">
<p class="card__price-label">Price:</p>

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

<a
href="#buy-link"
class="button card__button"
>
Buy
</a>
</div>

Choose a reason for hiding this comment

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

The card elements are repeated multiple times with the same content. Consider using a template or a loop in your JavaScript to dynamically generate these cards if they are meant to display similar data. This will make your code more maintainable and reduce redundancy.


border: 1px #f3f3f3 solid;

transition: transform $transition-time;

Choose a reason for hiding this comment

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

The variable $transition-time is used here, but it's not defined within this file. Ensure that $transition-time is defined in a global variables file or imported correctly.

font-weight: 500;
line-height: 18px;
padding-bottom: 4px;
color: $main-color;

Choose a reason for hiding this comment

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

The variable $main-color is used here, but it's not defined within this file. Ensure that $main-color is defined in a global variables file or imported correctly.

font-weight: 400;
line-height: 14px;
padding-bottom: 16px;
color: $secondary-color;

Choose a reason for hiding this comment

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

The variable $secondary-color is used here, but it's not defined within this file. Ensure that $secondary-color is defined in a global variables file or imported correctly.

font-weight: 400;
line-height: 14px;
text-align: right;
color: $main-color;

Choose a reason for hiding this comment

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

The variable $main-color is used here, but it's not defined within this file. Ensure that $main-color is defined in a global variables file or imported correctly.

text-transform: uppercase;
font-size: 12px;
line-height: 14px;
color: $main-color;

Choose a reason for hiding this comment

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

The variable $main-color is used here, but it's not defined within this file. Ensure that $main-color is defined in a global variables file or imported correctly.

color: $main-color;
align-content: center;
text-decoration: none;
transition: color $transition-time;

Choose a reason for hiding this comment

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

The variable $transition-time is used here, but it's not defined within this file. Ensure that $transition-time is defined in a global variables file or imported correctly.

transition: color $transition-time;

&:hover {
color: $blue-color;

Choose a reason for hiding this comment

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

The variable $blue-color is used here, but it's not defined within this file. Ensure that $blue-color is defined in a global variables file or imported correctly.

}

&.is-active {
color: $blue-color;

Choose a reason for hiding this comment

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

The variable $blue-color is used here, but it's not defined within this file. Ensure that $blue-color is defined in a global variables file or imported correctly.


&::after {
content: '';
background-color: $blue-color;

Choose a reason for hiding this comment

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

The variable $blue-color is used here, but it's not defined within this file. Ensure that $blue-color is defined in a global variables file or imported correctly.

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