Skip to content

Commit

Permalink
[Feat/#32] loading & error 창 구현 (#33)
Browse files Browse the repository at this point in the history
* feat: calculator 숫자 formatting

* feat: 매출 page 숫자 formatting

* feat: LessonDetail 가격 숫자 formatting

* feat: mypage hanamoney 숫자 formatting

* feat: Loading 화면 추가

* feat: Error 화면 추가
  • Loading branch information
seoyeon08 authored Jul 2, 2024
1 parent f9627dd commit caaed26
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Binary file added public/images/loading.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/pages/ErrorPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { BiErrorCircle } from 'react-icons/bi';
import { Button } from '../components/common/Button';
import { useNavigate } from 'react-router-dom';

export const ErrorPage = () => {
const navigate = useNavigate();
return (
<div className='flex flex-col text-center justify-center items-center h-screen'>
<BiErrorCircle className='text-hanaSilver w-20 h-20 mb-6' />
<p className='font-hanaRegular text-2xl'>
서비스 이용에 <br /> 불편을 드려 죄송합니다.
</p>
<p className='font-hanaLight text-hanaNavGray text-center mt-3'>
이용하고자 하는 업무에 장애가 발생하였습니다. <br /> 잠시 후 다시
시도하여 주시기 바랍니다.
</p>
<Button
message='메인화면 이동'
isActive={true}
onClick={() => navigate('/')}
/>
</div>
);
};
11 changes: 11 additions & 0 deletions src/pages/Loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const Loading = () => {
return (
<div className='flex flex-col h-screen justify-center items-center'>
<img src='/images/loading.gif' alt='' className='w-36 h-16 ml-6' />
<div className='flex flex-row justify-center items-center text-3xl text-hanaNavGreen font-hanaBold'>
<img src='/images/logo.svg' alt='' />
<p className='ml-2 pt-2'>하나Fun!</p>
</div>
</div>
);
};

0 comments on commit caaed26

Please sign in to comment.