From 6d86fe188a499bc4096066d3dfe7e538f8e7057a Mon Sep 17 00:00:00 2001 From: Victor Tran Date: Thu, 8 Jun 2023 23:58:28 +1000 Subject: [PATCH] Update 404 --- src/components/notfound/crash.svg | 117 +++++++++++++++++++++++ src/components/notfound/index.js | 14 +++ src/components/notfound/index.module.css | 36 +++++++ src/theme/NotFound.js | 20 ++++ 4 files changed, 187 insertions(+) create mode 100644 src/components/notfound/crash.svg create mode 100644 src/components/notfound/index.js create mode 100644 src/components/notfound/index.module.css create mode 100644 src/theme/NotFound.js diff --git a/src/components/notfound/crash.svg b/src/components/notfound/crash.svg new file mode 100644 index 0000000..a9e6a3a --- /dev/null +++ b/src/components/notfound/crash.svg @@ -0,0 +1,117 @@ + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/components/notfound/index.js b/src/components/notfound/index.js new file mode 100644 index 0000000..a5abdef --- /dev/null +++ b/src/components/notfound/index.js @@ -0,0 +1,14 @@ +import React from "react"; +import Crash from "./crash.svg"; +import Styles from "./index.module.css"; + +export default function() { + return
+

Oh, bonkers!

+ +
+
Let's get you back on the right track.
+ +
+
+} \ No newline at end of file diff --git a/src/components/notfound/index.module.css b/src/components/notfound/index.module.css new file mode 100644 index 0000000..5563596 --- /dev/null +++ b/src/components/notfound/index.module.css @@ -0,0 +1,36 @@ +.root { + display: flex; + flex-grow: 1; + + padding-top: 50px; + padding-bottom: 50px; + + flex-direction: column; + align-items: center; + justify-content: center; + + gap: 20px; +} + +.crash { + width: 80vw; + height: 80vw; + max-width: 128px; + max-height: 128px; + opacity: 0.5; + + --svg-fg: var(--ifm-font-color-base); +} + +.heading { + margin: 0; +} + +.lower { + display: flex; + + flex-direction: column; + align-items: center; + + gap: 9px; +} \ No newline at end of file diff --git a/src/theme/NotFound.js b/src/theme/NotFound.js new file mode 100644 index 0000000..ff2f77b --- /dev/null +++ b/src/theme/NotFound.js @@ -0,0 +1,20 @@ +import React from 'react'; +import Translate, {translate} from '@docusaurus/Translate'; +import {PageMetadata} from '@docusaurus/theme-common'; +import Layout from '@theme/Layout'; +import CustomNotFound from '@site/src/components/notfound' +export default function NotFound() { + return ( + <> + + + + + + ); +}