-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
221 additions
and
5 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
import { Link } from 'react-router-dom'; | ||
import { styled } from 'styled-components'; | ||
import googleLogo from '@/assets/icon/google-logo.svg'; | ||
import kakaoLogo from '@/assets/icon/kakao-logo.svg'; | ||
import slogan from '@/assets/image/shook-slogan.jpg'; | ||
import googleAuthUrl from '@/features/auth/constants/googleAuthUrl'; | ||
import Spacing from '@/shared/components/Spacing'; | ||
import ROUTE_PATH from '@/shared/constants/path'; | ||
|
||
const LoginPage = () => { | ||
return ( | ||
<LayoutContainer> | ||
<div> | ||
<Spacing direction="vertical" size={120} /> | ||
<Link to={ROUTE_PATH.ROOT} aria-label="shook 홈으로 가기"> | ||
<MainLogo src={slogan} alt="logo" aria-hidden="true" /> | ||
</Link> | ||
</div> | ||
<LoginButtonContainer> | ||
<LoginLink href={googleAuthUrl}> | ||
<GoogleLogin type="button"> | ||
<Spacing direction="horizontal" size={10} /> | ||
<LoginLogo src={googleLogo} alt="google logo" /> | ||
<LoginText>구글로 로그인하기</LoginText> | ||
<Spacing direction="horizontal" size={10} /> | ||
</GoogleLogin> | ||
</LoginLink> | ||
<KakaoLogin type="button" onClick={() => alert('카카오 로그인은 준비중입니다.')}> | ||
<Spacing direction="horizontal" size={10} /> | ||
<LoginLogo src={kakaoLogo} alt="google logo" /> | ||
<LoginText>카카오로 로그인하기</LoginText> | ||
<Spacing direction="horizontal" size={10} /> | ||
</KakaoLogin> | ||
</LoginButtonContainer> | ||
<div> | ||
<UnderLineAnchor | ||
href="https://silversound.notion.site/acc5cba213f041519ebbfe6c1960ef58?pvs=4" | ||
target="__blank" | ||
> | ||
개인정보 처리방침 | ||
</UnderLineAnchor> | ||
<Spacing direction="vertical" size={80} /> | ||
</div> | ||
</LayoutContainer> | ||
); | ||
}; | ||
|
||
const LayoutContainer = styled.main` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 100%; | ||
min-height: 100vh; | ||
padding: 0 16.66%; | ||
color: ${({ theme: { color } }) => color.white}; | ||
background-color: ${({ theme: { color } }) => color.black}; | ||
@media (max-width: ${({ theme }) => theme.breakPoints.xl}) { | ||
padding: 0 8.3%; | ||
} | ||
@media (max-width: ${({ theme }) => theme.breakPoints.md}) { | ||
padding: 0 4.16%; | ||
} | ||
@media (max-width: ${({ theme }) => theme.breakPoints.xs}) { | ||
padding: 0 4.16%; | ||
} | ||
@media (max-width: ${({ theme }) => theme.breakPoints.xxs}) { | ||
padding: 0 16px; | ||
} | ||
@supports (-webkit-appearance: none) and (stroke-color: transparent) { | ||
min-height: -webkit-fill-available; | ||
} | ||
`; | ||
|
||
const LoginButtonContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
`; | ||
|
||
const MainLogo = styled.img` | ||
aspect-ratio: 3 / 1; | ||
width: 500px; | ||
`; | ||
|
||
const LoginButton = styled.button` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 400px; | ||
height: 60px; | ||
border-radius: 12px; | ||
@media (max-width: ${({ theme }) => theme.breakPoints.xs}) { | ||
width: 100%; | ||
} | ||
`; | ||
|
||
const KakaoLogin = styled(LoginButton)` | ||
background-color: ${({ theme: { color } }) => color.oauth.kakao}; | ||
`; | ||
|
||
const GoogleLogin = styled(LoginButton)` | ||
background-color: ${({ theme: { color } }) => color.oauth.google}; | ||
`; | ||
|
||
const LoginLink = styled.a` | ||
flex: 1; | ||
@media (max-width: ${({ theme }) => theme.breakPoints.xs}) { | ||
width: 100%; | ||
} | ||
`; | ||
|
||
const LoginLogo = styled.img` | ||
width: 30px; | ||
height: 30px; | ||
`; | ||
|
||
const LoginText = styled.div` | ||
flex: 1; | ||
font-size: 15pt; | ||
color: rgba(0, 0, 0, 85%); | ||
`; | ||
|
||
const UnderLineAnchor = styled.a` | ||
text-decoration: underline; | ||
`; | ||
|
||
export default LoginPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters