-
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.
Исправил путаницу в названиях маршрутов, поскольку ранее маршрут стра…
…ницы отзывов назывался reviews, а страница с обзорами тоже reviews. Теперь отзывы это feedbacks. Кроме того добавил в shared функцию прокрутки скрола в начало, для исправления поведения react-router. Добавил вызов функции на страницы отзывов и продукта.
- Loading branch information
1 parent
743d2bd
commit 322963b
Showing
13 changed files
with
90 additions
and
10 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 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 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 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@use '../../shared/styles/utils/mixins' as media; | ||
|
||
.reviewsPage { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
|
||
&__pageDescriptor { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
} | ||
|
||
&__contant { | ||
margin-top: 40px; | ||
width: 100%; | ||
display: flex; | ||
align-items: flex-start; | ||
gap: 25px; | ||
|
||
@include media.respond-to('large') { | ||
flex-direction: column-reverse; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { FC } from 'react' | ||
|
||
import { Routes } from '@/shared/config/routerConfig/routes' | ||
import Breadcrumbs from '@/shared/ui/Breadcrumbs/Breadcrumbs' | ||
import Heading from '@/shared/ui/Heading/Heading' | ||
import Paragraph from '@/shared/ui/Paragraph/Paragraph' | ||
import WrapperForMainContent from '@/shared/ui/WrapperForMainContent/WrapperForMainContent' | ||
|
||
import styles from './ReviewsPage.module.scss' | ||
|
||
/** | ||
* Страница с обзорами. | ||
* TODO наполнить страницу смыслом | ||
*/ | ||
export const ReviewsPage: FC = () => { | ||
const links = [ | ||
{ heading: 'Главная', href: '/' }, | ||
{ heading: 'Блог', href: Routes.BLOG }, | ||
{ heading: 'Обзоры', href: '' } | ||
] | ||
|
||
return ( | ||
<WrapperForMainContent> | ||
<div className={styles.reviewsPage}> | ||
<div className={styles.reviewsPage__pageDescriptor}> | ||
<Heading>Обзоры</Heading> | ||
<Breadcrumbs links={links} /> | ||
</div> | ||
<div className={styles.reviewsPage__contant}> | ||
<Paragraph>Обзоры</Paragraph> | ||
</div> | ||
</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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** | ||
* Функция выполняет скролл в верх страницы | ||
*/ | ||
export const scrollPageToTop = () => { | ||
window.scrollTo(0, 0) | ||
} |
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 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