Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mastodon
GitHub Repository: mastodon/joinmastodon
Path: blob/main/pages/404.tsx
1006 views
1
import Head from "next/head"
2
import BasicPage from "../components/BasicPage"
3
import Hero from "../components/Hero"
4
import { withDefaultStaticProps } from "../utils/defaultStaticProps"
5
import LinkButton from "../components/LinkButton"
6
import { FormattedMessage, useIntl } from "react-intl"
7
import Layout from "../components/Layout"
8
import heroImage from "../public/illustrations/apps_hero_desktop.png"
9
10
const NotFoundPage = () => (
11
<Layout>
12
<Hero homepage desktopImage={heroImage} mobileImage={heroImage} />
13
14
<BasicPage>
15
<div className="flex justify-center pt-24">
16
<div className="h2 px-12 font-bold text-blurple-500">404</div>
17
18
<div className="border-l-2 border-gray-4 px-12">
19
<h1 className="h2">
20
<FormattedMessage id="404.title" defaultMessage="Page not found" />
21
</h1>
22
<p className="sh1 mt-4 mb-8 text-gray-1">
23
<FormattedMessage
24
id="404.description"
25
defaultMessage="Please check the URL in the address bar and try again."
26
/>
27
</p>
28
<LinkButton href="/" size="medium">
29
<FormattedMessage
30
id="404.go_back_home"
31
defaultMessage="Go back home"
32
/>
33
</LinkButton>
34
</div>
35
</div>
36
</BasicPage>
37
</Layout>
38
)
39
40
export const getStaticProps = withDefaultStaticProps()
41
42
export default NotFoundPage
43
44