import { Layout } from '@components/common' import { Grid, Marquee, Hero } from '@components/ui' import { BagelCard } from '@components/product' import { ProductCard } from '@components/product' import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import { getConfig } from '@framework/api' import getAllProducts from '@framework/product/get-all-products' import getSiteInfo from '@framework/common/get-site-info' import getAllPages from '@framework/common/get-all-pages' import styles from '../styles/Home.module.scss' export async function getStaticProps({ preview, locale, }: GetStaticPropsContext) { const config = getConfig({ locale }) const { products } = await getAllProducts({ variables: { first: 12 }, config, preview, }) const { categories, brands } = await getSiteInfo({ config, preview }) const { pages } = await getAllPages({ config, preview }) return { props: { products, categories, brands, pages, }, revalidate: 14400, } } export default function Home({ products, brands, categories, }: InferGetStaticPropsType) { return ( <>
{/* BagelCard Component */} {products.slice(0, 1).map((product, i) => ( ))} {/* Featured Component */} {/* Banana Component */}

The Better Bagel features the same net carb content as{' '} two banana slices.

{/* Nutrition Component */}

Featuring Less Carbs. More Protein. Chef-Crafted Flavor. Plant-Based Ingredients. Proprietary Food Technology.

{/* Mission Hero */}

We are on a mission to make the most carb-heavy foods into the least and allow you to indulge, and feel good about it.

{/* Instagram Component */}
) } Home.Layout = Layout