Zachary Shilton 1382832b9d
Upgrade global styles (#12470)
* website: upgrade global-style dependencies

* website: use hideOnMobile for alert banner

* website: remove deprecated --site-max-width on community page

* website: replace g-container with g-grid-container

* website: backfill missing heading styles

* website: remove duplicative not-found page folder

* website: use new download page for vmware utility

* website: replace fake vmware utility logo with plain text

* website: bump to downloads-page pre-release to prove out

* website: bump to product-downloads stable release

* website: bump to patched content component

* website: add comment on vmware download page config

* chore(website): use new interface on vmware downloads page
2021-08-27 15:28:49 -04:00

34 lines
847 B
JavaScript

import s from './404.module.css'
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 className={s.root}>
<h1 className={s.heading}>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>
)
}