From e047320b856531ab5e799c255e2cc4acfefce3f1 Mon Sep 17 00:00:00 2001 From: shinwokkang <120699742+shinwokkang@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:33:40 +0900 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20gotologin=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/join/GotoLogin.tsx | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/src/components/join/GotoLogin.tsx b/src/components/join/GotoLogin.tsx index 0875bb6..6bb1c35 100644 --- a/src/components/join/GotoLogin.tsx +++ b/src/components/join/GotoLogin.tsx @@ -1,7 +1,36 @@ +/** @jsxImportSource @emotion/react */ +import styled from "@emotion/styled"; +import { useNavigate } from "react-router-dom"; + +const GotoLoginContainer = styled.div` + font-size: 16px; + color: gray; + display: flex; + justify-content: center; +`; + +const UnderlinedLink = styled.u` + color: gray; + cursor: pointer; + text-decoration: underline; + justify-content: center; + + &:hover { + color: black; + } +`; + const GotoLogin = () => { + const navigate = useNavigate(); + const handleGotoLogin = () => { + navigate("/login"); // 로그인 후 이동할 경로 + }; return (
- 이미 계정이 있으신가요? 로그인 + + 이미 계정이 있으신가요? + 로그인 +
); }; From 3d5621e035f9c83ce25d1523b7832df77414b03d Mon Sep 17 00:00:00 2001 From: shinwokkang <120699742+shinwokkang@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:55:41 +0900 Subject: [PATCH 2/6] =?UTF-8?q?feat:=20gotologin=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 +- src/components/login/GotoJoin.tsx | 35 ++++++++++++++++++++++++++++++ src/components/pages/LoginPage.tsx | 5 ++--- 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 src/components/login/GotoJoin.tsx diff --git a/src/App.tsx b/src/App.tsx index 74e8365..b828728 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,7 +12,7 @@ function App() { - } /> + } /> } /> } /> diff --git a/src/components/login/GotoJoin.tsx b/src/components/login/GotoJoin.tsx new file mode 100644 index 0000000..de249c7 --- /dev/null +++ b/src/components/login/GotoJoin.tsx @@ -0,0 +1,35 @@ +/** @jsxImportSource @emotion/react */ +import styled from "@emotion/styled"; +import { useNavigate } from "react-router-dom"; + +const GotoJoinContainer = styled.div` + font-size: 16px; + color: gray; + display: flex; + justify-content: center; +`; + +const UnderlinedLink = styled.u` + color: gray; + cursor: pointer; + text-decoration: underline; + justify-content: center; + + &:hover { + color: black; + } +`; + +const GotoJoin = () => { + const navigate = useNavigate(); + const handleGotoJoin = () => { + navigate("/join"); // 로그인 후 이동할 경로 + }; + return ( + + 회원가입 + + ); +}; + +export default GotoJoin; diff --git a/src/components/pages/LoginPage.tsx b/src/components/pages/LoginPage.tsx index 3254b53..1151e55 100644 --- a/src/components/pages/LoginPage.tsx +++ b/src/components/pages/LoginPage.tsx @@ -4,6 +4,7 @@ import styled from "@emotion/styled"; import { useState } from "react"; import Input from "../login/Input"; import Button from "../login/Button"; +import GotoJoin from "../login/GotoJoin"; const WrapperStyle = styled.div` display: flex; @@ -58,9 +59,7 @@ const LoginPage = () => { />