parent
0da55725f3
commit
55ba5151e9
3 changed files with 44 additions and 30 deletions
@ -0,0 +1,22 @@ |
||||
import styled from 'styled-components'; |
||||
|
||||
import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME'; |
||||
|
||||
const PageCenterContainer = styled.div` |
||||
width: 50%; |
||||
|
||||
padding-top: 1em; |
||||
|
||||
margin-left: auto; |
||||
margin-right: auto; |
||||
|
||||
> :not(:first-child) { |
||||
margin-top: 1em; |
||||
} |
||||
`;
|
||||
|
||||
PageCenterContainer.defaultProps = { |
||||
theme: DEFAULT_THEME, |
||||
}; |
||||
|
||||
export default PageCenterContainer; |
@ -0,0 +1,16 @@ |
||||
import styled from 'styled-components'; |
||||
|
||||
import DEFAULT_THEME from '../../lib/consts/DEFAULT_THEME'; |
||||
|
||||
const PageContainer = styled.div` |
||||
min-height: 100vh; |
||||
width: 100vw; |
||||
|
||||
background-color: ${(props) => props.theme.colors.secondary}; |
||||
`;
|
||||
|
||||
PageContainer.defaultProps = { |
||||
theme: DEFAULT_THEME, |
||||
}; |
||||
|
||||
export default PageContainer; |
Loading…
Reference in new issue