Skip to content

Solution added#1913

Open
kyrylomanko wants to merge 2 commits into
mate-academy:masterfrom
kyrylomanko:develop
Open

Solution added#1913
kyrylomanko wants to merge 2 commits into
mate-academy:masterfrom
kyrylomanko:develop

Conversation

@kyrylomanko
Copy link
Copy Markdown

Comment thread src/styles/blocks/_catalog.scss Outdated
border-radius: 5px;
}

&__card:not(:nth-child(4n)) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remove unnecessary margin-right style for cards since the gap property in the grid layout is already handling the space between cards.

Comment thread src/styles/blocks/_catalog.scss Outdated
justify-content: center;
gap: 48px;

max-width: 944px;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You don't need to add a max width here. Just use the grid template

Comment thread src/styles/blocks/_catalog.scss Outdated
}
}

@media (max-width: 1023) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Use correct breakpoints for the media queries. Check all breakpoints, please
image

image

Copy link
Copy Markdown

@qoa11a qoa11a left a comment

Choose a reason for hiding this comment

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

Good job! 👍

Comment thread readme.md
# Frontend practice with catalog page using grid
Replace `<your_account>` with your Github username and copy the links to Pull Request description:
- [DEMO LINK](https://<your_account>.github.io/layout_catalog_grid/)
- [DEMO LINK](https://kyrylomanko.github.io/layout_catalog_grid/)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
- [DEMO LINK](https://kyrylomanko.github.io/layout_catalog_grid/)
- [DEMO LINK](https://kyrylomanko.github.io/layout_catalog_grid/)

.catalog {
display: grid;
justify-content: center;
margin: 0 auto;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It's redundant as the width is 100% anyway and top and bottom margins are zero by default.

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.

3 participants