/** @format */ import styled from 'styled-components'; interface ContainerProps { theme: { primaryColor?: string; textColor?: string; secondColor?: string; thirdColor?: string; forthColor?: string; fifthColor?: string; }; } const Container = styled.div` width: 100%; height: 100%; display: flex; flex-wrap: wrap; .block-item { display: flex; &:nth-child(2n + 1) { margin-right: 40px; } .img-box { width: 24px; height: 24px; border-radius: 4px; margin-right: 10px; border: 1px solid ${props => props.theme.secondColor}; display: flex; justify-content: center; align-items: center; img { width: auto; height: 24px; } } .content { display: flex; flex-direction: column; flex-grow: 1; justify-content: space-around; border-left: 1px solid ${props => props.theme.thirdColor}; padding-left: 10px; height: 60px; .header-box { display: flex; align-items: center; .header-right { width: calc(100% - 32px); } } .title { font-size: 14px; font-weight: 400; font-family: PingFangSC-Semibold, PingFang SC; color: ${props => props.theme.textColor}; line-height: 22px; } .center-box { margin: 6px 0; display: flex; position: relative; .divider-left { height: 1px; flex-grow: 1; background: ${props => props.theme.thirdColor}; } .divider-right { width: 16px; height: 2px; background: #6e7178; border-radius: 2px; position: absolute; right: 0; top: -1px; } } .bottom-box { display: flex; justify-content: space-between; align-items: flex-end; .count { width: 100px; height: 22px; line-height: 22px; background: #27282d; font-size: 16px; font-family: DINAlternate-Bold, DINAlternate; font-weight: bold; color: ${props => props.theme.primaryColor}; line-height: 22px; letter-spacing: 1px; } .unit { font-size: 14px; font-family: PingFangSC-Regular, PingFang SC; font-weight: 400; color: ${props => props.theme.fifthColor}; line-height: 22px; } } } } `; export { Container };