-
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.
Merge pull request #72 from DDD-Community/feature/69
[FEATURE/69] 카카오 로그인
- Loading branch information
Showing
23 changed files
with
457 additions
and
28 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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,26 @@ | ||
import Modal from '@/components/Modal' | ||
import { useRouter } from 'next/navigation' | ||
import SurprisedIcon from 'public/icons/surprised.svg' | ||
|
||
interface ModalProps { | ||
isOpen: boolean | ||
onClose: () => void | ||
} | ||
|
||
const GoToLoginModal = ({ isOpen, onClose }: ModalProps) => { | ||
const router = useRouter() | ||
return ( | ||
<Modal isOpen={isOpen} onClose={onClose}> | ||
<Modal.CenterModal icon={<SurprisedIcon />}> | ||
<Modal.Title>로그인 후 이용 가능합니다.</Modal.Title> | ||
<Modal.Content>지금 폴라보와 함께 추억을 담아보세요!</Modal.Content> | ||
<Modal.CenterConfirm | ||
confirmText="확인" | ||
onConfirm={() => router.push('/login')} | ||
/> | ||
</Modal.CenterModal> | ||
</Modal> | ||
) | ||
} | ||
|
||
export default GoToLoginModal |
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,22 @@ | ||
'use client' | ||
|
||
import Button from '@/components/Button' | ||
import { signIn } from 'next-auth/react' | ||
import KakaoIcon from 'public/icons/kakao.svg' | ||
|
||
const KakaoLogin = () => { | ||
return ( | ||
<Button | ||
size="lg" | ||
className="mb-4 flex cursor-pointer items-center justify-center gap-[9px] bg-kakao font-semiBold text-gray-950 shadow-button active:bg-[#FEE500] active:bg-gradient-to-t active:from-[rgba(0,0,0,0.10)] active:to-[rgba(0,0,0,0.10)]" | ||
onClick={async () => { | ||
await signIn('kakao') | ||
}} | ||
> | ||
<KakaoIcon /> | ||
카카오로 시작하기 | ||
</Button> | ||
) | ||
} | ||
|
||
export default KakaoLogin |
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,23 @@ | ||
import Link from 'next/link' | ||
|
||
const LinkTo = ({ text, link }: { text: string; link: string }) => ( | ||
<Link href={link} className="border-b border-gray-400 font-bold"> | ||
{text} | ||
</Link> | ||
) | ||
|
||
const Policy = () => { | ||
return ( | ||
<div className="text-center text-xxs text-gray-400"> | ||
<div> | ||
시작하기 버튼을 누르시면 POLABO의 | ||
<LinkTo text="서비스 이용약관" link="" />과 | ||
</div> | ||
<div> | ||
<LinkTo text="개인정보 처리방침" link="" />에 동의하게 됩니다. | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default Policy |
Oops, something went wrong.