1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 01:57:09 +00:00
conky/web/pages/404.tsx
2022-10-05 09:41:00 -04:00

32 lines
912 B
TypeScript

import { Document } from '../utils/mdx-utils'
import Layout from '../components/Layout'
import SEO from '../components/SEO'
import { getSearchIndex, SearchIndex } from '../utils/search'
import Doggy from '../components/Doggy'
interface IndexProps {
documents: Document[]
searchIndex: SearchIndex
}
export default function FourOhFour({ searchIndex }: IndexProps) {
return (
<Layout searchIndex={searchIndex}>
<SEO title="Conky" description="Conky documentation" />
<main className="w-full">
<div className="flex flex-col items-center">
<h1 className="text-4xl py-8 font-extrabold">404: Not found 😢</h1>
<Doggy />
<h2 className="text-3xl py-4 font-serif">Here&rsquo;s a doggy 😀</h2>
</div>
</main>
</Layout>
)
}
export function getStaticProps() {
const searchIndex = getSearchIndex()
return { props: { searchIndex } }
}