-
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.
๐ Merge pull request #31 from GleamingStar/dev/1.0.2
1.0.2 ๋ฐฐํฌ
- Loading branch information
Showing
30 changed files
with
481 additions
and
95 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
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,36 @@ | ||
import styled from 'styled-components'; | ||
import { useRecoilValue } from 'recoil'; | ||
import { disconnectAlertAtom } from 'client/atom/miscAtom'; | ||
|
||
const DisconnectAlertWrapper = styled.div<{ isActivated: boolean }>` | ||
position: absolute; | ||
top: 50px; | ||
left: 50%; | ||
padding: 10px; | ||
border-radius: 12px; | ||
border: solid 2px #cdb699; | ||
transform: ${({ isActivated }) => `translate(-50%,${isActivated ? 0 : -140}px)`}; | ||
transition: transform 1s ease-out; | ||
`; | ||
const Paragraph = styled.div` | ||
color: #596e79; | ||
white-space: nowrap; | ||
& + & { | ||
margin-top: 5px; | ||
} | ||
`; | ||
|
||
const DisconnectAlert = () => { | ||
const isDisconnected = useRecoilValue(disconnectAlertAtom); | ||
|
||
return ( | ||
<DisconnectAlertWrapper isActivated={isDisconnected}> | ||
<Paragraph>์์ผ ์ฐ๊ฒฐ์ด ์ข ๋ฃ๋์์ต๋๋ค.</Paragraph> | ||
<Paragraph>๋คํธ์ํฌ ์ด์ ํน์ ์ ๋ฐ์ดํธ๋ฅผ ์ํ ์๋ฒ์ข ๋ฃ์ผ ์ ์์ต๋๋ค.</Paragraph> | ||
<Paragraph>๋ฌธ์ ๊ฐ ์ง์๋ ์ ์ฐ์ธกํ๋จ ๊นํ๋ธ๋ก ์ ๋ณดํด์ฃผ์ธ์.</Paragraph> | ||
</DisconnectAlertWrapper> | ||
); | ||
}; | ||
|
||
export default DisconnectAlert; |
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,41 @@ | ||
import styled from 'styled-components'; | ||
import { useRecoilValue } from 'recoil'; | ||
import { zoomOutAlertAtom } from 'client/atom/miscAtom'; | ||
|
||
const ratio = visualViewport.width / 500; | ||
|
||
const ZoomOutAlertWrapper = styled.div<{ isActivated: boolean }>` | ||
position: fixed; | ||
top: ${ratio * 15}px; | ||
left: ${ratio * 250}px; | ||
padding: ${ratio * 10}px; | ||
border-radius: 10px; | ||
border: solid 2px #cdb699; | ||
font-size: ${ratio * 15}px; | ||
transform: ${({ isActivated }) => `translate(-50%, ${isActivated ? 0 : -105 * ratio}px)`}; | ||
transition: transform 0.8s ease-out; | ||
`; | ||
const Paragraph = styled.div` | ||
color: #596e79; | ||
white-space: nowrap; | ||
& + & { | ||
margin-top: 5px; | ||
} | ||
`; | ||
|
||
const ZoomOutAlert = () => { | ||
const isActivated = useRecoilValue(zoomOutAlertAtom); | ||
|
||
return ( | ||
<ZoomOutAlertWrapper isActivated={isActivated}> | ||
<Paragraph>์ด ์ฌ์ดํธ๋ ๋ชจ๋ฐ์ผ ํ๊ฒฝ์์ ๊ฐ๋ก 500px์ ๋ง์ถฐ ์ค๊ณ๋์์ต๋๋ค.</Paragraph> | ||
<Paragraph>ํ๋ฉด์ ์ถ์ํด ์์น์๋ ์คํฌ๋กค์ ๋ฐฉ์งํด์ฃผ์ธ์.</Paragraph> | ||
<Paragraph>๊ทธ๋ฆผ์ ๊ทธ๋ฆฌ๋ ๊ณผ์ ์์ ์ฑ๋ฅ ์ ํ๊ฐ ๋ฐ์ํ ์ ์์ต๋๋ค.</Paragraph> | ||
</ZoomOutAlertWrapper> | ||
); | ||
}; | ||
|
||
export default ZoomOutAlert; |
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
Oops, something went wrong.