mirror of
https://github.com/jambonz/next-static-site.git
synced 2025-12-19 04:47:44 +00:00
Add 404 page stub
This commit is contained in:
21
pages/404.js
Normal file
21
pages/404.js
Normal 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,
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user