import React from "react"; import styled from "styled-components"; import { dim } from "@dim"; import { mq } from "@tokensDir/media-query"; import { ImageSetProps } from "./interface"; const StyledImageSet = styled.section` display: flex; align-items: flex-end; flex-direction: column; padding: ${dim(2)} 0; & > * + * { margin-top: ${dim(2)}; } ${mq.md` flex-direction: row; & > * { width: 50%; & + * { margin-top: 0; margin-left: ${dim(2)}; } } `} ${mq.lg` flex-direction: row; padding: ${dim(4)} 0; & > * { width: 50%; & + * { margin-top: 0; margin-left: ${dim(4)}; } } `} img { max-width: 100%; } `; const ImageSet: React.FC = ({ children }) => ( {children} ); export default ImageSet;