Add 404 page stub

This commit is contained in:
kitajchuk
2021-04-08 09:20:21 -07:00
parent 8b404f0d20
commit 39eba08f2a
2 changed files with 24 additions and 0 deletions

3
data/404.yml Normal file
View File

@@ -0,0 +1,3 @@
hero:
headline: Oops
subtext: This page doesn't exist

21
pages/404.js Normal file
View File

@@ -0,0 +1,21 @@
import Layout from '../components/layout';
import { Hero } from '../components/jambonz-ui';
import { getData } from '../lib/data';
export default function Page404({ data }) {
return (
<Layout siteData={data.site}>
<Hero data={data['404'].hero} subStyle="404" />
</Layout>
);
}
export async function getStaticProps() {
const data = getData('404');
return {
props: {
data,
},
};
}