Skip to content

Commit 6abbd65

Browse files
committed
ibg-CORPWEB-3437-404-page
1 parent 06cc451 commit 6abbd65

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import React from "react";
2+
import clsx from "clsx";
3+
import Translate from "@docusaurus/Translate";
4+
import type { Props } from "@theme/NotFound/Content";
5+
import Heading from "@theme/Heading";
6+
7+
export default function NotFoundContent({ className }: Props): JSX.Element {
8+
return (
9+
<main className={clsx("container margin-vert--xl", className)}>
10+
<div className="row">
11+
<div className="col col--6 col--offset-3">
12+
<Heading as="h1" className="hero__title">
13+
<Translate
14+
id="theme.NotFound.title"
15+
description="The title of the 404 page"
16+
>
17+
Page Not Found
18+
</Translate>
19+
</Heading>
20+
<p>
21+
<Translate
22+
id="theme.NotFound.p1"
23+
description="The first paragraph of the 404 page"
24+
>
25+
We could not find what you were looking for.
26+
</Translate>
27+
</p>
28+
<p>
29+
<Translate
30+
id="theme.NotFound.p2"
31+
description="The 2nd paragraph of the 404 page"
32+
>
33+
Please contact the owner of the site that linked you to the
34+
original URL and let them know their link is broken.
35+
</Translate>
36+
</p>
37+
</div>
38+
</div>
39+
</main>
40+
);
41+
}

src/theme/NotFound/index.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from "react";
2+
import { translate } from "@docusaurus/Translate";
3+
import { PageMetadata } from "@docusaurus/theme-common";
4+
import Layout from "@theme/Layout";
5+
import NotFoundContent from "@theme/NotFound/Content";
6+
7+
export default function Index(): JSX.Element {
8+
const title = translate({
9+
id: "theme.NotFound.title",
10+
message: "Page Not Found",
11+
});
12+
13+
return (
14+
<>
15+
<PageMetadata title={title} />
16+
<Layout>
17+
<NotFoundContent />
18+
</Layout>
19+
</>
20+
);
21+
}

0 commit comments

Comments
 (0)