File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments