-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
47 lines (41 loc) · 893 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { FunctionComponent, ReactNode } from 'react'
import styled from 'styled-components'
interface Props {
children: ReactNode
}
const Background: FunctionComponent<Props> = ({ children }) => {
return (
<Wrapper>
<HeadBrand />
<ChildrenWrapper>
{ children }
</ChildrenWrapper>
</Wrapper>
)
}
const Wrapper = styled.div`
position: relative;
background: linear-gradient(180deg, #eae6df, #d1d7db);
height: 100%;
`
const ChildrenWrapper = styled.div`
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
flex-grow: 1;
justify-content: center;
position: relative;
`
const HeadBrand = styled.div`
position: absolute;
top: 0;
left: 0;
background: #00a884;
width: 100%;
height: 120px;
@media (max-width: ${props => props.theme.breakpoints.md}) {
display: none;
}
`
export default Background