This repository has been archived by the owner on Jun 15, 2024. It is now read-only.
-
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.
Merge pull request #57 from Stocodi/feature/error
Feature: 404, Service Not Available 페이지 구현
- Loading branch information
Showing
5 changed files
with
159 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,53 @@ | ||
@import "@/styles/utils"; | ||
|
||
.page_wrapper { | ||
width: 100%; | ||
height: calc(100vh - $nav-height); | ||
|
||
margin: 200px auto; | ||
|
||
text-align: center; | ||
|
||
img { | ||
display: block; | ||
|
||
width: 150px; | ||
margin: 0px auto; | ||
} | ||
h1 { | ||
padding: 0px 20px; | ||
|
||
font-size: 5rem; | ||
font-family: "Chillax"; | ||
font-weight: bold; | ||
color: $color-primary; | ||
} | ||
p { | ||
font-size: 1rem; | ||
} | ||
button { | ||
margin: 30px auto; | ||
} | ||
} | ||
|
||
@include tablet { | ||
.page_wrapper { | ||
img { | ||
width: 100px; | ||
} | ||
h1 { | ||
font-size: 4rem; | ||
} | ||
} | ||
} | ||
|
||
@include mobile { | ||
.page_wrapper { | ||
img { | ||
width: 100px; | ||
} | ||
h1 { | ||
font-size: 3rem; | ||
} | ||
} | ||
} |
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,3 +1,24 @@ | ||
import { useNavigate } from "react-router-dom"; | ||
import { Button } from "../interfaces/forms/Button"; | ||
|
||
import styles from "./PageNotFound.module.scss"; | ||
|
||
export default function PageNotFound() { | ||
return <>Page Not Found</>; | ||
const navigate = useNavigate(); | ||
|
||
const onReturnClick = () => { | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<div className={styles.page_wrapper}> | ||
<img src="/icons/stocodi-letter.png" alt="" /> | ||
<h1>404 Not Found</h1> | ||
<p>페이지를 찾을 수 없습니다</p> | ||
|
||
<Button type="primary-filled" width="min(400px, 80%)" height="50px" onClick={onReturnClick}> | ||
홈으로 돌아가기 | ||
</Button> | ||
</div> | ||
); | ||
} |
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,53 @@ | ||
@import "@/styles/utils"; | ||
|
||
.page_wrapper { | ||
width: 100%; | ||
height: calc(100vh - $nav-height); | ||
|
||
margin: 200px auto; | ||
|
||
text-align: center; | ||
|
||
img { | ||
display: block; | ||
|
||
width: 150px; | ||
margin: 0px auto; | ||
} | ||
h1 { | ||
padding: 0px 20px; | ||
|
||
font-size: 5rem; | ||
font-family: "Chillax"; | ||
font-weight: bold; | ||
color: $color-primary; | ||
} | ||
p { | ||
font-size: 1rem; | ||
} | ||
button { | ||
margin: 30px auto; | ||
} | ||
} | ||
|
||
@include tablet { | ||
.page_wrapper { | ||
img { | ||
width: 100px; | ||
} | ||
h1 { | ||
font-size: 4rem; | ||
} | ||
} | ||
} | ||
|
||
@include mobile { | ||
.page_wrapper { | ||
img { | ||
width: 100px; | ||
} | ||
h1 { | ||
font-size: 3rem; | ||
} | ||
} | ||
} |
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,23 @@ | ||
import { useNavigate } from "react-router-dom"; | ||
import { Button } from "../interfaces/forms/Button"; | ||
import styles from "./ServiceNotAvailable.module.scss"; | ||
|
||
export default function ServiceNotAvailablePage() { | ||
const navigate = useNavigate(); | ||
|
||
const onReturnClick = () => { | ||
navigate("/"); | ||
}; | ||
|
||
return ( | ||
<div className={styles.page_wrapper}> | ||
<img src="/icons/stocodi-letter.png" alt="" /> | ||
<h1>Service Not Available</h1> | ||
<p>서비스 준비중입니다</p> | ||
|
||
<Button type="primary-filled" width="min(400px, 80%)" height="50px" onClick={onReturnClick}> | ||
홈으로 돌아가기 | ||
</Button> | ||
</div> | ||
); | ||
} |