Skip to content

Commit 6955656

Browse files
committed
404 style fixes
1 parent fcaa4a7 commit 6955656

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/pages/404.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Helmet } from 'react-helmet';
33
import { useIntl } from 'react-intl';
44

55
import Layout from '../components/Layout';
6+
import * as css from '../styles/pages/404.module.css';
67

78
const NotFoundPage = () => {
89
const intl = useIntl();
@@ -12,8 +13,10 @@ const NotFoundPage = () => {
1213
<Helmet>
1314
<title>{intl.formatMessage({ id: 'pageNotFound' })}</title>
1415
</Helmet>
15-
<h1>{intl.formatMessage({ id: 'notFound' })}</h1>
16-
<p>{intl.formatMessage({ id: 'notFoundText' })}</p>
16+
<div className={css.notfound}>
17+
<h1>{intl.formatMessage({ id: 'notFound' })}</h1>
18+
<p>{intl.formatMessage({ id: 'notFoundText' })}</p>
19+
</div>
1720
</Layout>
1821
);
1922
};

src/styles/pages/404.module.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.notfound {
2+
padding: var(--margin);
3+
}

0 commit comments

Comments
 (0)