@@ -3,42 +3,58 @@ import clsx from 'clsx';
33import Layout from '@theme/Layout' ;
44import Link from '@docusaurus/Link' ;
55import useBaseUrl from '@docusaurus/useBaseUrl' ;
6+ import { PageMetadata } from '@docusaurus/theme-common' ;
7+ import { translate } from '@docusaurus/Translate' ;
68import styles from './styles.module.css' ;
79
810export default function NotFound ( ) {
911 return (
10- < Layout title = "Page Not Found" >
11- < div className = { clsx ( 'container' , styles . notFoundContainer ) } >
12- < div className = { styles . notFoundContent } >
13- < h1 className = { styles . notFoundTitle } > Page Not Found</ h1 >
14- < p className = { styles . notFoundText } >
15- We couldn't find what you were looking for. The page might have been moved or renamed.
16- </ p >
17- < div className = { styles . buttons } >
18- < Link
19- className = { clsx (
20- 'button button--primary button--lg' ,
21- styles . getStarted ,
22- ) }
23- to = { useBaseUrl ( '/' ) }
24- >
25- Go to Homepage
26- </ Link >
27- < Link
28- className = { clsx (
29- 'button button--outline button--secondary button--lg' ,
30- styles . getStarted ,
31- ) }
32- to = { useBaseUrl ( '/docs/overview' ) }
33- >
34- Check Documentation
35- </ Link >
12+ < >
13+ < PageMetadata
14+ title = { translate ( {
15+ id : 'theme.NotFound.title' ,
16+ message : 'Page Not Found' ,
17+ } ) }
18+ />
19+ < Layout >
20+ < div className = { clsx ( 'container' , styles . notFoundContainer ) } >
21+ < div className = { styles . notFoundContent } >
22+ < h1 className = { styles . notFoundTitle } > Page Not Found</ h1 >
23+ < p className = { styles . notFoundText } >
24+ We couldn't find what you were looking for. The page might have been moved or renamed.
25+ </ p >
26+ < div className = { styles . buttons } >
27+ < Link
28+ className = { clsx (
29+ 'button button--primary button--lg' ,
30+ styles . getStarted ,
31+ ) }
32+ to = { useBaseUrl ( '/' ) }
33+ >
34+ Go to Homepage
35+ </ Link >
36+ < Link
37+ className = { clsx (
38+ 'button button--outline button--secondary button--lg' ,
39+ styles . getStarted ,
40+ ) }
41+ to = { useBaseUrl ( '/docs/overview' ) }
42+ >
43+ Check Documentation
44+ </ Link >
45+ </ div >
46+ </ div >
47+ < div className = { styles . notFoundImage } >
48+ < img
49+ src = { useBaseUrl ( 'img/undraw_mobile.svg' ) }
50+ alt = "Page not found"
51+ loading = "lazy"
52+ width = "400"
53+ height = "300"
54+ />
3655 </ div >
3756 </ div >
38- < div className = { styles . notFoundImage } >
39- < img src = { useBaseUrl ( 'img/undraw_mobile.svg' ) } alt = "Page not found" />
40- </ div >
41- </ div >
42- </ Layout >
57+ </ Layout >
58+ </ >
4359 ) ;
4460}
0 commit comments