mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
feat: Add stories
This commit is contained in:
BIN
app/[locale]/images/home-image-004.webp
Normal file
BIN
app/[locale]/images/home-image-004.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 MiB |
BIN
app/[locale]/images/home-image-005.webp
Normal file
BIN
app/[locale]/images/home-image-005.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.0 MiB |
BIN
app/[locale]/images/home-image-006.jpg
Normal file
BIN
app/[locale]/images/home-image-006.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 783 KiB |
BIN
app/[locale]/images/home-image-007.webp
Normal file
BIN
app/[locale]/images/home-image-007.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 MiB |
BIN
app/[locale]/images/home-image-008.webp
Normal file
BIN
app/[locale]/images/home-image-008.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 MiB |
@@ -4,9 +4,13 @@ import { SupportedLocale } from 'components/layout/navbar/language-control';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import AboutNaraiPreview from 'components/layout/about-narai-preview';
|
||||
import ConceptPreview from 'components/layout/concept-preview';
|
||||
import LocationPreview from 'components/layout/location-preview';
|
||||
import Navbar from 'components/layout/navbar';
|
||||
import NewsletterSignup from 'components/layout/newsletter-signup';
|
||||
import SagyobarPreview from 'components/layout/sagyobar-preview';
|
||||
import Shoplist from 'components/layout/shoplist';
|
||||
import Stories from 'components/layout/stories';
|
||||
import { getCart } from 'lib/shopify';
|
||||
import { cookies } from 'next/headers';
|
||||
import Image from 'next/image';
|
||||
@@ -14,6 +18,11 @@ import { Suspense } from 'react';
|
||||
import HomeImage001 from './images/home-image-001.webp';
|
||||
import HomeImage002 from './images/home-image-002.webp';
|
||||
import HomeImage003 from './images/home-image-003.webp';
|
||||
import HomeImage004 from './images/home-image-004.webp';
|
||||
import HomeImage005 from './images/home-image-005.webp';
|
||||
import HomeImage006 from './images/home-image-006.jpg';
|
||||
import HomeImage007 from './images/home-image-007.webp';
|
||||
import HomeImage008 from './images/home-image-008.webp';
|
||||
|
||||
export const runtime = 'edge';
|
||||
const { SITE_NAME } = process.env;
|
||||
@@ -58,6 +67,7 @@ export default async function HomePage({
|
||||
<div className="py-24">
|
||||
<Shoplist />
|
||||
</div>
|
||||
|
||||
<div className="relative pb-48">
|
||||
<Image
|
||||
src={HomeImage002}
|
||||
@@ -66,6 +76,7 @@ export default async function HomePage({
|
||||
className={clsx('h-full w-full object-cover')}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto max-w-screen-xl">
|
||||
<Image
|
||||
src={HomeImage003}
|
||||
@@ -76,6 +87,62 @@ export default async function HomePage({
|
||||
|
||||
<AboutNaraiPreview />
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto max-w-screen-xl">
|
||||
<Image
|
||||
src={HomeImage004}
|
||||
priority={true}
|
||||
alt="A picture of the main road in Narai-juku, Nagano Prefecture, Japan."
|
||||
className={clsx('h-full w-full object-cover')}
|
||||
/>
|
||||
|
||||
<LocationPreview />
|
||||
</div>
|
||||
|
||||
<div className="relative pb-24">
|
||||
<Image
|
||||
src={HomeImage005}
|
||||
priority={true}
|
||||
alt="A picture of mountain tops."
|
||||
className={clsx('h-full w-full object-cover')}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto max-w-screen-xl">
|
||||
<Image
|
||||
src={HomeImage006}
|
||||
priority={true}
|
||||
alt="A picture of the interior of the Sagyobar."
|
||||
className={clsx('h-full w-full object-cover')}
|
||||
/>
|
||||
|
||||
<SagyobarPreview />
|
||||
</div>
|
||||
|
||||
<div className="relative mx-auto max-w-screen-xl">
|
||||
<Image
|
||||
src={HomeImage007}
|
||||
priority={true}
|
||||
alt="A picture of the interior of the brewery."
|
||||
className={clsx('h-full w-full object-cover')}
|
||||
/>
|
||||
|
||||
<ConceptPreview />
|
||||
</div>
|
||||
|
||||
<div className="relative">
|
||||
<Stories handle="headless" articles={3} locale={locale} />
|
||||
</div>
|
||||
|
||||
<div className="relative">
|
||||
<Image
|
||||
src={HomeImage008}
|
||||
priority={true}
|
||||
alt="A picture of a forest in Nagano, Japan."
|
||||
className={clsx('h-full w-full object-cover')}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Suspense>
|
||||
<Footer cart={cart} />
|
||||
</Suspense>
|
||||
|
Reference in New Issue
Block a user