From bb70a2c2365acaeb49a56d8b3ddb4ef6598dda52 Mon Sep 17 00:00:00 2001 From: Shaun Struwig <41984034+Blargian@users.noreply.github.com> Date: Mon, 22 Sep 2025 12:16:13 +0200 Subject: [PATCH] Fix padding of 404 page --- src/theme/NotFound/Content/index.js | 37 ++++++++++++++++++++++++++++ src/theme/NotFound/index.js | 17 +++++++++++++ src/theme/NotFound/styles.module.css | 7 ++++++ 3 files changed, 61 insertions(+) create mode 100644 src/theme/NotFound/Content/index.js create mode 100644 src/theme/NotFound/index.js create mode 100644 src/theme/NotFound/styles.module.css diff --git a/src/theme/NotFound/Content/index.js b/src/theme/NotFound/Content/index.js new file mode 100644 index 00000000000..818b5dd19be --- /dev/null +++ b/src/theme/NotFound/Content/index.js @@ -0,0 +1,37 @@ +import React from 'react'; +import clsx from 'clsx'; +import Translate from '@docusaurus/Translate'; +import Heading from '@theme/Heading'; +import styles from "../styles.module.css"; +export default function NotFoundContent({className}) { + return ( + + + + + + Page Not Found + + + + + We could not find what you were looking for. + + + + + Please contact the owner of the site that linked you to the + original URL and let them know their link is broken. + + + + + + ); +} diff --git a/src/theme/NotFound/index.js b/src/theme/NotFound/index.js new file mode 100644 index 00000000000..55e732e66f5 --- /dev/null +++ b/src/theme/NotFound/index.js @@ -0,0 +1,17 @@ +import React from 'react'; +import {translate} from '@docusaurus/Translate'; +import {PageMetadata} from '@docusaurus/theme-common'; +import Layout from '@theme/Layout'; +import NotFoundContent from '@theme/NotFound/Content'; +export default function Index() { + const title = translate({ + id: 'theme.NotFound.title', + message: 'Page Not Found', + }); + return ( + <> + + + > + ); +} diff --git a/src/theme/NotFound/styles.module.css b/src/theme/NotFound/styles.module.css new file mode 100644 index 00000000000..a7485c93564 --- /dev/null +++ b/src/theme/NotFound/styles.module.css @@ -0,0 +1,7 @@ +.notFoundMain { + display: flex; + flex-direction: column; + align-items: center; + text-align: center; + padding-top: 10rem; +} \ No newline at end of file
+ + We could not find what you were looking for. + +
+ + Please contact the owner of the site that linked you to the + original URL and let them know their link is broken. + +