-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #418 from Studio-Yandex-Practicum/enhancemant_408_…
…category_page Страница всех категорий. Задачи 408 и 409
- Loading branch information
Showing
7 changed files
with
56 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import Breadcrumbs from '@/shared/ui/Breadcrumbs/Breadcrumbs' | ||
import Heading from '@/shared/ui/Heading/Heading' | ||
import Paragraph from '@/shared/ui/Paragraph/Paragraph' | ||
import Subheading from '@/shared/ui/Subheading/Subheading' | ||
import WrapperForMainContent from '@/shared/ui/WrapperForMainContent/WrapperForMainContent' | ||
import CategoryCardList from '@/widgets/CategoryCardList/CategoryCardList' | ||
import NavigationLink from '@/widgets/NavigationLink/NavigationLink' | ||
|
||
import styles from './CategoryPage.module.scss' | ||
|
||
const links = [ | ||
{ heading: 'Главная', href: '/' }, | ||
{ heading: 'Все категории', href: '' } | ||
] | ||
|
||
/** | ||
* Страница всех категорий | ||
*/ | ||
|
||
export const CategoryPage = () => { | ||
return ( | ||
<div className={styles['category-page']}> | ||
<Heading className={styles['category-page__title']}>Все категории</Heading> | ||
<div className={styles['category-page__nav']}> | ||
<NavigationLink label={'Главная'} to={'/'} /> | ||
<Paragraph> / Все категории</Paragraph> | ||
<WrapperForMainContent> | ||
<div className={styles['category-page']}> | ||
<Heading className={styles['category-page__title']}>Все категории</Heading> | ||
<Breadcrumbs links={links} /> | ||
<Subheading className={styles['category-page__subtiitle']}>Категории</Subheading> | ||
<CategoryCardList /> | ||
</div> | ||
<Paragraph className={styles['category-page__subtiitle']}>Категории</Paragraph> | ||
<CategoryCardList /> | ||
</div> | ||
</WrapperForMainContent> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
.categoryCardList{ | ||
margin-right: 24px; | ||
display: grid; | ||
justify-content: center; | ||
row-gap: 19px; | ||
column-gap: 19px; | ||
grid-template-columns: repeat(auto-fit, 255px); | ||
margin-bottom: 115px; | ||
} | ||
.categoryCardList { | ||
margin-top: 24px; | ||
display: grid; | ||
justify-content: space-between; | ||
row-gap: 19px; | ||
column-gap: 19px; | ||
grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); | ||
margin-bottom: 115px; | ||
} |