|
| 1 | +import React from 'react'; |
| 2 | +import clsx from 'clsx'; |
| 3 | +import Translate from '@docusaurus/Translate'; |
| 4 | +import Heading from '@theme/Heading'; |
| 5 | +import Link from '@docusaurus/Link'; |
| 6 | + |
| 7 | +import WokwiCat from '/static/img/wokwi-cat.svg'; |
| 8 | + |
| 9 | +export default function NotFoundContent({className}) { |
| 10 | + return ( |
| 11 | + <main className={clsx('container margin-vert--xl', className)}> |
| 12 | + <div className="row"> |
| 13 | + <div className="col col--6 col--offset-3"> |
| 14 | + <Heading as="h1" className="hero__title"> |
| 15 | + <Translate |
| 16 | + id="theme.NotFound.title" |
| 17 | + description="The title of the 404 page"> |
| 18 | + 404 :( |
| 19 | + </Translate> |
| 20 | + </Heading> |
| 21 | + <p> |
| 22 | + <Translate |
| 23 | + id="theme.NotFound.p1" |
| 24 | + description="The 1st paragraph of the 404 page"> |
| 25 | + Sorry, the page doesn't exist or has moved. |
| 26 | + </Translate> |
| 27 | + |
| 28 | + <Translate |
| 29 | + id="theme.NotFound.p2" |
| 30 | + description="The 2nd paragraph of the 404 page" |
| 31 | + values={{ |
| 32 | + homepage: ( |
| 33 | + <Link to="/"> |
| 34 | + <Translate |
| 35 | + id="theme.NotFound.homepageLink" |
| 36 | + description="Label for the link to the homepage"> |
| 37 | + homepage |
| 38 | + </Translate> |
| 39 | + </Link> |
| 40 | + ) |
| 41 | + }}> |
| 42 | + Let's go back to the homepage. |
| 43 | + </Translate> |
| 44 | + </p> |
| 45 | + <p> |
| 46 | + <Translate |
| 47 | + id="theme.NotFound.p3" |
| 48 | + description="A paragraph describing what Wokwi offers" |
| 49 | + values={{ |
| 50 | + Arduino: <Link to="https://wokwi.com/arduino">Arduino</Link>, |
| 51 | + ESP32: <Link to="https://wokwi.com/esp32">ESP32</Link>, |
| 52 | + STM32: <Link to="https://wokwi.com/stm32">STM32</Link>, |
| 53 | + Pico: <Link to="https://wokwi.com/pi-pico">Pico</Link>, |
| 54 | + wokwiWebsite: <Link to="https://wokwi.com">wokwi.com</Link> |
| 55 | + }}> |
| 56 | + </Translate> |
| 57 | + </p> |
| 58 | + |
| 59 | + <div style={{display: 'flex', justifyContent: 'center'}}> |
| 60 | + <WokwiCat style={{fill: 'currentColor'}}/> |
| 61 | + </div> |
| 62 | + |
| 63 | + </div> |
| 64 | + </div> |
| 65 | + </main> |
| 66 | + ); |
| 67 | +} |
0 commit comments