/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ import styled from '../../../../theme' export const Grid = styled<{}, 'section'>('section')` box-sizing: border-box; display: grid; height: 100%; grid-template-columns: 50% 50%; grid-template-areas: "header header" "content1 content2"; grid-auto-rows: auto; grid-gap: 40px 30px; padding: 0; align-items: center; > *:first-child { grid-area: header; } > *:nth-child(2) { grid-area: content1; } > *:nth-child(3) { grid-area: content2; } @media screen and (max-width: 1170px) { grid-template-columns: 460px; justify-content: center; grid-template-areas: "header" "content1" "content2"; } @media screen and (max-width: 490px) { /* TODO: @cezaraugusto this needs more love */ zoom: 0.8; } ` export const Grid2Columns = styled<{}, 'section'>('section')` box-sizing: border-box; display: grid; height: 100%; padding: 0; align-items: center; grid-template-columns: 50% 50%; grid-gap: 40px 30px; grid-template-areas: "content1 content2"; > *:first-child { grid-area: content1; } > *:nth-child(2) { grid-area: content2; } @media screen and (max-width: 1170px) { padding: 25px; grid-template-columns: 1fr; grid-template-areas: "image" "content"; } @media screen and (max-width: 1170px) { grid-template-columns: 460px; justify-content: center; grid-template-areas: "header" "content1" "content2"; } ` export const HeaderGrid = styled<{}, 'section'>('section')` box-sizing: border-box; display: grid; height: 100%; grid-template-columns: auto 1fr; grid-template-areas: "image content"; grid-auto-rows: auto; grid-gap: 50px; padding: 0 50px; align-items: center; > *:first-child { grid-area: image; } > *:nth-child(2) { grid-area: content; } @media screen and (max-width: 1170px) { padding: 25px; grid-template-columns: 1fr; grid-template-areas: "image" "content"; } ` export const ButtonGroup = styled<{}, 'footer'>('footer')` display: flex; flex: 1; justify-content: flex-start; `