From e7d874600ee006c1db4f22830a063c62d55dc4a5 Mon Sep 17 00:00:00 2001 From: navyjeongs Date: Tue, 30 Jan 2024 00:15:31 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login.tsx | 103 ++++++++++++++++++++++++++++++-------------- 1 file changed, 71 insertions(+), 32 deletions(-) diff --git a/src/pages/login.tsx b/src/pages/login.tsx index 8b9dc32..bde58fc 100644 --- a/src/pages/login.tsx +++ b/src/pages/login.tsx @@ -1,53 +1,92 @@ import styled from '@emotion/styled'; import Image from 'next/image'; -import { useRouter } from 'next/router'; -import { useEffect } from 'react'; const Login = () => { - const router = useRouter(); - - useEffect(() => { - // 최근 방문한 path 저장 - if (router.query.callback) { - localStorage.setItem('latestVisit', router.query.callback as string); - } else { - localStorage.setItem('latestVisit', '/'); - } - }, []); - return ( - - - League Hub - - kakao_login - - - +
+ + + + + + 당신의 실력을 증명해보세요. + 대회 개최부터 운영, 관전까지 + 리그허브에서 한번에.. + + + +
); }; -export default Login; +const Main = styled.div` + width: 100%; + height: 100vh; -const Container = styled.div` display: flex; align-items: center; justify-content: center; + flex-direction: column; + + color: black; +`; + +const BgMain = styled.div` width: 100%; - height: calc(100vh - 4.5rem); + height: 100vh; + + position: absolute; + + background: url('/img/main/main.png'); + background-size: 100% 100vh; + background-repeat: no-repeat; + opacity: 0.6; + z-index: -5; `; -const Wrapper = styled.div` - display: flex; - flex-direction: column; - row-gap: 10rem; +const Container = styled.div` + height: 50rem; + width: 60rem; + + margin: 0 auto; +`; + +const LogoContainer = styled.div``; + +const LogoImage = styled(Image)` + margin: 0 auto; `; -const Title = styled.h1` +const Title = styled.h2` + margin: 2rem 0; + text-align: center; - font-size: 3rem; + font-size: 3.2rem; `; +const ContentText = styled.div` + text-align: center; + font-size: 2.2rem; + font-weight: 700; +`; const KakaoLogin = styled.a``; + +const FooterText = styled.div` + margin: 4rem 0; +`; +const Footer = styled.div` + margin: 10rem auto 0 auto; + + font-size: 2rem; + text-align: center; + font-weight: 700; +`; + +export default Login;