-
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
* feat: LoginBottomSheet 컴포넌트 작성 * feat: BottomNavigation에 BottomSheet 이벤트 등록 * fix: SVG stroke-width 파라미터명 수정 * fix: 좋아요 갯수 뱃지 아이콘 스타일링 방식을 className 인라인으로 수정 * fix: BottomNavigation 롤백 및 시맨틱 태그 적용 * chore: 주석 제거 * chore: 불필요한 Fragment 제거
- Loading branch information
Showing
3 changed files
with
51 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { IconClose, IconKakao, LogoWithText } from '@public/icons'; | ||
|
||
import Button from '@/v1/base/Button'; | ||
import BottomSheet from '@/v1/base/BottomSheet'; | ||
|
||
type LoginBottomSheetProps = { | ||
isOpen: boolean; | ||
onClose: () => void; | ||
}; | ||
|
||
const LoginBottomSheet = ({ isOpen, onClose }: LoginBottomSheetProps) => { | ||
const handleClickKakaoLogin = () => { | ||
return (location.href = `${process.env.NEXT_PUBLIC_API_URL}/oauth2/authorize/kakao?redirect_uri=${process.env.NEXT_PUBLIC_CLIENT_REDIRECT_URI}`); | ||
}; | ||
|
||
return ( | ||
<BottomSheet isShow={isOpen} onClose={onClose}> | ||
<IconClose | ||
className="absolute right-0 top-0 mr-[2rem] mt-[2rem] h-[2rem] w-[2rem] cursor-pointer fill-black-900" | ||
onClick={onClose} | ||
/> | ||
<div className="m-auto flex w-full max-w-[38rem] flex-col items-center gap-[2.5rem] px-[2rem] pt-[5rem]"> | ||
<LogoWithText className="h-auto w-[6rem]" /> | ||
<p className="text-lg font-bold text-black-700"> | ||
로그인이 필요한 서비스에요! | ||
</p> | ||
<p className="whitespace-pre-line text-center text-sm font-normal text-placeholder"> | ||
간편하게 카카오로 로그인을 하고, | ||
<br /> | ||
<span className="text-main-900">다독다독</span>의 다양한 기능을 | ||
이용해보세요. | ||
</p> | ||
<Button onClick={handleClickKakaoLogin} colorScheme="kakao" size="full"> | ||
<div className="flex w-full items-center justify-center gap-[1rem]"> | ||
<IconKakao className="h-auto w-[1.6rem]" /> | ||
<p className="text-md font-normal">카카오 로그인</p> | ||
</div> | ||
</Button> | ||
</div> | ||
</BottomSheet> | ||
); | ||
}; | ||
|
||
export default LoginBottomSheet; |