From 05696749a1ab5f462dda8a2d11218609f8073b5a Mon Sep 17 00:00:00 2001
From: lth01
Date: Fri, 26 Apr 2024 15:39:58 +0900
Subject: [PATCH] =?UTF-8?q?Feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=99=94?=
=?UTF-8?q?=EB=A9=B4=20=EA=B0=9C=EB=B0=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
1. 로그인 화면 퍼블리싱
2. 로그인 버튼 mock 이벤트 바인딩
3. 비밀번호를 잊으셨습니까 클릭시 비밀번호 찾기로 이동
Resolve: #11
---
.../src/components/Layout/LabelSection.jsx | 19 +++++++
src/front/src/routes/Login.jsx | 49 +++++++------------
src/front/src/routes/Main.jsx | 8 +--
3 files changed, 42 insertions(+), 34 deletions(-)
create mode 100644 src/front/src/components/Layout/LabelSection.jsx
diff --git a/src/front/src/components/Layout/LabelSection.jsx b/src/front/src/components/Layout/LabelSection.jsx
new file mode 100644
index 0000000..a5b85bc
--- /dev/null
+++ b/src/front/src/components/Layout/LabelSection.jsx
@@ -0,0 +1,19 @@
+export default function LabelSection({className, id, label, isRequire = false, asChild = false, children, ...props}){
+ const wrapperClassName = `flex flex-col gap-2 items-center w-full ${className}`;
+ return (
+
+
+
+ {label}
+
+ {
+ isRequire ?
+ *
+ : <>>
+ }
+
+ {asChild ? children : <>>}
+
+ );
+}
\ No newline at end of file
diff --git a/src/front/src/routes/Login.jsx b/src/front/src/routes/Login.jsx
index 7d273a9..56ba049 100644
--- a/src/front/src/routes/Login.jsx
+++ b/src/front/src/routes/Login.jsx
@@ -1,7 +1,10 @@
-import { Button } from "@/components/ui/button";
import { useContext } from "react";
import { useNavigate } from "react-router-dom";
import { GlobalContext } from "..";
+import { Link } from "react-router-dom";
+import { Button } from "@/components/ui/button";
+import { Input } from "@/components/ui/input";
+import LabelSection from "@/components/Layout/LabelSection";
const Login = () =>{
//라우팅 네비게이터
@@ -14,37 +17,23 @@ const Login = () =>{
setLogin(true);
nevigate("/");
}
-
- const goSignup = () =>{
- nevigate("/signup")
- }
+
return (
-
-
- About Us
-
-
1
- 2
- 3
- 4
-
-
-
-
-
Get Started
-
-
-
-
+
+
diff --git a/src/front/src/routes/Main.jsx b/src/front/src/routes/Main.jsx
index 30395b1..3d5e0f8 100644
--- a/src/front/src/routes/Main.jsx
+++ b/src/front/src/routes/Main.jsx
@@ -16,12 +16,12 @@ const Main = () =>{
},[isLogin]);
const doLogin = () =>{
- setLogin(true);
- }
+ nevigate("/login");
+ }
const goSignup = () =>{
- nevigate("/signup");
- }
+ nevigate("/signup");
+ }
return (
isLogin ?