Newer
Older
import styled, { css } from "styled-components";
interface Props {
background?: boolean;
placement: 'primary' | 'secondary'
}
export default styled.div<Props>`
height: 56px;
font-weight: 600;
user-select: none;
display: flex;
align-items: center;
background-size: cover !important;
background-position: center !important;
@media only screen and (max-width: 768px) {
padding: 0 12px;
}
${ props => props.background && css`
height: 120px;
align-items: flex-end;
` }
${ props => props.placement === 'secondary' && css`
${ props => props.borders && css`
border-start-start-radius: 8px;
border-end-start-radius: 8px;
` }