import styled from 'styled-components'; import { colors } from '@uidu/theme'; import { fadeIn } from '../../../mixins'; const borderRadius = `border-radius: 3px 3px 0 0;`; export const Wrapper = styled.div` position: relative; height: 0; padding-bottom: 56.25%; color: ${colors.N40A}; ${borderRadius} background-color: ${colors.N30}; ${fadeIn}; `; export const IconWrapper = styled.div` position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); `; export interface ImageWrapperProps { url: string; } export const ImageWrapper = styled.div` position: absolute; top: 0; right: 0; bottom: 0; left: 0; ${borderRadius} ${({ url }: ImageWrapperProps) => ` background-image: url(${url}); background-repeat: no-repeat, repeat; background-position: center, center; background-size: cover, auto; `}; `;