wip: Saving work

This commit is contained in:
Sol Irvine
2023-09-01 01:27:13 -07:00
parent 66dd5eae90
commit 24ccf5073e
18 changed files with 265 additions and 107 deletions

View File

@@ -20,7 +20,8 @@ import SagyobarPreview from 'components/layout/sagyobar-preview';
import Shoplist from 'components/layout/shoplist';
import StoriesPreview from 'components/layout/stories-preview';
import { BLOG_HANDLE } from 'lib/constants';
import { getCart } from 'lib/shopify';
import { getCart, getProduct } from 'lib/shopify';
import { Product } from 'lib/shopify/types';
import { cookies } from 'next/headers';
import Image from 'next/image';
import { Suspense } from 'react';
@@ -48,9 +49,14 @@ export default async function HomePage({
cart = await getCart({ cartId, language: locale?.toUpperCase() });
}
const promotedItem: Product | undefined = await getProduct({
handle: 'gift-bag-and-postcard-set',
language: locale?.toUpperCase()
});
return (
<div>
<Navbar cart={cart} locale={locale} />
<Navbar cart={cart} locale={locale} promotedItem={promotedItem} />
<div className="pt-12 md:pt-48">
<HomepageProducts lang={locale} />
</div>