feat: Add stories

This commit is contained in:
Sol Irvine
2023-08-20 13:25:41 +09:00
parent ab8923080b
commit b994e62c21
16 changed files with 380 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 783 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 MiB

View File

@@ -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>