88be341d21
* website: upgrade global-styles packages * website: remove deprecated --site-max-width on community page * website: replace code-block showWindowBar with showChrome * website: replace old g-container with g-grid-container * website: backfill missing type styles * website: revert change to heading semantics * website: fix mismatched border colour * website: fix spacing issue * website: revert accidental replacement * website: clarify debt intention with comment * website: fix missing search styles, remove cruft * website: hide alert-banner on mobile * website: bump to latest patched dependencies
33 lines
815 B
JavaScript
33 lines
815 B
JavaScript
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 (
|
|
<main id="p-404">
|
|
<h1 className="g-type-display-1">Page Not Found</h1>
|
|
<p>
|
|
We‘re sorry but we can‘t find the page you‘re looking
|
|
for.
|
|
</p>
|
|
<p>
|
|
<Link href="/">
|
|
<a>Back to Home</a>
|
|
</Link>
|
|
</p>
|
|
</main>
|
|
)
|
|
}
|