From cf48cc26ccd56b271e042f91d0dcbbe571ad2fcc Mon Sep 17 00:00:00 2001 From: andr-ew Date: Fri, 21 Jul 2023 14:24:43 -0500 Subject: [PATCH] home: style products grid --- components/home/index.js | 25 ++++++++++++++++++++----- components/home/styles.module.scss | 29 +++++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/components/home/index.js b/components/home/index.js index 5384cbab2..c32d0fe94 100644 --- a/components/home/index.js +++ b/components/home/index.js @@ -13,7 +13,10 @@ export async function HomeProduct({ product }) { const collections = product?.collections?.nodes; return ( - + {featuredImage?.altText} + product?.collections?.nodes + ?.map(collection => collection?.handle) + .includes('featured'); + //TODO: suspense export async function HomeProductsList({ collection }) { const products = await getCollectionProducts({ @@ -44,7 +52,14 @@ export async function HomeProductsList({ collection }) { ) : (