-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ani-kalpachka
committed
Aug 21, 2023
1 parent
80b1964
commit 9668f65
Showing
6 changed files
with
54 additions
and
56 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.
20 changes: 20 additions & 0 deletions
20
src/components/common/errors/NotFoundPage/NotFoundPage.styled.tsx
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,20 @@ | ||
import { Stack, Typography } from '@mui/material' | ||
import { styled } from '@mui/material/styles' | ||
|
||
import LinkButton from 'components/common/LinkButton' | ||
import theme from 'common/theme' | ||
|
||
export const Root = styled(Stack)(() => ({ | ||
alignItems: 'center', | ||
gap: theme.spacing(5), | ||
marginTop: theme.spacing(8), | ||
})) | ||
|
||
export const ErrorMessage = styled(Typography)(() => ({ | ||
maxWidth: theme.spacing(80), | ||
})) | ||
|
||
export const BackButton = styled(LinkButton)(() => ({ | ||
color: theme.palette.primary.dark, | ||
borderColor: theme.palette.primary.dark, | ||
})) |
31 changes: 31 additions & 0 deletions
31
src/components/common/errors/NotFoundPage/NotFoundPage.tsx
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,31 @@ | ||
import { useTranslation } from 'next-i18next' | ||
import { Grid } from '@mui/material' | ||
import ArrowBackIcon from '@mui/icons-material/ArrowBack' | ||
|
||
import { routes } from 'common/routes' | ||
import Layout from 'components/client/layout/Layout' | ||
import NotFoundIllustration from '../assets/NotFoundIllustration' | ||
|
||
import { BackButton, ErrorMessage, Root } from './NotFoundPage.styled' | ||
|
||
export default function NotFoundPage() { | ||
const { t } = useTranslation('common') | ||
|
||
return ( | ||
<Layout> | ||
<Root> | ||
<Grid container item xs={12} sm={7} lg={5}> | ||
<NotFoundIllustration /> | ||
</Grid> | ||
<ErrorMessage variant="body2">{t('errors.404Message')}</ErrorMessage> | ||
<BackButton | ||
size="large" | ||
startIcon={<ArrowBackIcon />} | ||
variant="outlined" | ||
href={routes.index}> | ||
{t('errors.backButtonLabel')} | ||
</BackButton> | ||
</Root> | ||
</Layout> | ||
) | ||
} |
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