|
| 1 | +"use client"; |
| 2 | +import BubbleDiv from "@/app/_components/BubbleDiv"; |
| 3 | +import Button from "@/components/ui/Button"; |
| 4 | +import { KakaoLoginButton, GoogleLoginButton } from "./SocialButtonList"; |
| 5 | +import { |
| 6 | + Drawer, |
| 7 | + DrawerContent, |
| 8 | + DrawerTitle, |
| 9 | + DrawerTrigger, |
| 10 | +} from "@/components/ui/drawer"; |
| 11 | + |
| 12 | +export default function ScreenLoginActionSection() { |
| 13 | + const handleKakaoLogin = () => { |
| 14 | + // window.location.href = "https://backend.comatching.site/oauth2/authorization/kakao"; |
| 15 | + alert("코매칭 서비스는 10/13일부로 종료되었습니다."); |
| 16 | + }; |
| 17 | + |
| 18 | + const handleGoogleLogin = () => { |
| 19 | + // window.location.href = "https://backend.comatching.site/oauth2/authorization/google"; |
| 20 | + alert("코매칭 서비스는 10/13일부로 종료되었습니다."); |
| 21 | + }; |
| 22 | + |
| 23 | + return ( |
| 24 | + <section className="flex flex-col items-center"> |
| 25 | + <BubbleDiv /> |
| 26 | + <KakaoLoginButton |
| 27 | + className="mt-[1.6vh] mb-[0.49vh]" |
| 28 | + onClick={handleKakaoLogin} |
| 29 | + shadow={true} |
| 30 | + > |
| 31 | + 카카오로 빠르게 시작하기 |
| 32 | + </KakaoLoginButton> |
| 33 | + <Drawer> |
| 34 | + <div className="typo-14-600 text-color-text-caption2 flex flex-col items-center leading-[1.6]"> |
| 35 | + <span>또는</span> |
| 36 | + <DrawerTrigger asChild> |
| 37 | + <button |
| 38 | + type="button" |
| 39 | + className="all-[unset] cursor-pointer underline" |
| 40 | + > |
| 41 | + 다른 방법으로 로그인 |
| 42 | + </button> |
| 43 | + </DrawerTrigger> |
| 44 | + </div> |
| 45 | + <DrawerContent |
| 46 | + showHandle={false} |
| 47 | + className="mx-auto flex h-[44.33vh] w-full flex-col items-center px-4 pt-6 md:max-w-[430px]" |
| 48 | + > |
| 49 | + <DrawerTitle className="sr-only">다른 로그인 방법</DrawerTitle> |
| 50 | + <div className="flex w-full flex-col items-start gap-2"> |
| 51 | + <span className="typo-20-700 text-bottomsheet-text-title"> |
| 52 | + 로그인/회원가입 |
| 53 | + </span> |
| 54 | + <span className="typo-14-500 text-[#999]"> |
| 55 | + 로그인과 회원가입 수단은 동일합니다. |
| 56 | + <br /> |
| 57 | + 원하는 계정으로 시작하세요. |
| 58 | + </span> |
| 59 | + </div> |
| 60 | + <KakaoLoginButton onClick={handleKakaoLogin} className="mt-8 mb-4"> |
| 61 | + 카카오로 시작하기 |
| 62 | + </KakaoLoginButton> |
| 63 | + <GoogleLoginButton className="w-full" onClick={handleGoogleLogin}> |
| 64 | + 구글로 시작하기 |
| 65 | + </GoogleLoginButton> |
| 66 | + <div className="typo-14-500 text-bottomsheet-text-caption mt-6 flex flex-col items-center"> |
| 67 | + <span>혹은</span> |
| 68 | + <button |
| 69 | + type="button" |
| 70 | + className="all-[unset] cursor-pointer underline" |
| 71 | + > |
| 72 | + 이메일로 로그인 |
| 73 | + </button> |
| 74 | + </div> |
| 75 | + </DrawerContent> |
| 76 | + </Drawer> |
| 77 | + <span className="typo-12-600 text-footo-text-main mt-[6.75vh] mb-[6.15vh]"> |
| 78 | + Developed By Team Comatching, Catholic University of Korea |
| 79 | + </span> |
| 80 | + </section> |
| 81 | + ); |
| 82 | +} |
0 commit comments