-
-
Notifications
You must be signed in to change notification settings - Fork 229
/
Copy pathNotFoundPage.tsx
49 lines (48 loc) · 1.85 KB
/
NotFoundPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { Head } from "./Head.js"
import { SiteHeader } from "./SiteHeader.js"
import { SiteFooter } from "./SiteFooter.js"
import { Html } from "./Html.js"
import NotFoundPageForm from "./NotFoundPageForm.js"
import NotFoundPageIcon from "./NotFoundPageIcon.js"
export default function NotFoundPage({ baseUrl }: { baseUrl: string }) {
return (
<Html>
<Head
canonicalUrl={`${baseUrl}/search`}
pageTitle="404 Not Found"
pageDesc="Search articles and charts on Our World in Data."
baseUrl={baseUrl}
/>
<body className="NotFoundPage">
<SiteHeader baseUrl={baseUrl} />
<main>
<NotFoundPageIcon />
<div className="NotFoundPage__copy">
<h1 className="NotFoundPage__heading subtitle-1">
Sorry, that page doesn’t exist!
</h1>
<p className="body-2-semibold">
You may have followed an outdated link or have
mistyped the URL.
<br />
You can search for what you were hoping to find
below or <a href="/">visit our homepage</a>.
</p>
</div>
<div id="not-found-page-form">
<NotFoundPageForm />
</div>
</main>
<SiteFooter hideDonate={true} baseUrl={baseUrl} />
<script
type="module"
dangerouslySetInnerHTML={{
__html: `
window.runNotFoundPage()
`,
}}
/>
</body>
</Html>
)
}