From cad8edc3955fd633786627b12bf6a4aef8339476 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Mon, 17 Jul 2023 19:00:26 +0330 Subject: [PATCH] feat: custom 404 page, refs #98 --- .../src/client/theme/NotFound/index.tsx | 63 +++++++++++++++++++ .../client/theme/NotFound/styles.module.scss | 24 +++++++ 2 files changed, 87 insertions(+) create mode 100644 packages/logos-docusaurus-theme/src/client/theme/NotFound/index.tsx create mode 100644 packages/logos-docusaurus-theme/src/client/theme/NotFound/styles.module.scss diff --git a/packages/logos-docusaurus-theme/src/client/theme/NotFound/index.tsx b/packages/logos-docusaurus-theme/src/client/theme/NotFound/index.tsx new file mode 100644 index 0000000..dfc93db --- /dev/null +++ b/packages/logos-docusaurus-theme/src/client/theme/NotFound/index.tsx @@ -0,0 +1,63 @@ +import React from 'react' +import Translate, { translate } from '@docusaurus/Translate' +import { PageMetadata } from '@docusaurus/theme-common' +import Layout from '@theme/Layout' +import styles from './styles.module.scss' +import clsx from 'clsx' +import { Button, Typography } from '@acid-info/lsd-react' +import Link from '@docusaurus/Link' + +export default function NotFound(): JSX.Element { + 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/packages/logos-docusaurus-theme/src/client/theme/NotFound/styles.module.scss b/packages/logos-docusaurus-theme/src/client/theme/NotFound/styles.module.scss new file mode 100644 index 0000000..be21ddd --- /dev/null +++ b/packages/logos-docusaurus-theme/src/client/theme/NotFound/styles.module.scss @@ -0,0 +1,24 @@ +.root { + width: 100%; + display: flex; + flex-direction: column; + align-items: center; + padding: 1rem !important; + + > div { + width: 100%; + max-width: 796px !important; + } + + > div > div { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 1rem; + padding: 0 !important; + } + + a { + margin-top: 2.5rem; + } +}