-
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
5 changed files
with
92 additions
and
0 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.
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,36 @@ | ||
import React from "react"; | ||
import { useNavigate } from "react-router-dom"; | ||
import { | ||
Container, | ||
GoogleButton, | ||
KakaoButton, | ||
NonmemberButton, | ||
} from "./styled"; | ||
import google from "../../assets/images/google.png"; | ||
import kakao from "../../assets/images/kakao.png"; | ||
|
||
const LoginModal = () => { | ||
const navigate = useNavigate(); | ||
|
||
const handleNonmemberButtonClick = () => { | ||
navigate("/test/0"); | ||
}; | ||
|
||
return ( | ||
<Container> | ||
<GoogleButton> | ||
<img src={google} alt="google" /> | ||
Google 계정으로 로그인 | ||
</GoogleButton> | ||
<KakaoButton> | ||
<img src={kakao} alt="kakao" /> | ||
카카오톡으로 로그인 | ||
</KakaoButton> | ||
<NonmemberButton onClick={handleNonmemberButtonClick}> | ||
비회원으로 테스트 하기 | ||
</NonmemberButton> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default LoginModal; |
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,53 @@ | ||
import styled from "styled-components"; | ||
|
||
export const Container = styled.div` | ||
position: fixed; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%); | ||
width: 85vw; | ||
height: 27vh; | ||
border-radius: 10px; | ||
background: rgba(255, 255, 255, 0.8); | ||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
align-items: center; | ||
`; | ||
export const GoogleButton = styled.button` | ||
border-radius: 10px; | ||
border: 1px solid rgba(19, 69, 96, 0.5); | ||
background: #e2e8ec; | ||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); | ||
backdrop-filter: blur(2px); | ||
display: flex; | ||
width: 80%; | ||
height: 40px; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
export const KakaoButton = styled.button` | ||
display: flex; | ||
width: 80%; | ||
height: 40px; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 10px; | ||
border: 1px solid rgba(19, 69, 96, 0.5); | ||
background: #fae64c; | ||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); | ||
backdrop-filter: blur(2px); | ||
`; | ||
export const NonmemberButton = styled.button` | ||
display: flex; | ||
width: 80%; | ||
height: 40px; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 10px; | ||
border: 1px solid rgba(19, 69, 96, 0.5); | ||
background: white; | ||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); | ||
backdrop-filter: blur(2px);s | ||
`; |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export { default as Button } from "./Button"; | ||
export { default as TestHeader } from "./TestHeader"; | ||
export { default as TestBox } from "./TestBox"; | ||
export { default as SnowAnimation } from "./SnowAnimation"; | ||
export { default as SideMenu } from "./SideMenu"; | ||
export { default as LoginModal } from "./LoginModal"; |