manifold/web/pages/404.tsx
Austin Chen 279437ba08
List users on admin page (#28)
* Admin page using gridjs

* Move hook into separate file

* Link to each user's Manifold and Firestore /user entry

* Gate admin access to Austin/James/Stephen

* Don't leak the existence of /admin

* Add a custom 404 page that directs to Discord.

* Fix broken window.location.href on NextJS server
2022-01-15 22:09:15 -05:00

25 lines
764 B
TypeScript

import { useEffect } from 'gridjs'
import { Page } from '../components/page'
import { Title } from '../components/title'
export default function Custom404() {
return (
<Page>
<div className="flex flex-col items-center justify-center h-full">
<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>
)
}