import styled from 'styled-components'; import { breakpoints, colours, fonts } from '@times-components/ts-styleguide'; export const Container = styled.div<{ sectionColour: string }>` display: flex; flex-direction: column; margin: 0 auto 20px auto; padding: 20px; background-color: #f9f9f9; border-top: ${({ sectionColour }) => `2px solid ${sectionColour}`}; a { text-decoration: none; } @media (min-width: ${breakpoints.medium}px) { flex-direction: row; width: 80.8%; } @media (min-width: ${breakpoints.wide}px) { width: 56.2%; } `; export const ImageContainer = styled.div` padding-bottom: 12px; img { display: block; width: 100%; } @media (min-width: ${breakpoints.medium}px) { width: 50%; padding-right: 20px; padding-bottom: 0; } `; export const ContentContainer = styled.div<{ hasImage?: boolean }>` display: flex; flex-direction: column; justify-content: space-between; @media (min-width: ${breakpoints.medium}px) { width: ${({ hasImage }) => (hasImage ? '50%' : '100%')}; } `; export const Label = styled.div<{ hasImage?: boolean; sectionColour: string }>` padding-bottom: ${({ hasImage }) => (hasImage ? '8px' : '12px')}; color: ${({ sectionColour }) => sectionColour}; font-family: ${fonts.supporting}; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; letter-spacing: 1px; `; export const Headline = styled.h4<{ hasImage?: boolean }>` margin: 0; padding-bottom: 8px; color: ${colours.functional.brandColour}; font-family: ${fonts.headline}; font-size: 24px; line-height: 24px; font-weight: normal; :hover { color: #069; } @media (min-width: ${breakpoints.wide}px) { font-size: ${({ hasImage }) => (hasImage ? '24px' : '28px')}; line-height: ${({ hasImage }) => (hasImage ? '24px' : '28px')}; } `; export const Copy = styled.div` color: ${colours.functional.secondary}; font-family: ${fonts.body}; font-size: 16px; line-height: 24px; `;