-
Notifications
You must be signed in to change notification settings - Fork 2
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
[민우] - 리마인드 메세지 예시로 보내보기 기능 모달 UI 작업
- Loading branch information
Showing
9 changed files
with
195 additions
and
6 deletions.
There are no files selected for viewing
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.
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 |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
width: 100%; | ||
height: 100%; | ||
gap: 1rem; | ||
|
||
&--image { | ||
width: 100%; | ||
height: 257px; | ||
|
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
95 changes: 95 additions & 0 deletions
95
src/components/ModalSendRemindExample/ModalSendRemindExample.tsx
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,95 @@ | ||
'use client'; | ||
|
||
import classNames from 'classnames'; | ||
import Image from 'next/image'; | ||
import React from 'react'; | ||
import { Modal, ModalBasic } from '..'; | ||
import './index.scss'; | ||
import remind_example_email_temp from '/public/remind_example_email_temp.png'; | ||
import remind_example_kakao from '/public/remind_example_kakao.png'; | ||
|
||
interface ModalSendRemindExampleProps { | ||
closeModal: () => void; | ||
} | ||
|
||
export default function ModalSendRemindExample({ | ||
closeModal, | ||
}: ModalSendRemindExampleProps) { | ||
const sendRemindExample = () => { | ||
console.log('예시 리마인드 전송 후 완료 시 toast 띄우기 ! '); | ||
}; | ||
|
||
const onClickSendRemindExample = () => { | ||
sendRemindExample(); | ||
closeModal(); | ||
}; | ||
|
||
return ( | ||
<Modal> | ||
<ModalBasic | ||
onClickYes={onClickSendRemindExample} | ||
onClickNo={() => { | ||
closeModal(); | ||
}} | ||
confirmSentense="체험하기"> | ||
<p className={classNames(['remind-example__title', 'font-size-lg'])}> | ||
리마인드 메세지란? | ||
</p> | ||
|
||
<p className="remind-example__description"> | ||
미래의 나에게 보내는 메세지에요. | ||
</p> | ||
|
||
<div className="remind-example__content"> | ||
<div className="remind-example__kakao"> | ||
<p | ||
className={classNames([ | ||
'remind-example__kakao__title', | ||
'font-size-xs', | ||
])}> | ||
카카오톡 | ||
</p> | ||
<Image | ||
className="remind-example__kakao__image" | ||
src={remind_example_kakao} | ||
alt="리마인드 메세지 예시 - 카카오톡" | ||
/> | ||
</div> | ||
|
||
<div className="remind-example__email"> | ||
<p | ||
className={classNames([ | ||
'remind-example__email__title', | ||
'font-size-xs', | ||
])}> | ||
이메일 | ||
</p> | ||
<Image | ||
className="remind-example__email__image" | ||
src={remind_example_email_temp} | ||
alt="리마인드 메세지 예시 - 이메일" | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div className="remind-example__try"> | ||
<p | ||
className={classNames([ | ||
'remind-example__try__title', | ||
'font-size-sm', | ||
])}> | ||
설정된 알림 방식으로 체험해볼 수 있어요! | ||
</p> | ||
<p | ||
className={classNames([ | ||
'remind-example__try__warning-text', | ||
'font-size-sm', | ||
'color-origin-primary', | ||
])}> | ||
{'(1일 3번 제한)'} | ||
</p> | ||
</div> | ||
</ModalBasic> | ||
</Modal> | ||
); | ||
} |
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,51 @@ | ||
.remind-example { | ||
&__title { | ||
text-align: center; | ||
} | ||
|
||
&__description { | ||
text-align: center; | ||
margin-top: 1rem; | ||
} | ||
|
||
&__content { | ||
margin-top: 1.5rem; | ||
display: flex; | ||
gap: 1rem; | ||
} | ||
|
||
&__kakao { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 0.5rem; | ||
|
||
&__image { | ||
margin-top: 0.5rem; | ||
width: 100%; | ||
height: 220px; | ||
object-fit: contain; | ||
} | ||
} | ||
|
||
&__email { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 0.5rem; | ||
|
||
&__image { | ||
width: 100%; | ||
margin-top: 0.5rem; | ||
height: 220px; | ||
object-fit: contain; | ||
} | ||
} | ||
|
||
&__try { | ||
margin-top: 1.25rem; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
} |
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