From b3f31795c0e4c421ead475c4b4ea4e0d5927c229 Mon Sep 17 00:00:00 2001 From: eunhak Date: Wed, 15 May 2024 21:30:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=88=84=EB=9D=BD=20=EC=82=AC=ED=95=AD?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index.tsx | 192 ++++++++++++++++++------------------- src/pages/sign/index.tsx | 55 +++++------ src/pages/signup/index.tsx | 20 ++-- 3 files changed, 131 insertions(+), 136 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 0897bae..b40d056 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,116 +1,114 @@ // import { Inter } from 'next/font/google'; -import { userinfo } from '@/api/auth/auth.get.api'; -import Layout from '@/components/layout/Layout'; +// import { userinfo } from '@/api/auth/auth.get.api'; +// import Layout from '@/components/layout/Layout'; import Image from 'next/image'; -import { useEffect } from 'react'; +// import { useEffect } from 'react'; // const inter = Inter({ subsets: ['latin'] }); export default function Home() { - useEffect(() => { - userinfo(); - }, []); + // useEffect(() => { + // userinfo(); + // }, []); return (
- -
-

-
- - By{' '} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
+
+

+ +
- -

- Learn{' '} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
+
+ Next.js Logo +
- -

- Templates{' '} - - -> - -

-

- Discover and deploy boilerplate example Next.js projects. -

-
+
+ +

+ Docs{' '} + + -> + +

+

+ Find in-depth information about Next.js features and API. +

+
- -

- Deploy{' '} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
- + +

+ Learn{' '} + + -> + +

+

+ Learn about Next.js in an interactive course with quizzes! +

+
+ + +

+ Templates{' '} + + -> + +

+

+ Discover and deploy boilerplate example Next.js projects. +

+
+ + +

+ Deploy{' '} + + -> + +

+

+ Instantly deploy your Next.js site to a shareable URL with Vercel. +

+
+
); } diff --git a/src/pages/sign/index.tsx b/src/pages/sign/index.tsx index 92aad37..8605686 100644 --- a/src/pages/sign/index.tsx +++ b/src/pages/sign/index.tsx @@ -1,4 +1,3 @@ -import Layout from '@/components/layout/Layout'; import MainContainer from '@/components/shared/MainContainer'; import SignInButton from '@/components/shared/sign/SignInButton'; import SignUpButton from '@/components/shared/sign/SignUpButton'; @@ -8,38 +7,36 @@ import Link from 'next/link'; const SignHomePage = () => { return ( - -
-
- -
-
- - 예약하고, 탐색하고, 성장하는 -
-
- - 멀티 서비스 오피스 - -
+
+
+
- -
- - +
+ + 예약하고, 탐색하고, 성장하는 +
+
+ + 멀티 서비스 오피스 +
+
-
- - 비밀번호를 잊으셨나요?{' '} +
+ + +
+ +
+ + 비밀번호를 잊으셨나요?{' '} + + + + 비밀번호 찾기{' '} - - - 비밀번호 찾기{' '} - - -
- + +
); }; diff --git a/src/pages/signup/index.tsx b/src/pages/signup/index.tsx index 8b7b29c..9ee3b24 100644 --- a/src/pages/signup/index.tsx +++ b/src/pages/signup/index.tsx @@ -16,16 +16,16 @@ const SignUpPage = () => { const { mutateAsync: signUpReq } = useMutation( ({ - memberEmail, - memberPassword, + email, + password, memberName, memberJob, memberPhone, memberSmsAgree }: ISignUp) => { return signup({ - memberEmail, - memberPassword, + email, + password, memberName, memberJob, memberPhone, @@ -57,24 +57,24 @@ const SignUpPage = () => { const handleNameAndEmail = ( name: ApplyValues['memberName'], - email: ApplyValues['memberEmail'] + email: ApplyValues['password'] ) => { setApplyValues((prev) => ({ ...prev, memberName: name, - memberEmail: email, + email: email, step: (prev.step as number) + 1 })); }; const handleRemainData = ( - password: ApplyValues['memberPassword'], + password: ApplyValues['password'], job: ApplyValues['memberJob'], smsAgree: ApplyValues['memberSmsAgree'] ) => { setApplyValues((prev) => ({ ...prev, - memberPassword: password, + password: password, memberJob: job, memberSmsAgree: smsAgree, step: (prev.step as number) + 1 @@ -84,8 +84,8 @@ const SignUpPage = () => { useEffect(() => { if (applyValues.step === 3) { signUpReq({ - memberEmail: applyValues.memberEmail as string, - memberPassword: applyValues.memberPassword as string, + email: applyValues.email as string, + password: applyValues.password as string, memberName: applyValues.memberName as string, memberJob: applyValues.memberJob as string, memberPhone: applyValues.memberPhone as string,