Skip to content

Commit

Permalink
docs: swizzle not found page (ajnart#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-rw authored May 3, 2023
1 parent 67f1e57 commit 5071c1d
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src/theme/NotFound.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import React from 'react';
import Translate, { translate } from '@docusaurus/Translate';
import { PageMetadata } from '@docusaurus/theme-common';
import Layout from '@theme/Layout';

export default function NotFound() {
return (
<>
<PageMetadata
title={translate({
id: 'theme.NotFound.title',
message: 'Page Not Found',
})}
/>
<Layout>
<main className="container margin-vert--xl">
<div className="row">
<div className="col col--6 col--offset-3">
<img
src="/img/undraw_illustrations/undraw_taken_re_yn20.svg"
alt=""
height={200}
width="auto"
style={{
display: 'block',
marginBottom: '2rem',
marginLeft: 'auto',
marginRight: 'auto',
}}
/>

<h1 className="hero__title">
<Translate id="theme.NotFound.title" description="The title of the 404 page">
You found a dead link!
</Translate>
</h1>
<p>
<Translate id="theme.NotFound.p1" description="The first paragraph of the 404 page">
Oops, you got a dead link. This means, that the page you're looking for
is either not available or has been deleted.
We're sorry for the inconvenience.
If you believe, that this page should be reachable,
check your URL for any typos.
</Translate>
</p>
</div>
</div>
</main>
</Layout>
</>
);
}
1 change: 1 addition & 0 deletions static/img/undraw_illustrations/undraw_taken_re_yn20.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5071c1d

Please sign in to comment.