File tree Expand file tree Collapse file tree 1 file changed +20
-11
lines changed
src/theme/NotFound/Content Expand file tree Collapse file tree 1 file changed +20
-11
lines changed Original file line number Diff line number Diff line change 1- import React , { useEffect } from "react" ;
1+ import React from "react" ;
2+ import { translate } from "@docusaurus/Translate" ;
3+ import Link from "@docusaurus/Link" ;
24import { 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 >
You can’t perform that action at this time.
0 commit comments