From 5d4e67f8d96376fd1dc825362f8e151014b09e9d Mon Sep 17 00:00:00 2001 From: Marten Mrfc <101009922+Marten-Mrfc@users.noreply.github.com> Date: Wed, 31 Jul 2024 10:57:04 +0200 Subject: [PATCH] [Docs] Customized 404 page --- .../src/theme/NotFound/Content/index.tsx | 34 +++ documentation/src/theme/NotFound/index.tsx | 20 ++ documentation/static/img/404.svg | 249 ++++++++++++++++++ 3 files changed, 303 insertions(+) create mode 100644 documentation/src/theme/NotFound/Content/index.tsx create mode 100644 documentation/src/theme/NotFound/index.tsx create mode 100644 documentation/static/img/404.svg diff --git a/documentation/src/theme/NotFound/Content/index.tsx b/documentation/src/theme/NotFound/Content/index.tsx new file mode 100644 index 0000000000..1aeb94f9c2 --- /dev/null +++ b/documentation/src/theme/NotFound/Content/index.tsx @@ -0,0 +1,34 @@ +import React from "react"; +import clsx from "clsx"; +import type { Props } from "@theme/NotFound/Content"; + +export default function NotFoundContent({ className }: Props): JSX.Element { + return ( +
+
+
+ +
+
+

404

+

UH OH! You're lost.

+

+ We apologize, but the page you are trying to access cannot be found. +

Please check the URL for errors or use the button below to return to the homepage. +

If you believe this is an error, please create a question in our Discord. +

+ + + +
+
+
+ ); +} diff --git a/documentation/src/theme/NotFound/index.tsx b/documentation/src/theme/NotFound/index.tsx new file mode 100644 index 0000000000..0a43859106 --- /dev/null +++ b/documentation/src/theme/NotFound/index.tsx @@ -0,0 +1,20 @@ +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(): JSX.Element { + const title = translate({ + id: 'theme.NotFound.title', + message: 'Page Not Found', + }); + return ( + <> + + + + + + ); +} diff --git a/documentation/static/img/404.svg b/documentation/static/img/404.svg new file mode 100644 index 0000000000..d4dcfd6101 --- /dev/null +++ b/documentation/static/img/404.svg @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file