2022-03-09 02:43:30 +00:00
|
|
|
import { IS_PRIVATE_MANIFOLD } from '../../common/envs/constants'
|
2022-01-16 03:09:15 +00:00
|
|
|
import { Page } from '../components/page'
|
|
|
|
import { Title } from '../components/title'
|
|
|
|
|
|
|
|
export default function Custom404() {
|
2022-03-09 02:43:30 +00:00
|
|
|
if (IS_PRIVATE_MANIFOLD) {
|
|
|
|
// Since private Manifolds are client-side rendered, they'll blink the 404
|
|
|
|
// So we just show a blank page here:
|
|
|
|
return <Page></Page>
|
|
|
|
}
|
2022-01-16 03:09:15 +00:00
|
|
|
return (
|
|
|
|
<Page>
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className="flex h-full flex-col items-center justify-center">
|
2022-01-16 03:09:15 +00:00
|
|
|
<Title text="404: Oops!" />
|
|
|
|
<p>Nothing exists at this location.</p>
|
|
|
|
<p>If you didn't expect this, let us know on Discord!</p>
|
|
|
|
<br />
|
|
|
|
<iframe
|
|
|
|
src="https://discord.com/widget?id=915138780216823849&theme=dark"
|
|
|
|
width="350"
|
|
|
|
height="500"
|
|
|
|
allowTransparency={true}
|
|
|
|
frameBorder="0"
|
|
|
|
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
|
|
|
|
></iframe>
|
|
|
|
</div>
|
|
|
|
</Page>
|
|
|
|
)
|
|
|
|
}
|