diff --git a/src/theme/NotFound/Content/index.js b/src/theme/NotFound/Content/index.js index a20b1a706..3c139583c 100644 --- a/src/theme/NotFound/Content/index.js +++ b/src/theme/NotFound/Content/index.js @@ -1,20 +1,97 @@ -import React, {useEffect} from "react"; -import {PageMetadata} from "@docusaurus/theme-common"; +import React, { useEffect } from "react"; +import { PageMetadata } from "@docusaurus/theme-common"; +import Link from "@docusaurus/Link"; +import useBaseUrl from "@docusaurus/useBaseUrl"; + export default function Index() { useEffect(() => { - window.location.href = "/docs/"; - }, 2000); - []; + const timer = setTimeout(() => { + window.location.href = "/docs/"; + }, 2000); + + + return () => clearTimeout(timer); + }, []); return ( <> - -
-
-
-

Redirecting to home page...

+ +
+
+ {/* 404 Error */} +
+ + + +
+ + {/* Error Message */} +
+

+ 404 - Page Not Found +

+

+ Oops! The page you're looking for doesn't exist. It might have been moved, deleted, or you entered the wrong URL. +

+ + {/* Action Buttons */} +
+ + + + + Go to Homepage + + + + + + Browse Documentation + +
+ +