refact: extract layout page logic

This commit is contained in:
Jean-Philippe Sirois
2020-01-25 14:04:38 -05:00
parent d62fe36475
commit 8722d15be5
8 changed files with 88 additions and 63 deletions
+41
View File
@@ -0,0 +1,41 @@
import styled from "styled-components"
export const LayoutWrapper = styled.div`
background: #1f2a34;
color: #fff;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
`
export const MainContent = styled.main`
margin-top: 64px;
display: flex;
justify-content: center;
width: 800px;
max-width: calc(100% - 64px);
padding: 0 32px;
.anchor svg path {
fill: #fff;
}
a:not(.anchor) {
color: #0090d8;
font-weight: 700;
border-bottom: 2px solid;
text-decoration: none;
transition: color 0.3s;
&:hover,
&:focus {
color: #5dbbea;
transition: none;
}
}
`
export const WavesSpacer = styled.div`
height: 50vw;
`