Skip to content

Commit

Permalink
Create 500.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
farisashai committed Jan 20, 2024
1 parent e8cfc0f commit 8fa3734
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/pages/500.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { SignInButton } from '@/components/auth';
import { VerticalForm } from '@/components/common';
import Cat404 from '@/public/assets/graphics/cat404.png';
import styles from '@/styles/pages/404.module.scss';
import Image from 'next/image';

const InternalServerError = () => {
return (
<div style={{ display: 'flex', flexDirection: 'column', height: 'calc(100vh - 8.25rem)' }}>
<VerticalForm style={{ alignItems: 'center', flex: 'auto', height: 'unset' }}>
<h1 className={styles.header}>Something has gone terribly wrong</h1>
<Image src={Cat404} width={256} height={256} alt="Sad Cat" />
<span
style={{
textAlign: 'center',
}}
>
Logging out will usually fix your issue.
</span>
<SignInButton type="link" display="button1" href="/logout" text="Logout" />
<span
style={{
textAlign: 'center',
}}
>
If that doesn&apos;t work, file a bug to us on our project issue&apos;s page
<a href="https://github.com/acmucsd/membership-portal-ui-v2/issues"> here</a>
</span>
</VerticalForm>
</div>
);
};

export default InternalServerError;

0 comments on commit 8fa3734

Please sign in to comment.