-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KAN-233] refactor(contract): 에러 페이지 추가
- Loading branch information
Showing
6 changed files
with
163 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { Link, useNavigate } from 'react-router-dom'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faArrowLeft, faHome, faLock } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
const ForbiddenErrorPage = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<div className='min-h-screen flex flex-col justify-center items-center px-4'> | ||
<div className='max-w-md w-full rounded-lg overflow-hidden'> | ||
<div className='p-8'> | ||
<div className='text-center'> | ||
<h1 className='text-9xl font-bold text-mint mb-4'>403</h1> | ||
<p className='text-2xl font-semibold text-gray-700 mb-4'>접근 금지</p> | ||
<p className='text-gray-500 mb-8'>죄송합니다. 이 페이지에 접근할 권한이 없습니다.</p> | ||
</div> | ||
<div className='flex justify-center space-x-4'> | ||
<Link | ||
to='/' | ||
className='flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-mint hover:bg-mint_hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-mint'> | ||
<FontAwesomeIcon icon={faHome} className='mr-2' /> | ||
홈으로 가기 | ||
</Link> | ||
<button | ||
onClick={() => navigate(-1)} | ||
className='flex items-center justify-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-mint'> | ||
<FontAwesomeIcon icon={faArrowLeft} className='mr-2' /> | ||
뒤로가기 | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ForbiddenErrorPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Link, useNavigate } from 'react-router-dom'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faArrowLeft, faHome, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
const InternalServerErrorPage = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<div className='min-h-screen flex flex-col justify-center items-center px-4'> | ||
<div className='max-w-md w-full rounded-lg overflow-hidden'> | ||
<div className='p-8'> | ||
<div className='text-center'> | ||
<h1 className='text-9xl font-bold text-mint mb-4'>500</h1> | ||
<p className='text-2xl font-semibold text-gray-700 mb-4'>내부 서버 오류</p> | ||
<p className='text-gray-500 mb-8'> | ||
죄송합니다. 서버에 문제가 발생했습니다. | ||
<br /> | ||
잠시 후 다시 시도해 주세요. | ||
</p> | ||
</div> | ||
<div className='flex justify-center space-x-4'> | ||
<Link | ||
to='/' | ||
className='flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-mint hover:bg-mint_hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-mint'> | ||
<FontAwesomeIcon icon={faHome} className='mr-2' /> | ||
홈으로 가기 | ||
</Link> | ||
<button | ||
onClick={() => navigate(-1)} | ||
className='flex items-center justify-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-mint'> | ||
<FontAwesomeIcon icon={faArrowLeft} className='mr-2' /> | ||
뒤로가기 | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default InternalServerErrorPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Link, useNavigate } from 'react-router-dom'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faArrowLeft, faHome, faSearch } from '@fortawesome/free-solid-svg-icons'; | ||
|
||
const NotFoundPage = () => { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<div className='min-h-screen flex flex-col justify-center items-center px-4'> | ||
<div className='max-w-md w-full rounded-lg overflow-hidden'> | ||
<div className='p-8'> | ||
<div className='text-center'> | ||
<h1 className='text-9xl font-bold text-mint mb-4'>404</h1> | ||
<p className='text-2xl font-semibold text-gray-700 mb-4'>페이지를 찾을 수 없습니다</p> | ||
<p className='text-gray-500 mb-8'> | ||
죄송합니다. 요청하신 페이지를 찾을 수 없습니다. URL을 확인하시거나 아래 버튼을 | ||
사용해주세요. | ||
</p> | ||
</div> | ||
<div className='flex justify-center space-x-4'> | ||
<Link | ||
to='/' | ||
className='flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-mint hover:bg-mint_hover focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-mint'> | ||
<FontAwesomeIcon icon={faHome} className='mr-2' /> | ||
홈으로 가기 | ||
</Link> | ||
<button | ||
onClick={() => navigate(-1)} | ||
className='flex items-center justify-center px-4 py-2 border border-gray-300 rounded-md shadow-sm text-sm font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-mint'> | ||
<FontAwesomeIcon icon={faArrowLeft} className='mr-2' /> | ||
뒤로가기 | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NotFoundPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters