diff --git a/i18n/en/code.json b/i18n/en/code.json index a193ee3c..12fa324a 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -1,16 +1,24 @@ { "theme.NotFound.title": { - "message": "Page Not Found", + "message": "404 :(", "description": "The title of the 404 page" }, "theme.NotFound.p1": { - "message": "We could not find what you were looking for.", - "description": "The first paragraph of the 404 page" + "message": "Sorry, the page doesn't exist or has moved.", + "description": "The 1st paragraph of the 404 page" }, "theme.NotFound.p2": { - "message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.", + "message": "Let's go back to the {homepage}.", "description": "The 2nd paragraph of the 404 page" }, + "theme.NotFound.homepageLink": { + "message": "homepage", + "description": "Label for the link to the homepage" + }, + "theme.NotFound.p3": { + "message": "Wokwi is an online electronics simulator, which can be used to simulate {Arduino}, {ESP32}, {STM32} & {Pico} projects, with support for many other popular boards and components. Get started for free at {wokwiWebsite}.", + "description": "A paragraph describing what Wokwi offers" + }, "theme.AnnouncementBar.closeButtonAriaLabel": { "message": "Close", "description": "The ARIA label for close button of announcement bar" diff --git a/src/theme/NotFound/Content/index.js b/src/theme/NotFound/Content/index.js new file mode 100644 index 00000000..e61c2068 --- /dev/null +++ b/src/theme/NotFound/Content/index.js @@ -0,0 +1,67 @@ +import React from 'react'; +import clsx from 'clsx'; +import Translate from '@docusaurus/Translate'; +import Heading from '@theme/Heading'; +import Link from '@docusaurus/Link'; + +import WokwiCat from '/static/img/wokwi-cat.svg'; + +export default function NotFoundContent({className}) { + return ( +
+
+
+ + + 404 :( + + +

+ + Sorry, the page doesn't exist or has moved. + +   + + + homepage + + + ) + }}> + Let's go back to the homepage. + +

+

+ Arduino, + ESP32: ESP32, + STM32: STM32, + Pico: Pico, + wokwiWebsite: wokwi.com + }}> + +

+ +
+ +
+ +
+
+
+ ); +} diff --git a/src/theme/NotFound/index.js b/src/theme/NotFound/index.js new file mode 100644 index 00000000..3b551f9e --- /dev/null +++ b/src/theme/NotFound/index.js @@ -0,0 +1,19 @@ +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/static/img/wokwi-cat.svg b/static/img/wokwi-cat.svg new file mode 100644 index 00000000..0acedf7a --- /dev/null +++ b/static/img/wokwi-cat.svg @@ -0,0 +1,39 @@ + + + + + +