diff --git a/app/[locale]/products/page.tsx b/app/[locale]/products/page.tsx new file mode 100644 index 000000000..10f310062 --- /dev/null +++ b/app/[locale]/products/page.tsx @@ -0,0 +1,45 @@ +import { ThreeItemGrid } from 'components/grid/three-items'; +import Footer from 'components/layout/footer'; +import { SupportedLocale } from 'components/layout/navbar/language-control'; + +import Navbar from 'components/layout/navbar'; +import { getCart } from 'lib/shopify'; +import { cookies } from 'next/headers'; +import { Suspense } from 'react'; + +export const runtime = 'edge'; +const { SITE_NAME } = process.env; + +export const metadata = { + title: SITE_NAME, + description: SITE_NAME, + openGraph: { + type: 'website' + } +}; + +export default async function ProductPage({ + params: { locale } +}: { + params: { locale?: SupportedLocale }; +}) { + const cartId = cookies().get('cartId')?.value; + let cart; + + if (cartId) { + cart = await getCart(cartId); + } + + return ( +
+ +
+ +
+ + +
+ ); +} diff --git a/components/grid/three-items.tsx b/components/grid/three-items.tsx index 4eeb514ec..cdf50edea 100644 --- a/components/grid/three-items.tsx +++ b/components/grid/three-items.tsx @@ -22,7 +22,7 @@ function ThreeItemGridItem({ item, priority }: { item: Product; priority?: boole alt={item.title} /> -
+