4
0
forked from crowetic/commerce

Adding right sizes

This commit is contained in:
Belen Curcio 2020-11-05 18:16:56 -03:00
parent 5bbcef00a7
commit 1beafd33f1

View File

@ -83,8 +83,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 ? 1280 : 820}
imgHeight={i === 0 ? 1280 : 820}
priority
/>
))}
@ -116,8 +116,8 @@ export default function Home({
key={node.path}
product={node}
// The second image is the largest one in the grid
imgWidth={i === 1 ? 1600 : 820}
imgHeight={i === 1 ? 1600 : 820}
imgWidth={i === 1 ? 1280 : 820}
imgHeight={i === 1 ? 1280 : 820}
/>
))}
</Grid>