Skip to content

Commit

Permalink
Internal Server Error Page (#129)
Browse files Browse the repository at this point in the history
* Create 500.tsx

* clearer link
  • Loading branch information
farisashai authored Jan 20, 2024
1 parent 47a994b commit cfcc18b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/pages/500.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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&nbsp;
<a
href="https://github.com/acmucsd/membership-portal-ui-v2/issues/new"
style={{
color: 'var(--theme-primary-4)',
textDecoration: 'underline',
fontWeight: '700',
}}
>
here
</a>
.
</span>
</VerticalForm>
</div>
);
};

export default InternalServerError;

1 comment on commit cfcc18b

@vercel
Copy link

@vercel vercel bot commented on cfcc18b Jan 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.