Skip to content

Commit 8353c4e

Browse files
fix: updated not found page
Signed-off-by: Iam-karan-suresh <[email protected]>
1 parent 6a8ec1a commit 8353c4e

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

src/theme/NotFound/Content/index.js

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
1-
import React, {useEffect} from "react";
1+
import React from "react";
2+
import {translate} from "@docusaurus/Translate";
3+
import Link from "@docusaurus/Link";
24
import {PageMetadata} from "@docusaurus/theme-common";
35

4-
export default function Index() {
5-
useEffect(() => {
6-
window.location.href = "/docs/";
7-
}, 2000);
8-
[];
9-
6+
export default function NotFound() {
107
return (
118
<>
12-
<PageMetadata title="Redirecting..." />
13-
<main className="margin-vert--xl container">
9+
<PageMetadata title="Page Not Found" />
10+
<main className="container margin-vert--xl">
1411
<div className="row">
15-
<div className="col col--6 col--offset-3">
16-
<h1 className="hero__title">Redirecting to home page...</h1>
12+
<div className="col col--6 col--offset-3 text-center">
13+
<h1 className="hero__title">404: Page Not Found</h1>
14+
<p className="padding-vert--md">
15+
We could not find what you were looking for.<br />
16+
The page you requested may have been moved or deleted.
17+
</p>
18+
<div className="margin-vert--lg">
19+
<Link to="/docs/" className="button button--primary margin-right--md">
20+
Back to Homepage
21+
</Link>
22+
<Link to="/docs/search" className="button button--secondary">
23+
Search Documentation
24+
</Link>
25+
</div>
1726
</div>
1827
</div>
1928
</main>

0 commit comments

Comments
 (0)