Files
threshold/website/pages/404.jsx
T
Zachary Shilton 6e435a8141 Upgrade global styles (#1418)
* website: bump packages for global style upgrades

* website: backfill missing type styles

* website: upgrade security page to use markdown-page

* website: upgrade g-container to g-grid-container

* website: upgrade community page

* website: hide alert-banner on mobile

* website: fix mismatched border colour on downloads page

* website: fix incorrect className

* website: bump to fix issue with typography on OpenAPI pages
2021-08-20 12:19:48 -04:00

33 lines
842 B
React

import Link from 'next/link'
import { useEffect } from 'react'
export default function NotFound() {
useEffect(() => {
if (
typeof window !== 'undefined' &&
typeof window?.analytics?.track === 'function' &&
typeof window?.document?.referrer === 'string' &&
typeof window?.location?.href === 'string'
)
window.analytics.track(window.location.href, {
category: '404 Response',
label: window.document.referrer || 'No Referrer',
})
}, [])
return (
<div id="p-404" className="g-grid-container">
<h1 className="g-type-display-1">Page Not Found</h1>
<p>
We&lsquo;re sorry but we can&lsquo;t find the page you&lsquo;re looking
for.
</p>
<p>
<Link href="/">
<a>Back to Home</a>
</Link>
</p>
</div>
)
}