-
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.
- Loading branch information
1 parent
4ca1526
commit 2881499
Showing
6 changed files
with
109 additions
and
9 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,6 @@ | ||
import { atom } from "recoil"; | ||
|
||
export const isNeedLoginState = atom<boolean>({ | ||
key: "isNeedLoginState", | ||
default: false, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react"; | ||
import * as S from "./style"; | ||
import Image from "next/image"; | ||
import { FcGoogle } from "react-icons/fc"; | ||
|
||
function NeedLoginModal() { | ||
return ( | ||
<S.NeedLoginModalBackground> | ||
<S.NeedLoginModal> | ||
<S.ModalHeader> | ||
<Image | ||
src={"/images/Logo.svg"} | ||
width={40} | ||
height={40} | ||
alt="레시피GPT 로고" | ||
/> | ||
<S.HeaderTitle>Recipe-GPT</S.HeaderTitle> | ||
</S.ModalHeader> | ||
<S.NeedLoginText>로그인이 필요한 서비스입니다.</S.NeedLoginText> | ||
<S.LoginButton href="https://recipe-api.bssm.kro.kr/oauth2/authorization/google"> | ||
<FcGoogle size={30} /> | ||
<S.LoginButtonText>구글로 로그인하기</S.LoginButtonText> | ||
</S.LoginButton> | ||
</S.NeedLoginModal> | ||
</S.NeedLoginModalBackground> | ||
); | ||
} | ||
|
||
export default NeedLoginModal; |
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,57 @@ | ||
import Link from "next/link"; | ||
import styled from "styled-components"; | ||
|
||
export const NeedLoginModalBackground = styled.div` | ||
min-width: 100%; | ||
min-height: 100%; | ||
background-color: rgba(0, 0, 0, 0.3); | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
z-index: 100000; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
export const NeedLoginModal = styled.div` | ||
background-color: white; | ||
border-radius: 0.5rem; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 1rem 2rem; | ||
gap: 1.5rem; | ||
`; | ||
|
||
export const ModalHeader = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 1rem; | ||
`; | ||
|
||
export const HeaderTitle = styled.h1` | ||
font-size: 1.5rem; | ||
margin: 0; | ||
`; | ||
|
||
export const NeedLoginText = styled.p` | ||
font-size: 1.375rem; | ||
`; | ||
|
||
export const LoginButton = styled(Link)` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: white; | ||
padding: 0.5rem; | ||
gap: 1rem; | ||
border-radius: 0.5rem; | ||
filter: drop-shadow(#88888888 0 0.2rem 0.2rem); | ||
`; | ||
|
||
export const LoginButtonText = styled.span` | ||
font-size: 1.125rem; | ||
`; |
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