-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
05ea2a8
commit 882e80c
Showing
12 changed files
with
120 additions
and
10 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
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
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
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
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,52 @@ | ||
.template { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding-top: 220px; | ||
padding-bottom: 120px; | ||
flex-direction: column; | ||
} | ||
|
||
.error-icon { | ||
width: 200px; | ||
height: 200px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
|
||
.content { | ||
font-style: normal; | ||
line-height: normal; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
&__title { | ||
margin-top: 70px; | ||
color: #175c8e; | ||
text-align: center; | ||
font-size: 36px; | ||
font-weight: 700; | ||
} | ||
|
||
&__description { | ||
margin-top: 20px; | ||
color: #858585; | ||
text-align: center; | ||
font-size: 18px; | ||
font-weight: 400; | ||
} | ||
|
||
&__button { | ||
margin-top: 80px; | ||
width: 368px; | ||
height: 48px; | ||
background-color: #175c8e; | ||
color: white; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 500; | ||
cursor: pointer; | ||
} | ||
} |
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,32 @@ | ||
import Error from 'assets/svg/error/page-not-found-error.svg?react'; | ||
|
||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import styles from './PageNotFound.module.scss'; | ||
|
||
export default function PageNotFound() { | ||
const navigate = useNavigate(); | ||
|
||
return ( | ||
<div className={styles.template}> | ||
<div className={styles['error-icon']}> | ||
<Error /> | ||
</div> | ||
<div className={styles.content}> | ||
<div className={styles.content__title}>개발 중인 페이지입니다</div> | ||
<div className={styles.content__description}> | ||
죄송합니다. 현재 개발 중인 페이지입니다. | ||
<br /> | ||
최대한 빠르게 오픈하도록 하겠습니다. | ||
</div> | ||
<button | ||
type="button" | ||
className={styles.content__button} | ||
onClick={() => navigate('/owner')} | ||
> | ||
메인 화면 바로가기 | ||
</button> | ||
</div> | ||
</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,16 @@ | ||
async function sha256(message: string) { | ||
// encode as UTF-8 | ||
const msgBuffer = new TextEncoder().encode(message); | ||
|
||
// hash the message | ||
const hashBuffer = await crypto.subtle.digest('SHA-256', msgBuffer); | ||
|
||
// convert ArrayBuffer to Array | ||
const hashArray = Array.from(new Uint8Array(hashBuffer)); | ||
|
||
// convert bytes to hex string | ||
const hashHex = hashArray.map((b) => b.toString(16).padStart(2, '0')).join(''); | ||
return hashHex; | ||
} | ||
|
||
export default sha256; |
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,10 @@ | ||
interface ClassName { | ||
[key: string]: boolean | string; | ||
} | ||
|
||
const classNames = (className: ClassName) => Object.entries(className) | ||
.filter(([, value]) => value) | ||
.map(([key]) => key) | ||
.join(' '); | ||
|
||
export default classNames; |