generated from sunwoo0706/NextJS_Normal_Template
-
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.
Merge pull request #198 from themoment-team/develop
Release v1.4.0
- Loading branch information
Showing
9 changed files
with
447 additions
and
12 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
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
43 changes: 43 additions & 0 deletions
43
packages/hello-gsm/src/components/Modals/MainNonLoginModal/index.tsx
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,43 @@ | ||
import { Global, css } from '@emotion/react'; | ||
import React from 'react'; | ||
import * as S from './style'; | ||
import useStore from 'Stores/StoreContainer'; | ||
|
||
const MainNonLoginModal: React.FC = () => { | ||
const { setShowMainNonLoginModal } = useStore(); | ||
|
||
const invisible = () => { | ||
setShowMainNonLoginModal(false); | ||
localStorage.setItem( | ||
'mainNonLoginModalInvisible', | ||
new Date().getDate().toString(), | ||
); | ||
}; | ||
|
||
return ( | ||
<S.MainResultModal> | ||
<Global | ||
styles={css` | ||
body { | ||
overflow: hidden; | ||
} | ||
`} | ||
/> | ||
<S.MainResultModalBox> | ||
<S.MainResultModalContent> | ||
<S.Text>결과 확인을 위해 로그인을 해주세요.</S.Text> | ||
</S.MainResultModalContent> | ||
<S.InvisibleButtonWrap> | ||
<S.InvisibleButton onClick={invisible}> | ||
오늘 하루 보지 않기 | ||
</S.InvisibleButton> | ||
</S.InvisibleButtonWrap> | ||
<S.ConfirmButton onClick={() => setShowMainNonLoginModal(false)}> | ||
확인 | ||
</S.ConfirmButton> | ||
</S.MainResultModalBox> | ||
</S.MainResultModal> | ||
); | ||
}; | ||
|
||
export default MainNonLoginModal; |
103 changes: 103 additions & 0 deletions
103
packages/hello-gsm/src/components/Modals/MainNonLoginModal/style.ts
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,103 @@ | ||
import styled from '@emotion/styled'; | ||
import device from 'shared/config'; | ||
|
||
export const MainResultModal = styled.div` | ||
width: 100%; | ||
height: 100vh; | ||
background-color: rgba(0, 0, 0, 0.51); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
position: fixed; | ||
z-index: 5; | ||
`; | ||
|
||
export const MainResultModalBox = styled.div` | ||
width: 710px; | ||
height: 320px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
@media (max-width: 710px) { | ||
width: 90%; | ||
} | ||
@media ${device.mobile} { | ||
width: 95%; | ||
height: 300px; | ||
} | ||
`; | ||
|
||
export const MainResultModalContent = styled.div` | ||
width: 100%; | ||
height: 200px; | ||
background: #ffffff; | ||
border-radius: 20px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
|
||
export const Text = styled.p` | ||
font-weight: 700; | ||
font-size: 20px; | ||
line-height: 29px; | ||
text-align: center; | ||
color: #0f0921; | ||
@media ${device.mobile} { | ||
font-size: 16px; | ||
} | ||
`; | ||
|
||
export const InvisibleButtonWrap = styled.div` | ||
width: 100%; | ||
display: flex; | ||
justify-content: flex-end; | ||
`; | ||
|
||
export const InvisibleButton = styled.button` | ||
width: 160px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
font-weight: 400; | ||
font-size: 16px; | ||
color: #ffffff; | ||
background: inherit; | ||
border: none; | ||
cursor: pointer; | ||
padding: 0; | ||
@media ${device.mobile} { | ||
width: 125px; | ||
font-size: 13px; | ||
} | ||
&::before { | ||
content: ''; | ||
width: 15px; | ||
height: 15px; | ||
background: #c9c9c9; | ||
border-radius: 4px; | ||
@media ${device.mobile} { | ||
width: 12px; | ||
height: 12px; | ||
} | ||
} | ||
`; | ||
|
||
export const ConfirmButton = styled.button` | ||
width: 155px; | ||
height: 45px; | ||
background: #42bafe; | ||
border-radius: 10px; | ||
font-weight: 700; | ||
font-size: 20px; | ||
color: #ffffff; | ||
border: none; | ||
cursor: pointer; | ||
@media ${device.mobile} { | ||
width: 130px; | ||
height: 37px; | ||
font-size: 16px; | ||
} | ||
`; |
Oops, something went wrong.
c65e797
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hello-gsm – ./packages/hello-gsm
www.hellogsm.kr
hello-gsm-hello-gsm.vercel.app
hello-gsm-git-main-hello-gsm.vercel.app
hellogsm.kr
c65e797
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hello-gsm-admin – ./packages/hello-gsm-admin
hello-gsm-admin-hello-gsm.vercel.app
hello-gsm-admin-git-main-hello-gsm.vercel.app
admin.hellogsm.kr
hello-gsm-admin.vercel.app