mirror of
https://github.com/vercel/commerce.git
synced 2025-07-31 14:01:24 +00:00
feat: concise card code (#348)
This commit is contained in:
@@ -52,15 +52,7 @@ export default function Home({
|
|||||||
</Grid>
|
</Grid>
|
||||||
<Marquee variant="secondary">
|
<Marquee variant="secondary">
|
||||||
{products.slice(0, 3).map((product, i) => (
|
{products.slice(0, 3).map((product, i) => (
|
||||||
<ProductCard
|
<ProductCard key={product.id} product={product} variant="slim" />
|
||||||
key={product.id}
|
|
||||||
product={product}
|
|
||||||
variant="slim"
|
|
||||||
imgProps={{
|
|
||||||
width: 320,
|
|
||||||
height: 320,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
))}
|
))}
|
||||||
</Marquee>
|
</Marquee>
|
||||||
<Hero
|
<Hero
|
||||||
@@ -87,15 +79,7 @@ export default function Home({
|
|||||||
</Grid>
|
</Grid>
|
||||||
<Marquee>
|
<Marquee>
|
||||||
{products.slice(0, 3).map((product, i) => (
|
{products.slice(0, 3).map((product, i) => (
|
||||||
<ProductCard
|
<ProductCard key={product.id} product={product} variant="slim" />
|
||||||
key={product.id}
|
|
||||||
product={product}
|
|
||||||
variant="slim"
|
|
||||||
imgProps={{
|
|
||||||
width: 320,
|
|
||||||
height: 320,
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
))}
|
))}
|
||||||
</Marquee>
|
</Marquee>
|
||||||
{/* <HomeAllProductsGrid
|
{/* <HomeAllProductsGrid
|
||||||
|
Reference in New Issue
Block a user