This commit is contained in:
Joel Varty
2021-06-21 16:08:29 -04:00
parent 206d221f34
commit 863c2c5b6e
11 changed files with 32 additions and 531 deletions

View File

@@ -1,5 +1,6 @@
import pageTemplates from "components/agility-pageTemplates"
import Head from 'next/head'
import { Text } from '@components/ui'
const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, error?: any, revalidate?: any }) => {
@@ -18,9 +19,14 @@ const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, e
return (
<>
<Head>
<title>Page Not Found - {pageTitle}</title>
<title>Page Not Found - {pageTitle}</title>
</Head>
<div className="m-8 text-center" >Page not found.</div>
<div className="max-w-2xl mx-8 sm:mx-auto py-20 flex flex-col items-center justify-center fit">
<Text variant="heading">Not Found</Text>
<Text className="">
The requested page doesn't exist or you don't have access to it.
</Text>
</div>
</>
)
}
@@ -37,6 +43,9 @@ const AgilityPage = ({ agilityProps, error, revalidate }: { agilityProps: any, e
<>
<Head>
<title>{agilityProps.sitemapNode?.title} - {pageTitle}</title>
<meta name="description" content={agilityProps.page?.seo?.metaDescription} />
<meta name="generator" content="Agility CMS" />
<meta name="agility_timestamp" content={new Date().toLocaleString()} />
</Head>
<AgilityPageTemplate {...agilityProps} />
</>