-
Notifications
You must be signed in to change notification settings - Fork 3
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
12 changed files
with
75 additions
and
104 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
import { PropsWithChildren } from 'react'; | ||
|
||
interface PopupI extends PropsWithChildren { | ||
title?: string; | ||
content?: string; | ||
onClose?: () => void; | ||
} | ||
|
||
export default function Popup({ title, content, children, onClose }: PopupI) { | ||
return ( | ||
<div className="fixed inset-x-0 inset-y-0 z-30 flex items-center justify-center"> | ||
<div className="fixed inset-x-0 inset-y-0 bg-dimmed opacity-30" onClick={onClose} /> | ||
<div className="z-30 w-300 rounded-16 bg-white p-16 text-center"> | ||
{(title || content) && ( | ||
<div className="mb-16 py-16"> | ||
<h4 className="mb-8">{title}</h4> | ||
<div>{content}</div> | ||
</div> | ||
)} | ||
<div className="&:flex-1 flex w-full justify-evenly gap-8 [&>button]:flex-1"> | ||
{children} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
import Popup from './Popup'; | ||
|
||
interface PreparingModalProps { | ||
onClose: () => void; | ||
} | ||
export default function PreparingPopup({ onClose }: PreparingModalProps) { | ||
return ( | ||
<Popup onClose={onClose}> | ||
<div>{`해당 기능은 아직 준비중이에요!\n업데이트를 기대해 주세요.`}</div> | ||
</Popup> | ||
); | ||
} |
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,3 @@ | ||
export { default as Modal } from './Modal'; | ||
export { default as Popup } from './Popup'; | ||
export { default as ImageModal } from './ImageModal.client'; | ||
export { default as PreparingModal } from './PreparingModal'; | ||
export { default as PreparingPopup } from './PreparingPopup'; |