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

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

Develop #4792

wants to merge 3 commits into from

Conversation

liza2000vasina
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • All component follow BEM and use SCSS

  • repaeted sizes and special colors are put to variables

  • Grid is used for the columns

  • cards are shown in 1, 2, 3 or 4 columns based on screen resolution

  • All changes on :hover are smooth

  • Code follows all the Code Style Rules ❗️

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! 🎉 Your SCSS files are well-structured and follow best practices. Just make sure all paths and variables are correctly defined to maintain consistency. Keep up the excellent work!

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

<li class="nav__item">
<a
href="#"
data-qa="nav-hover"

Choose a reason for hiding this comment

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

The 'data-qa' attribute for the fourth navigation link is correctly set to 'nav-hover' as per the task requirements.

<main class="main">
<div
class="card"
data-qa="card"

Choose a reason for hiding this comment

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

The 'data-qa' attribute for the first card is correctly set to 'card' as per the task requirements.


<button
class="card__button"
data-qa="card-hover"

Choose a reason for hiding this comment

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

The 'data-qa' attribute for the 'Buy' button inside the first card is correctly set to 'card-hover' as per the task requirements.

font-size: 12px;
font-weight: 500;
line-height: 18px;
color: $main-text-color;

Choose a reason for hiding this comment

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

Ensure that the variable '$main-text-color' is defined in your variables file. This is important for maintaining consistency across your styles.

width: 98px;
height: 14px;
margin: 0 0 16px;
color: $secondary-text-color;

Choose a reason for hiding this comment

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

Ensure that the variable '$secondary-text-color' is defined in your variables file. This is important for maintaining consistency across your styles.

padding: 50px 40px;
display: grid;

--column-count: 4;

Choose a reason for hiding this comment

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

The CSS variable '--column-count' is correctly used to manage the number of columns in the grid layout, which aligns with the task requirement for responsive design.


--column-count: 4;

grid-template-columns: repeat(var(--column-count), 200px);

Choose a reason for hiding this comment

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

The grid-template-columns property is correctly set to use the '--column-count' variable, ensuring the layout adapts to different screen sizes as specified in the task.

--column-count: 4;

grid-template-columns: repeat(var(--column-count), 200px);
gap: 46px 48px;

Choose a reason for hiding this comment

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

The gap between grid items is set to '46px 48px', which matches the task requirement for horizontal and vertical gaps.

Comment on lines +13 to +35
@media (min-width: 300px) {
.main {
--column-count: 1;
}
}

@media (min-width: 488px) {
.main {
--column-count: 2;
}
}

@media (min-width: 768px) {
.main {
--column-count: 3;
}
}

@media (min-width: 1024px) {
.main {
--column-count: 4;
}
}

Choose a reason for hiding this comment

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

The media queries are correctly implemented to adjust the '--column-count' variable based on screen width, ensuring the grid layout adapts to different screen sizes as required.

Comment on lines +17 to +19
&:nth-child(-n + 4) {
background-image: url(../images/star-active.svg);
}

Choose a reason for hiding this comment

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

The use of ':nth-child(-n + 4)' selector is correct for applying the active star background to the first four stars. Ensure the path to 'star-active.svg' is correct and the image is available in the specified directory.

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