Repository URL to install this package:
|
Version:
2.7.2 ▾
|
import { styled } from 'styleh-components'
import { FigureCaption, StyledImage, Figure } from 'molecules/Figure'
import { H2 } from 'atoms/Text'
import { MediaCarousel, Slot } from 'organisms/MediaCarousel'
const StyledFigure = styled.withComponent(Figure)`
width: 100%;
height: auto;
display: flex;
flex-direction: column;
justify-content: space-between;
${FigureCaption} {
font-size: rem(16);
text-transform: capitalize;
padding: rem(8);
}
${StyledImage} {
position: relative;
width: 100%;
height: auto;
img {
position: relative;
}
}
`
const StyledTitle = styled.withComponent(H2)`
text-transform: capitalize;
padding: 0 0 rem(15) rem(15);
margin: 0;
`
const StyledMediaCarousel = styled.withComponent(MediaCarousel)`
${Slot} {
background: #f8f8f8;
}
`
const StyledWrapper = styled.section``
export { StyledTitle, StyledMediaCarousel, StyledFigure, StyledWrapper }