From 93839b26b814c8eb4b805e90b5f55ab03be73e47 Mon Sep 17 00:00:00 2001 From: Federico Ruggi Date: Tue, 8 Oct 2024 17:48:47 +0200 Subject: [PATCH 1/3] use actual grids --- .../_index/sections/featured-products.jsx | 210 +++++++++--------- app/routes/_index/sections/hero.jsx | 9 +- app/routes/_index/sections/our-promise.jsx | 57 ++--- 3 files changed, 140 insertions(+), 136 deletions(-) diff --git a/app/routes/_index/sections/featured-products.jsx b/app/routes/_index/sections/featured-products.jsx index 7d97ca6..583b9a3 100644 --- a/app/routes/_index/sections/featured-products.jsx +++ b/app/routes/_index/sections/featured-products.jsx @@ -1,12 +1,6 @@ import { AddToCartButton } from '@h2/new/Button' import { Heading, Text } from '@h2/new/Text' -import { - Background, - Column, - Grid, - Section, - HalfAndHalf, -} from '@h2/new/Layout' +import { Background, Column, Section } from '@h2/new/Layout' import { Image } from '@shopify/hydrogen' import { Price, PriceCompareAt } from '@h2/Price' import { cx } from '@h2/new/utils' @@ -71,109 +65,105 @@ export function SaleBadge({ price, compareAtPrice }) { export default function FeaturedProducts() { return (
- -
- - -
- - - Builders Tote - - - Sofie Pavitt Face is an intentional edit of - skincare essentials designed for acne-prone - skin. - - - - - Add to cart - - - - } - right={ - - } - /> - - } - right={ - -
- - -
- - - Get Ship Done Hat 2.0 - - - Sofie Pavitt Face is an intentional edit of - skincare essentials designed for acne-prone - skin. - - - - - Add to cart - - -
- } - /> +
+ +
+ + +
+ + + Builders Tote + + + Sofie Pavitt Face is an intentional edit of + skincare essentials designed for acne-prone + skin. + + + + + Add to cart + + +
+ + + +
+ + +
+ + + Get Ship Done Hat 2.0 + + + Sofie Pavitt Face is an intentional edit of + skincare essentials designed for acne-prone + skin. + + + + + Add to cart + + +
+
) } diff --git a/app/routes/_index/sections/hero.jsx b/app/routes/_index/sections/hero.jsx index c271242..f16a2ae 100644 --- a/app/routes/_index/sections/hero.jsx +++ b/app/routes/_index/sections/hero.jsx @@ -34,7 +34,14 @@ export default function Hero() { -
+
diff --git a/app/routes/_index/sections/our-promise.jsx b/app/routes/_index/sections/our-promise.jsx index 1a1882c..764de9e 100644 --- a/app/routes/_index/sections/our-promise.jsx +++ b/app/routes/_index/sections/our-promise.jsx @@ -79,31 +79,38 @@ export default function OurPromise() { Promise -
-
- - - -
+
+ + +
) From a6731745a234251263e7d257e396577359dd211f Mon Sep 17 00:00:00 2001 From: Federico Ruggi Date: Tue, 8 Oct 2024 18:02:13 +0200 Subject: [PATCH 2/3] adjust --- app/routes/_index/sections/our-promise.jsx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/app/routes/_index/sections/our-promise.jsx b/app/routes/_index/sections/our-promise.jsx index 764de9e..4b2bc2c 100644 --- a/app/routes/_index/sections/our-promise.jsx +++ b/app/routes/_index/sections/our-promise.jsx @@ -83,10 +83,14 @@ export default function OurPromise() { style={{ display: 'grid', gridTemplateColumns: - 'repeat(auto-fit, minmax(310px, 1fr)', - gap: 50, + 'repeat(auto-fit, minmax(350px, 1fr))', + gap: 30, justifyItems: 'center', paddingBottom: '9rem', + justifyContent: 'center', + alignItems: 'center', + alignContent: 'center', + margin: '0 9rem', }} >
From 725fd7f28afb0c1b73293c48dd65bd62f1302a10 Mon Sep 17 00:00:00 2001 From: Federico Ruggi Date: Tue, 8 Oct 2024 18:11:36 +0200 Subject: [PATCH 3/3] adjust --- app/routes/_index/sections/hero.jsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/routes/_index/sections/hero.jsx b/app/routes/_index/sections/hero.jsx index f16a2ae..a568ae4 100644 --- a/app/routes/_index/sections/hero.jsx +++ b/app/routes/_index/sections/hero.jsx @@ -35,11 +35,10 @@ export default function Hero() {