From bfe8afda8e9ccf6bd17025af557ee036f0d5e0d8 Mon Sep 17 00:00:00 2001 From: oikkoikk Date: Wed, 11 Oct 2023 17:22:51 +0900 Subject: [PATCH] [SWM-360] Feat : auth/signin, auth/signout page --- src/app/auth/signin/page.tsx | 34 ++++++++++++++++++++----- src/app/auth/signout/page.tsx | 38 +++++++++++++++++++++++----- src/app/not-found.tsx | 8 +++--- src/components/gnb/NavBar.tsx | 5 ++-- src/components/login/LoginButton.tsx | 15 ++++++----- src/hooks/useAuth.ts | 5 ++-- src/middleware.ts | 9 ++++--- 7 files changed, 84 insertions(+), 30 deletions(-) diff --git a/src/app/auth/signin/page.tsx b/src/app/auth/signin/page.tsx index 676cffe..233834c 100644 --- a/src/app/auth/signin/page.tsx +++ b/src/app/auth/signin/page.tsx @@ -1,9 +1,31 @@ -import React from 'react' +'use client'; +import LoginButton from '@/src/components/login/LoginButton'; +import Button from '@/src/components/ui/button/Button'; +import { useRouter } from 'next/navigation'; -type Props = {} +export default function Signin({}) { + const router = useRouter(); -export default function Signin({}: Props) { return ( -
Signin
- ) -} \ No newline at end of file +
+
+

+

{'스룸의 기능은 로그인을 해야'}

+

{'이용하실 수 있어요 :)'}

+

+

+ {'구글 로그인으로 간편하게 스룸을 이용해보세요!'} +

+ + +
+
+ ); +} diff --git a/src/app/auth/signout/page.tsx b/src/app/auth/signout/page.tsx index de8cd10..efe7abd 100644 --- a/src/app/auth/signout/page.tsx +++ b/src/app/auth/signout/page.tsx @@ -1,9 +1,35 @@ -import React from 'react' +'use client'; +import Button from '@/src/components/ui/button/Button'; +import useAuth from '@/src/hooks/useAuth'; +import { useRouter } from 'next/navigation'; -type Props = {} +export default function Signout({}) { + const router = useRouter(); + const { logout } = useAuth(); -export default function Signout({}: Props) { return ( -
Signout
- ) -} \ No newline at end of file +
+
+

+

{'지금 로그아웃 하시면'}

+

{'스룸의 기능을 이용하실 수 없어요! :('}

+

+

+ {'이용 중이시던 서비스를 계속해서 즐겨보세요'} +

+ + +
+
+ ); +} diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 280e3d0..b9ab68b 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -6,12 +6,12 @@ export default function NotFound({}) { const router = useRouter(); return ( -
-
-

+
+
+

{'해당 페이지를 찾을 수 없어요 :('}

-

+

{'404 not found'}