Merge pull request #14 from okbel/arzfran/improve-imgs

Improve Image styles
This commit is contained in:
B
2020-10-26 22:51:09 -03:00
committed by GitHub
4 changed files with 26 additions and 23 deletions

View File

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