Files
myeasycms-v2/apps/web/app/error.tsx
giancarlo 95793c42b4 Remove admin functionality related code
The admin functionality related code has been removed which includes various user and organization functionalities like delete, update, ban etc. This includes action logic, UI components and supportive utility functions. Notable deletions include the server action files, dialog components for actions like banning and deleting, and related utility functions. This massive cleanup is aimed at simplifying the codebase and the commit reflects adherence to project restructuring.
2024-03-25 15:40:43 +08:00

58 lines
1.5 KiB
TypeScript

'use client';
import Link from 'next/link';
import { ArrowLeftIcon } from 'lucide-react';
import { Button } from '@kit/ui/button';
import { Heading } from '@kit/ui/heading';
import { Trans } from '@kit/ui/trans';
import { SiteHeader } from '~/(marketing)/_components/site-header';
const ErrorPage = () => {
return (
<div className={'flex h-screen flex-1 flex-col'}>
<SiteHeader />
<div
className={
'm-auto flex w-full flex-1 flex-col items-center justify-center'
}
>
<div className={'flex flex-col items-center space-y-16'}>
<div>
<h1 className={'text-8xl font-extrabold'}>500 :(</h1>
</div>
<div className={'flex flex-col items-center space-y-4'}>
<div className={'flex flex-col items-center space-y-2.5'}>
<div>
<Heading level={1}>
<Trans i18nKey={'common:genericError'} />
</Heading>
</div>
<p className={'text-muted-foreground'}>
<Trans i18nKey={'common:genericErrorSubHeading'} />
</p>
</div>
<div>
<Link href={'/'}>
<Button variant={'outline'}>
<ArrowLeftIcon className={'mr-2 h-4'} />
<Trans i18nKey={'common:backToHomePage'} />
</Button>
</Link>
</div>
</div>
</div>
</div>
</div>
);
};
export default ErrorPage;