From bfd7d3b32db3433ad7d7ca4a8f0b2bad4fab4697 Mon Sep 17 00:00:00 2001 From: MOON Date: Fri, 19 Jul 2024 19:05:22 +0900 Subject: [PATCH 1/3] =?UTF-8?q?:fire:=20AuthLayout=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pageLayout/AuthLayout/AuthLayout.tsx | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 src/pageLayout/AuthLayout/AuthLayout.tsx diff --git a/src/pageLayout/AuthLayout/AuthLayout.tsx b/src/pageLayout/AuthLayout/AuthLayout.tsx deleted file mode 100644 index 3cc64aa7..00000000 --- a/src/pageLayout/AuthLayout/AuthLayout.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { ReactNode } from 'react'; - -export default function AuthLayout({ children }: { children: ReactNode }) { - return
{children}
; -} From 467a76c9d699b6a2f5dafc395f6301365e32e3c8 Mon Sep 17 00:00:00 2001 From: MOON Date: Fri, 19 Jul 2024 19:09:45 +0900 Subject: [PATCH 2/3] =?UTF-8?q?:art:=20=ED=9A=8C=EC=9B=90=EA=B0=80?= =?UTF-8?q?=EC=9E=85=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EB=B8=8C=EB=9D=BC?= =?UTF-8?q?=EC=9A=B0=EC=A0=80=20=ED=99=95=EB=8C=80=EC=8B=9C=20ui=20?= =?UTF-8?q?=EA=B9=A8=EC=A7=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/auth/SignUp.tsx | 115 +++++++++++++++++++------------------- 1 file changed, 56 insertions(+), 59 deletions(-) diff --git a/src/pages/auth/SignUp.tsx b/src/pages/auth/SignUp.tsx index 66eb7629..2465c7ec 100644 --- a/src/pages/auth/SignUp.tsx +++ b/src/pages/auth/SignUp.tsx @@ -1,6 +1,5 @@ import Image from 'next/image'; import Link from 'next/link'; -import AuthLayout from '@/pageLayout/AuthLayout/AuthLayout'; import { zodResolver } from '@hookform/resolvers/zod'; import { PostSignUpRequest, PostSignUpRequestType } from '@/schema/auth'; import { useForm } from 'react-hook-form'; @@ -21,21 +20,21 @@ export default function SignUp() { }); return ( - -
+
+
logo
-
- -
+
+ + ( - - 이메일 + + 이메일 )} /> -
- ( - - 비밀번호 - - - - - - )} - /> - ( - - - - - - - )} - /> -
+ ( + + 비밀번호 + + + + + + )} + /> + ( + + + + + + + )} + /> ( - - 닉네임 + + 닉네임 )} /> -
- - - -
+ + + +
+
@@ -124,6 +121,6 @@ export default function SignUp() { logo-kakao
- +
); } From bd4806141531a1efc2ecffa38721c90530e34268 Mon Sep 17 00:00:00 2001 From: MOON Date: Fri, 19 Jul 2024 19:20:23 +0900 Subject: [PATCH 3/3] =?UTF-8?q?:truck:=20=EC=A0=95=EA=B7=9C=ED=91=9C?= =?UTF-8?q?=ED=98=84=EC=8B=9D=20=EB=84=A4=EC=9D=B4=EB=B0=8D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/schema/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schema/auth.ts b/src/schema/auth.ts index 5adda753..0c287eeb 100644 --- a/src/schema/auth.ts +++ b/src/schema/auth.ts @@ -1,6 +1,6 @@ import z from 'zod'; -const PWD_VALIDATION = /^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{8,}$/; +const PWD_VALIDATION_REGEX = /^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{8,}$/; export const PostSignUpRequest = z .object({ email: z.string().min(1, { message: '이메일은 필수 입력입니다.' }).email({ message: '이메일 형식으로 작성해 주세요.' }), @@ -8,7 +8,7 @@ export const PostSignUpRequest = z .string() .min(1, { message: '비밀번호는 필수 입력입니다.' }) .min(8, { message: '비밀번호는 최소 8자 이상입니다.' }) - .regex(PWD_VALIDATION, { message: '비밀번호는 숫자, 영문, 특수문자로만 가능합니다.' }), + .regex(PWD_VALIDATION_REGEX, { message: '비밀번호는 숫자, 영문, 특수문자로만 가능합니다.' }), passwordConfirmation: z.string().min(1, { message: '비밀번호 확인을 입력해주세요.' }), nickname: z.string().min(1, { message: '닉네임은 필수 입력입니다.' }).max(20, { message: '닉네임은 최대 20자까지 가능합니다.' }), })