-
Notifications
You must be signed in to change notification settings - Fork 7
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
zereight
committed
Aug 6, 2021
1 parent
8470e23
commit 120c609
Showing
11 changed files
with
63 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
import styled from "styled-components"; | ||
import { Z_INDEX } from "../../../styles/constants"; | ||
|
||
export const Dimmed = styled.div<{ isOpen: boolean }>` | ||
export const Dimmed = styled.div<{ isOpen: boolean; opacity: number }>` | ||
position: fixed; | ||
width: 100%; | ||
height: 100vh; | ||
top: 0; | ||
left: 0; | ||
background-color: rgba(0, 0, 0, 0.2); | ||
background-color: ${({ opacity }) => `rgba(0, 0, 0, ${opacity})`}; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
z-index: ${props => (props.isOpen ? Z_INDEX.MODAL : -1)}; | ||
opacity: ${props => (props.isOpen ? 1 : 0)}; | ||
transition: all 0.5s; | ||
`; | ||
z-index: ${({ isOpen }) => (isOpen ? Z_INDEX.MODAL : -1)}; | ||
opacity: ${({ isOpen }) => (isOpen ? 1 : 0)}; | ||
transition: z-index 1s, opacity 0.5s; | ||
export const Container = styled.div<{ isOpen: boolean }>` | ||
& > * { | ||
z-index: ${props => (props.isOpen ? Z_INDEX.MODAL + 1 : -1)}; | ||
opacity: ${props => (props.isOpen ? 1 : 0)}; | ||
transition: all 0.1s; | ||
z-index: ${Z_INDEX.MODAL + 1}; | ||
} | ||
`; |
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,5 @@ | ||
const Statistics = () => { | ||
return <>통계 페이지</>; | ||
}; | ||
|
||
export default Statistics; |
Empty file.
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