-
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.
Browse files
Browse the repository at this point in the history
[로그인] 승인 알림 모달
- Loading branch information
Showing
12 changed files
with
157 additions
and
20 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
72 changes: 72 additions & 0 deletions
72
src/page/Auth/Login/ApprovalModal/ApprovalModal.module.scss
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,72 @@ | ||
.background { | ||
background-color: rgb(0 0 0 / 70%); | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100vw; | ||
height: 100vh; | ||
} | ||
|
||
.container { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
color: #000000; | ||
opacity: 1; | ||
background-color: #ffffff; | ||
width: 300px; | ||
height: 200px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 8px; | ||
|
||
&__title { | ||
font-size: 18px; | ||
font-weight: 500; | ||
|
||
span { | ||
color: #175c8e; | ||
} | ||
} | ||
|
||
&__description { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
font-size: 14px; | ||
color: #8e8e8e; | ||
} | ||
|
||
&__phone { | ||
font-size: 16px; | ||
color: #175c8e; | ||
font-weight: 500; | ||
} | ||
} | ||
|
||
.button { | ||
display: flex; | ||
gap: 8px; | ||
margin-top: 8px; | ||
|
||
&__confirm { | ||
width: 115px; | ||
height: 40px; | ||
border-radius: 4px; | ||
border: 1px solid #8e8e8e; | ||
box-sizing: border-box; | ||
cursor: pointer; | ||
} | ||
|
||
&__clipboard { | ||
width: 115px; | ||
height: 40px; | ||
border-radius: 4px; | ||
background-color: #175c8e; | ||
color: #ffffff; | ||
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,37 @@ | ||
import { createPortal } from 'react-dom'; | ||
import showToast from 'utils/ts/showToast'; | ||
import styles from './ApprovalModal.module.scss'; | ||
|
||
const PHONE_NUMBER = '010-7724-5536'; | ||
|
||
export default function ApprovalModal({ toggle }:{ toggle: () => void }) { | ||
const copyPhone = () => { | ||
navigator.clipboard.writeText(PHONE_NUMBER).then(() => { | ||
showToast('success', '전화번호를 클립보드에 복사하였습니다.'); | ||
}).catch(() => { | ||
showToast('error', '전화번호를 복사하는데 실패했습니다.'); | ||
}); | ||
}; | ||
|
||
return createPortal( | ||
<div className={styles.background}> | ||
<div className={styles.container}> | ||
<div className={styles.container__title}> | ||
<span>관리자의 승인</span> | ||
이 진행 중입니다. | ||
</div> | ||
<div className={styles.container__description}> | ||
<span>해당 화면이 지속해서 보일 시</span> | ||
<span>아래 연락처로 문의하시기 바랍니다.</span> | ||
</div> | ||
<div className={styles.container__phone}>{PHONE_NUMBER}</div> | ||
<div className={styles.button}> | ||
<button type="button" className={styles.button__confirm} onClick={toggle}>확인</button> | ||
<button type="button" className={styles.button__clipboard} onClick={copyPhone}>번호 복사</button> | ||
</div> | ||
</div> | ||
|
||
</div>, | ||
document.body, | ||
); | ||
} |
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