Skip to content

Commit

Permalink
Merge pull request #771 from NUTFes/feat/yama/768-Create-500-Page
Browse files Browse the repository at this point in the history
[feat] 500ページの作成
  • Loading branch information
Kubosaka authored Jun 5, 2024
2 parents ea454f9 + af7172d commit 1f1b939
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions view/next-project/src/pages/500.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import Image from 'next/image';
import { PrimaryButton } from '@/components/common';

export default function Custom500() {
return (
<div className='flex h-screen flex-col'>
<header className='flex h-16 w-full items-center justify-center bg-primary-4'>
<div className='w-24 md:w-40'>
<Image src='/logo.svg' alt='FinanSu' width={150} height={40} className='h-fit w-fit' />
</div>
</header>
<main className='bg-gray-100 flex flex-grow items-center justify-center text-center'>
<div className='bg-white m-4 flex w-fit flex-col items-center rounded-lg p-5 shadow-md md:m-8 md:w-1/2 md:p-10'>
<h1 className='text-8xl font-bold'>500</h1>
<h2 className='text-3xl'>Internal Server Error</h2>
<p className='text-1xl text-gray-600 mt-4'>
アクセスしようとしたページは表示できませんでした。
</p>
<PrimaryButton className='mt-4' onClick={() => window.history.back()}>
前のページに戻る
</PrimaryButton>
</div>
</main>
</div>
);
}

0 comments on commit 1f1b939

Please sign in to comment.