1
0
Fork 0
freesewing/sites/dev/pages/404.mjs

55 lines
1.7 KiB
JavaScript
Raw Normal View History

// Dependencies
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
// Components
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
import { Robot } from 'shared/components/robot/index.mjs'
import { Popout } from 'shared/components/popout/index.mjs'
2023-08-28 19:26:20 +02:00
import { PageLink } from 'shared/components/link.mjs'
import { BaseLayout, BaseLayoutLeft, BaseLayoutWide } from 'shared/components/base-layout.mjs'
2023-07-16 07:27:51 +02:00
import { NavLinks, MainSections } from 'shared/components/navigation/sitenav.mjs'
2022-10-15 17:18:23 +02:00
const namespaces = [...pageNs]
2023-07-21 10:16:32 +02:00
const Page404 = () => (
2023-11-03 15:36:09 +01:00
<PageWrapper title="404: Page not found" intro="We could not find what you are looking for">
2023-07-21 10:16:32 +02:00
<BaseLayout>
<BaseLayoutLeft>
<MainSections />
<NavLinks />
</BaseLayoutLeft>
<BaseLayoutWide>
<div className="max-w-2xl">
<h1>404: Page not found</h1>
<div className="max-w-sm m-auto px-12 mb-4">
<Robot embed pose="fail" />
2022-10-15 17:18:23 +02:00
</div>
2023-07-21 10:16:32 +02:00
<h3>We could not find what you are looking for</h3>
<div className="text-left">
<Popout comment by="joost">
<h5>Did you arrive here from a link?</h5>
<p>In that case, that link is broken.</p>
<p>
If it was one of our links, please <PageLink href="/contact" txt="let us know" /> so
we can fix it.
</p>
</Popout>
</div>
</div>
</BaseLayoutWide>
</BaseLayout>
</PageWrapper>
)
2022-10-15 17:18:23 +02:00
export default Page404
export async function getStaticProps() {
return {
props: {
...(await serverSideTranslations('en', namespaces)),
page: {
2023-07-20 18:30:39 +02:00
path: ['404'],
},
},
}
}