diff --git a/src/app/(routes)/login/page.tsx b/src/app/(routes)/login/page.tsx index 4d955cce..d4aa356f 100644 --- a/src/app/(routes)/login/page.tsx +++ b/src/app/(routes)/login/page.tsx @@ -1,5 +1,11 @@ +import Login from '@/components/Login/Login' + const LoginPage = () => { - return <> + return ( +
+ +
+ ) } export default LoginPage diff --git a/src/components/Login/Login.tsx b/src/components/Login/Login.tsx new file mode 100644 index 00000000..d508a75d --- /dev/null +++ b/src/components/Login/Login.tsx @@ -0,0 +1,37 @@ +'use client' + +import { LinkIcon } from '@heroicons/react/20/solid' +import { ChatBubbleOvalLeftIcon } from '@heroicons/react/24/solid' +import Button from '../common/Button/Button' +import { useLogin } from './hooks/useLogin' + +const Login = () => { + const { loginKakao } = useLogin() + + //Todo: 카카오 로그인 토큰을 받아서 토큰이 db에 존재하면 로그인, 존재하지 않으면 회원가입 + + return ( +
+
+
+ +
+
+ LinkHub +
+
+ +
+ ) +} + +export default Login diff --git a/src/components/Login/hooks/useLogin.ts b/src/components/Login/hooks/useLogin.ts new file mode 100644 index 00000000..da8b3847 --- /dev/null +++ b/src/components/Login/hooks/useLogin.ts @@ -0,0 +1,9 @@ +const useLogin = () => { + const loginKakao = () => { + console.log('카카오 로그인 로직') + } + + return { loginKakao } +} + +export { useLogin }