Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Server Error Page #129

Merged
merged 4 commits into from
Jan 20, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;