Skip to content

Commit 16dbfcf

Browse files
committed
feat(404): typography
1 parent 3a3fa28 commit 16dbfcf

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

src/pages/NotFound/MediaNotFound.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import {
22
Col,
33
Grid,
44
Row,
5-
theme,
65
XXXL,
76
XXL,
8-
MD,
97
Paragraph,
108
Button,
9+
TextDescription,
1110
} from '@appquality/unguess-design-system';
1211
import { useTranslation } from 'react-i18next';
1312
import { useNavigate } from 'react-router-dom';
@@ -37,22 +36,20 @@ const NotFound = () => {
3736
</Col>
3837
<Col md={6} alignSelf="center">
3938
<Paragraph>
40-
<XXXL style={{ color: theme.palette.blue[600] }}>
41-
{t('__MEDIA_404_PAGE_TITLE MAX:10')}
42-
</XXXL>
39+
<XXXL>{t('__MEDIA_404_PAGE_TITLE MAX:10')}</XXXL>
4340
</Paragraph>
4441
<Paragraph>
45-
<XXL style={{ color: theme.palette.blue[600] }}>
42+
<XXL color={appTheme.palette.blue[600]}>
4643
{t('__MEDIA_404_PAGE_SUB_TITLE MAX:80')}
4744
</XXL>
4845
</Paragraph>
4946
<Paragraph>
50-
<MD style={{ color: theme.palette.grey[600] }}>
47+
<TextDescription>
5148
{t('__MEDIA_404_PAGE_DESCRIPTION')}
52-
</MD>
49+
</TextDescription>
5350
</Paragraph>
5451

55-
<Paragraph style={{ marginTop: theme.space.lg }}>
52+
<Paragraph style={{ marginTop: appTheme.space.lg }}>
5653
<Button isAccent isPrimary onClick={() => navigate(homeRoute)}>
5754
{t('__MEDIA_404_PAGE_BUTTON')}
5855
</Button>

src/pages/NotFound/NotFound.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ import {
22
Col,
33
Grid,
44
Row,
5-
theme,
65
XXXL,
76
XXL,
8-
MD,
97
Paragraph,
108
Button,
9+
TextDescription,
1110
} from '@appquality/unguess-design-system';
1211
import { useTranslation } from 'react-i18next';
1312
import { useNavigate } from 'react-router-dom';
@@ -37,22 +36,18 @@ const NotFound = () => {
3736
</Col>
3837
<Col md={6} alignSelf="center">
3938
<Paragraph>
40-
<XXXL style={{ color: theme.palette.blue[600] }}>
41-
{t('__404_PAGE_TITLE MAX:10')}
42-
</XXXL>
39+
<XXXL>{t('__404_PAGE_TITLE MAX:10')}</XXXL>
4340
</Paragraph>
4441
<Paragraph>
45-
<XXL style={{ color: theme.palette.blue[600] }}>
42+
<XXL color={appTheme.palette.blue[600]}>
4643
{t('__404_PAGE_SUB_TITLE MAX:80')}
4744
</XXL>
4845
</Paragraph>
4946
<Paragraph>
50-
<MD style={{ color: theme.palette.grey[600] }}>
51-
{t('__404_PAGE_DESCRIPTION')}
52-
</MD>
47+
<TextDescription>{t('__404_PAGE_DESCRIPTION')}</TextDescription>
5348
</Paragraph>
5449

55-
<Paragraph style={{ marginTop: theme.space.lg }}>
50+
<Paragraph style={{ marginTop: appTheme.space.lg }}>
5651
<Button isAccent isPrimary onClick={() => navigate(homeRoute)}>
5752
{t('__404_PAGE_BUTTON')}
5853
</Button>

0 commit comments

Comments
 (0)