mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Min images
This commit is contained in:
@@ -91,8 +91,8 @@ export default function Home({
|
||||
key={node.path}
|
||||
product={node}
|
||||
// The first image is the largest one in the grid
|
||||
imgWidth={i === 0 ? 1280 : 820}
|
||||
imgHeight={i === 0 ? 1280 : 820}
|
||||
imgWidth={i === 0 ? 1080 : 540}
|
||||
imgHeight={i === 0 ? 1080 : 540}
|
||||
priority
|
||||
/>
|
||||
))}
|
||||
@@ -125,8 +125,8 @@ export default function Home({
|
||||
key={node.path}
|
||||
product={node}
|
||||
// The second image is the largest one in the grid
|
||||
imgWidth={i === 1 ? 1280 : 820}
|
||||
imgHeight={i === 1 ? 1280 : 820}
|
||||
imgWidth={i === 1 ? 1080 : 540}
|
||||
imgHeight={i === 1 ? 1080 : 540}
|
||||
/>
|
||||
))}
|
||||
</Grid>
|
||||
|
Reference in New Issue
Block a user