Skip to content

Catalog-grid#1910

Open
Kacper-Leman wants to merge 3 commits into
mate-academy:masterfrom
Kacper-Leman:develop
Open

Catalog-grid#1910
Kacper-Leman wants to merge 3 commits into
mate-academy:masterfrom
Kacper-Leman:develop

Conversation

@Kacper-Leman
Copy link
Copy Markdown

Copy link
Copy Markdown

@darokrk darokrk left a comment

Choose a reason for hiding this comment

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

Approved 👍🏽 good job, but please look at my mentions and fix them before you go next :)

Comment thread src/index.html Outdated
</li>
<li class="nav__item">
<a href="" class="nav__link">Laptops & computers</a>
<a href="#laptopts" class="nav__link">Laptops & computers</a>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Fix the typo in the 'href' attribute value. Change '#laptopts' to '#laptops'

Comment thread src/styles/_catalog.scss Outdated
gap: 48px;
justify-content: center;
margin: 0 auto;
grid-template-columns: repeat(1, $cardWidth);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think you don't need this value here, they will always set automatically 1 element in breakpoint below 488px

Comment thread src/styles/_catalog.scss

&__card:not(:nth-child(4n)) {
margin-right: 48px;
@media (min-width: 488px) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Generally good practice is to use whole styling properties for each class in one place. So those breakpoints are for .catalog class so move them up before &__card and not behind as you do now

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