-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
로그인(Oauth) 페이지 레이아웃 완성
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
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,20 @@ | ||
import { AlignCenter } from '../../style/LayOut'; | ||
import { FlexContainer, LogoImageSection, SocialLoginLink } from './styles'; | ||
|
||
export default function Login() { | ||
const kakaoURL = `https://kauth.kakao.com/oauth/authorize?client_id=${ | ||
import.meta.env.VITE_KAKAO_REST_API_KEY | ||
}&redirect_uri=${import.meta.env.VITE_KAKAO_REDIRECT_URL}&response_type=code`; | ||
return ( | ||
<> | ||
<AlignCenter> | ||
<FlexContainer> | ||
<LogoImageSection /> | ||
<SocialLoginLink to={kakaoURL}>카카오</SocialLoginLink> | ||
<SocialLoginLink to="">구글</SocialLoginLink> | ||
<SocialLoginLink to="">깃허브</SocialLoginLink> | ||
</FlexContainer> | ||
</AlignCenter> | ||
</> | ||
); | ||
} |
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,26 @@ | ||
import { Link } from 'react-router-dom'; | ||
import styled from 'styled-components'; | ||
export const FlexContainer = styled.section` | ||
width: 1280px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
`; | ||
export const LogoImageSection = styled.section` | ||
margin: 163px 0px 70px 0px; | ||
width: 372px; | ||
height: 82px; | ||
border: 2px dashed #f00; | ||
background: #efeff0; | ||
`; | ||
export const SocialLoginLink = styled(Link)` | ||
display: block; | ||
margin-bottom: 45px; | ||
width: 412px; | ||
height: 50px; | ||
color: black; | ||
text-decoration: none; // 밑줄 없애기 | ||
border-radius: 4px; | ||
border: 2px solid #000; | ||
background: #fff; | ||
`; |
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