-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
168 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,56 @@ | ||
"use client"; | ||
const ErrorPage = () => { | ||
return <div>error</div>; | ||
|
||
import { css } from "@styled-system/css"; | ||
import { Flex } from "@styled-system/jsx"; | ||
import { Header, Text } from "@wow-class/ui"; | ||
import Image from "next/image"; | ||
import Button from "wowds-ui/Button"; | ||
|
||
const ErrorPage = ({ reset }: { reset: () => void }) => { | ||
const handleClickResetButton = () => { | ||
reset(); | ||
}; | ||
|
||
return ( | ||
<html lang="ko"> | ||
<body> | ||
<Flex direction="column" minHeight="100vh"> | ||
<Header /> | ||
<main className={errorPageContentStyle}> | ||
<Image | ||
alt="error" | ||
height={344} | ||
src="/images/error.svg" | ||
width={358} | ||
/> | ||
<Text as="h2" typo="display2"> | ||
에러가 발생했어요 | ||
</Text> | ||
<Button | ||
aria-label="다시 시도" | ||
style={buttonStyle} | ||
onClick={handleClickResetButton} | ||
> | ||
다시 시도 | ||
</Button> | ||
</main> | ||
</Flex> | ||
</body> | ||
</html> | ||
); | ||
}; | ||
|
||
export default ErrorPage; | ||
|
||
const errorPageContentStyle = css({ | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: "48px", | ||
height: "100%", | ||
}); | ||
|
||
const buttonStyle = { | ||
width: 328, | ||
}; |
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 |
---|---|---|
|
@@ -6,4 +6,5 @@ body { | |
font-family: "SUIT" !important; | ||
display: flex; | ||
flex-direction: row; | ||
min-height: 100vh; | ||
} |
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 |
---|---|---|
@@ -1,5 +1,54 @@ | ||
const NotFound = () => { | ||
return <div>요청하신 페이지를 찾을 수 없어요.</div>; | ||
import { css } from "@styled-system/css"; | ||
import { Flex } from "@styled-system/jsx"; | ||
import { Header, Text } from "@wow-class/ui"; | ||
import { routerPath } from "constants/router/routerPath"; | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
import Button from "wowds-ui/Button"; | ||
|
||
const NotFoundPage = () => { | ||
return ( | ||
<Flex direction="column" minHeight="100vh"> | ||
<Header /> | ||
<main className={notFoundPageContentStyle}> | ||
<Image | ||
alt="not-found" | ||
height={344} | ||
src="/images/not-found.svg" | ||
width={358} | ||
/> | ||
<Flex direction="column" gap="md"> | ||
<Text as="h2" typo="display2"> | ||
오류가 발생했어요 | ||
</Text> | ||
<Text color="sub" typo="body0"> | ||
요청하신 페이지를 찾을 수 없어요 | ||
</Text> | ||
</Flex> | ||
<Button | ||
aria-label="홈으로 이동" | ||
asProp={Link} | ||
href={routerPath.root.href} | ||
style={buttonStyle} | ||
> | ||
홈으로 이동 | ||
</Button> | ||
</main> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default NotFound; | ||
export default NotFoundPage; | ||
|
||
const notFoundPageContentStyle = css({ | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
gap: "48px", | ||
height: "100%", | ||
}); | ||
|
||
const buttonStyle = { | ||
width: 328, | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.