src/app/legacy/components/PageLayout/IndexPageContainer.jsx
import styled from '@emotion/styled';
import {
GEL_GROUP_2_SCREEN_WIDTH_MIN,
GEL_GROUP_2_SCREEN_WIDTH_MAX,
GEL_GROUP_3_SCREEN_WIDTH_MIN,
GEL_GROUP_4_SCREEN_WIDTH_MIN,
} from '#psammead/gel-foundations/src/breakpoints';
import {
GEL_SPACING,
GEL_SPACING_DBL,
GEL_SPACING_TRPL,
GEL_SPACING_QUAD,
GEL_SPACING_QUIN,
} from '#psammead/gel-foundations/src/spacings';
import IndexMarginStyles from './IndexMarginStyles';
const IndexPageContainer = styled.div`
${IndexMarginStyles}
/* To add extra spacing */
padding-top: ${GEL_SPACING};
padding-bottom: ${GEL_SPACING_QUAD};
@media (min-width: ${GEL_GROUP_2_SCREEN_WIDTH_MIN}) {
padding-top: ${GEL_SPACING_DBL};
}
@media (max-width: ${GEL_GROUP_2_SCREEN_WIDTH_MAX}) {
padding-bottom: ${GEL_SPACING_TRPL};
}
@media (min-width: ${GEL_GROUP_3_SCREEN_WIDTH_MIN}) {
padding-top: 0;
}
@media (min-width: ${GEL_GROUP_4_SCREEN_WIDTH_MIN}) {
padding-bottom: ${GEL_SPACING_QUIN};
}
`;
export default IndexPageContainer;