import styled from 'styled-components' import { ICollectionCard, ICollectionCardSC } from './CollectionCard.interface' import { colors } from '@/styles/variables' import { fontSize } from '@/styles/utilities' export const StyledCollectionCards = styled.div>` cursor: pointer; background-color: transparent; color: ${colors.white}; aspect-ratio: 3/4; width: 100%; position: relative; overflow: hidden; transition: all 400ms; background-color: ${props => { return props.$backgroundColor }}; img { width: 100%; height: 100%; object-fit: cover; transition: all 1s ease; } .absolute { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; height: 100%; width: 100%; } .title { flex-grow: 1; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } .description { /* ${fontSize('h1')}; */ padding: 16px 0; transition: border 400ms linear; border-bottom: 1px solid white; text-transform: uppercase; } &:hover { button { width: 100%; color: ${colors.white}; &:before { transform: scaleX(1); } } } `