feat: added Forbidden page

This commit is contained in:
wonderlandpark 2021-03-24 22:40:24 +09:00
parent 9577047cbc
commit 67ea006908

26
components/Forbidden.tsx Normal file
View File

@ -0,0 +1,26 @@
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import { ErrorText } from '@utils/Constants'
const SEO = dynamic(() => import('@components/SEO'))
const Button = dynamic(() => import('@components/Button'))
const Forbidden = ():JSX.Element => {
const router = useRouter()
return <>
<SEO title='권한이 없습니다' />
<div className='flex items-center justify-center h-screen select-none'>
<div className='container mx-auto px-20 md:text-left text-center'>
<h1 className='text-8xl font-semibold'>403</h1>
<h2 className='text-2xl font-semibold py-2'>
{ErrorText[403]}
</h2>
<Button onClick={router.back}> </Button>
<p className='text-gray-400 text-sm mt-2'> . .</p>
</div>
</div>
</>
}
export default Forbidden