-
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.
Browse files
Browse the repository at this point in the history
…포넌트-작성 Fe/feature/#495 로그인 팝업 컴포넌트 작성
- Loading branch information
Showing
8 changed files
with
99 additions
and
24 deletions.
There are no files selected for viewing
Binary file not shown.
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,17 @@ | ||
import LoginPopup from '@components/Popup/LoginPopup'; | ||
|
||
import useOverlay from '@business/hooks/useOverlay'; | ||
|
||
interface UseLoginPopupParams { | ||
moveAiChat: () => void; | ||
} | ||
|
||
export function useLoginPopup({ moveAiChat }: UseLoginPopupParams) { | ||
const { open } = useOverlay(); | ||
|
||
const openLoginPopup = () => { | ||
open(() => <LoginPopup moveAiChat={moveAiChat}></LoginPopup>); | ||
}; | ||
|
||
return { openLoginPopup }; | ||
} |
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,28 @@ | ||
import { Button, KakaoLoginButton } from '@components/Buttons'; | ||
|
||
interface LoginPopupProps { | ||
moveAiChat: () => void; | ||
} | ||
export default function LoginPopup({ moveAiChat }: LoginPopupProps) { | ||
return ( | ||
<div className="w-[100vw] h-[100vh] flex-with-center"> | ||
<div className="flex flex-col gap-18 surface-content rounded p-24 shadow-popup"> | ||
<div className="flex-with-center p-16 display-medium16 text-center"> | ||
로그인을 하면 | ||
<br /> | ||
이전 상담 기록을 다시 볼 수 있어요 | ||
</div> | ||
<div className="w-full flex-with-center flex-col gap-16"> | ||
<KakaoLoginButton width={240} /> | ||
<Button | ||
color="cancel" | ||
width={240} | ||
onClick={moveAiChat} | ||
> | ||
로그인 없이 타로 볼래요 | ||
</Button> | ||
</div> | ||
</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
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