Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 에러 페이지 구현 #809

Merged
merged 3 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('ErrorCatcher', () => {
});

await waitFor(() => {
expect(screen.getByText('알 수 없는 오류입니다.')).toBeInTheDocument();
expect(screen.getByText('알 수 없는 오류가 발생했습니다.')).toBeInTheDocument();
});
});
});
24 changes: 19 additions & 5 deletions client/src/pages/ErrorPage/ErrorPage.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
import Top from '@components/Design/components/Top/Top';
import Image from '@components/Design/components/Image/Image';

import {MainLayout} from '@HDesign/index';
import {Flex, MainLayout, Text} from '@HDesign/index';

import getImageUrl from '@utils/getImageUrl';

const ErrorPage = () => {
return (
<MainLayout>
<Top>
<Top.Line text="알 수 없는 오류입니다." emphasize={['알 수 없는 오류입니다.']} />
</Top>
<Flex
justifyContent="center"
alignItems="center"
flexDirection="column"
gap="1rem"
height="80vh"
css={{alignContent: 'center'}}
>
<Image src={getImageUrl('cryingDog', 'webp')} fallbackSrc={getImageUrl('cryingDog', 'png')} width="160px" />
<Text size="subTitle">알 수 없는 오류가 발생했습니다.</Text>
<Text size="body" css={{textAlign: 'center'}}>
계속 발생한다면 잠시 후 다시 시도해주세요. <br />
인터넷 연결 상태가 좋지 않으면 발생할 수 있습니다.
</Text>
</Flex>
</MainLayout>
);
};
Expand Down
Loading