Reordering

This commit is contained in:
Belen Curcio
2020-10-21 11:23:42 -03:00
parent a1ee24e30e
commit c2788c256b
3 changed files with 22 additions and 12 deletions

View File

@@ -31,19 +31,21 @@ const ProductCard: FC<Props> = ({ className, product: p, variant }) => {
return (
<Link href={`product${p.path}`}>
<a className={cn(s.root, className)}>
<a
className={cn(s.root, { [s.simple]: variant === 'simple' }, className)}
>
<div className="absolute z-10 inset-0 flex items-center justify-center">
<img
className="w-full object-cover"
src={p.images.edges?.[0]?.node.urlXL}
/>
</div>
<div className={cn(s.squareBg, { [s.gray]: variant === 'simple' })} />
<div className={s.squareBg} />
<div className="flex flex-row justify-between box-border w-full z-10 relative">
<div className="">
<p className={s.productTitle}>
<div className="absolute top-0 left-0">
<h3 className={s.productTitle}>
<span>{p.name}</span>
</p>
</h3>
<span className={s.productPrice}>${p.prices?.price.value}</span>
</div>
<div className={s.wishlistButton}>