From 23615688e4f569e97c590c430175791e9c6e756a Mon Sep 17 00:00:00 2001 From: k-wisdom Date: Mon, 3 Jun 2024 00:20:54 +0900 Subject: [PATCH 01/14] [Design] Add Form mobile responsive --- src/app/(auth)/(pages)/signin/page.tsx | 4 +- src/app/(auth)/(pages)/signup/page.tsx | 4 +- src/app/(auth)/(pages)/terms/page.tsx | 19 +++++- .../components/common/ButtonInInput.tsx | 2 +- .../(auth)/components/common/Container.tsx | 2 +- .../(auth)/components/common/RoundedFrame.tsx | 2 +- .../components/common/TogglePassword.tsx | 2 +- src/app/(auth)/components/signin/Login.tsx | 8 ++- .../components/signin/LoginCheckbox.tsx | 2 +- .../(auth)/components/signup/EmailInput.tsx | 4 +- .../(auth)/components/signup/SignupForm.tsx | 7 +- src/app/(auth)/components/terms/ArrowBtn.tsx | 4 +- .../(auth)/components/terms/TermToggleBox.tsx | 6 +- src/app/(auth)/components/terms/Terms.tsx | 65 +++++++------------ .../(auth)/components/terms/TermsContent.tsx | 13 ++-- .../common/components/form/BlueSquareBtn.tsx | 2 +- src/app/common/components/form/CheckBox.tsx | 4 +- src/app/common/components/form/Input.tsx | 5 +- src/app/common/components/form/InputBox.tsx | 8 +-- .../common/components/form/MobileBackBtn.tsx | 9 +++ .../common/components/form/RadioButton.tsx | 2 +- .../components/form/RoundedCheckbox.tsx | 8 +-- src/app/common/components/icons/Check.tsx | 1 + src/app/common/components/icons/Eyes.tsx | 2 + 24 files changed, 104 insertions(+), 81 deletions(-) create mode 100644 src/app/common/components/form/MobileBackBtn.tsx diff --git a/src/app/(auth)/(pages)/signin/page.tsx b/src/app/(auth)/(pages)/signin/page.tsx index d6a0b28..c5a232d 100644 --- a/src/app/(auth)/(pages)/signin/page.tsx +++ b/src/app/(auth)/(pages)/signin/page.tsx @@ -23,7 +23,7 @@ export default async function SignInpage({ 기업 회원가입 개인 회원가입 @@ -33,4 +33,4 @@ export default async function SignInpage({ ); } -const BlueBorderLink = `block w-full h-[3.875rem] border-[1.5px] border-solid border-blue-400 rounded-[0.5rem] text-main-black text-[1.25rem] font-bold text-center leading-[3.875rem]`; +const BlueBorderLink = `block w-full h-[3.875rem] border-[1.5px] border-solid border-blue-400 rounded-[0.5rem] text-main-black text-[1.25rem] font-bold text-center leading-[3.875rem] max-md:h-[2.75rem] max-md:leading-[2.75rem] max-md:rounded-[0.5rem] max-md:text-[1rem] max-md:border-[1px]`; diff --git a/src/app/(auth)/(pages)/signup/page.tsx b/src/app/(auth)/(pages)/signup/page.tsx index 525cfd8..baaa30e 100644 --- a/src/app/(auth)/(pages)/signup/page.tsx +++ b/src/app/(auth)/(pages)/signup/page.tsx @@ -13,8 +13,8 @@ export default function SignupPage({ searchParams: { type } }: Props) { return ( -

- {!type ? '회원가입' : '기업 회원가입'} +

+ {!type ? '개인 회원가입' : '기업 회원가입'}

diff --git a/src/app/(auth)/(pages)/terms/page.tsx b/src/app/(auth)/(pages)/terms/page.tsx index a77cac3..af94d19 100644 --- a/src/app/(auth)/(pages)/terms/page.tsx +++ b/src/app/(auth)/(pages)/terms/page.tsx @@ -1,4 +1,7 @@ import Terms from '@/app/(auth)/components/terms/Terms'; +import { Suspense } from 'react'; +import RoundedFrame from '@/app/(auth)/components/common/RoundedFrame'; +import Container from '@/app/(auth)/components/common/Container'; // 임시로 넣음 const OPTIONAL_TERMS = [ @@ -15,6 +18,20 @@ const REQUIRED_TERMS = [ export default function TermsPage() { return ( - + + +
+

+ 회원가입 +

+ + + +
+
+
); } diff --git a/src/app/(auth)/components/common/ButtonInInput.tsx b/src/app/(auth)/components/common/ButtonInInput.tsx index 1f30472..c293b33 100644 --- a/src/app/(auth)/components/common/ButtonInInput.tsx +++ b/src/app/(auth)/components/common/ButtonInInput.tsx @@ -8,7 +8,7 @@ export default function ButtonInInput({ text, disabled, onClick }: Props) { diff --git a/src/app/(auth)/components/signin/Login.tsx b/src/app/(auth)/components/signin/Login.tsx index 660280c..31c2e80 100644 --- a/src/app/(auth)/components/signin/Login.tsx +++ b/src/app/(auth)/components/signin/Login.tsx @@ -73,7 +73,7 @@ export default function Login({ callbackUrl }: { callbackUrl: string }) { return (
-

+

로그인

@@ -109,14 +109,16 @@ export default function Login({ callbackUrl }: { callbackUrl: string }) {
비밀번호를 잊으셨나요?
로그인 상태 유지
-
+
{ return ( <> -