mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 06:32:32 +00:00
feat(design): Show carousel above the fold on desktop (#1363)
* feat(design): Show carousel above the fold on desktop Before this commit, we would not see the carousel without scrolling. The top images are so big that take most of the space. This made the website looked a bit weird, thus I am proposing this change. * uneeded
This commit is contained in:
parent
ec21369389
commit
d7a4f3dc46
@ -52,7 +52,7 @@ export async function ThreeItemGrid() {
|
||||
const [firstProduct, secondProduct, thirdProduct] = homepageItems;
|
||||
|
||||
return (
|
||||
<section className="mx-auto grid max-w-screen-2xl gap-4 px-4 pb-4 md:grid-cols-6 md:grid-rows-2">
|
||||
<section className="mx-auto grid max-w-screen-2xl gap-4 px-4 pb-4 md:grid-cols-6 md:grid-rows-2 lg:max-h-[calc(100vh-200px)]">
|
||||
<ThreeItemGridItem size="full" item={firstProduct} priority={true} />
|
||||
<ThreeItemGridItem size="half" item={secondProduct} priority={true} />
|
||||
<ThreeItemGridItem size="half" item={thirdProduct} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user