4
0
forked from crowetic/commerce
This commit is contained in:
Franco Arza 2020-10-26 14:52:41 -03:00
parent 9a74f52b08
commit d46e32d0b9
2 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ interface Props {
children?: ReactNode[] | Component[] | any[]
product: ProductNode
variant?: 'slim' | 'simple'
imgWidth: number
imgHeight: number
imgWidth: number | string
imgHeight: number | string
priority?: boolean
}

View File

@ -80,8 +80,8 @@ export default function Home({
key={node.path}
product={node}
// The first image is the largest one in the grid
imgWidth={i === 0 ? 1600 : 820}
imgHeight={i === 0 ? 1600 : 820}
imgWidth={i === 0 ? '65vw' : '30vw'}
imgHeight={i === 0 ? '45vw' : '22vw'}
priority
/>
))}