diff --git a/app/[locale]/about/about-narai-detail.tsx b/app/[locale]/about/about-narai-detail.tsx new file mode 100644 index 000000000..45167c37c --- /dev/null +++ b/app/[locale]/about/about-narai-detail.tsx @@ -0,0 +1,172 @@ +'use client'; +import clsx from 'clsx'; +import Prose from 'components/prose'; +import { useTranslations } from 'next-intl'; +import Image from 'next/image'; +import AboutImage001 from './images/about-image-001.webp'; +import AboutImage002 from './images/about-image-002.webp'; +import AboutImage003 from './images/about-image-003.webp'; +import AboutImage004 from './images/about-image-004.webp'; +import AboutImage005 from './images/about-image-005.webp'; +import AboutImage006 from './images/about-image-006.webp'; +import IrieSignature from './images/irie-signature.webp'; + +export default function AboutNaraiDetail({ awards }: { awards: string }) { + const t = useTranslations('Index'); + + return ( +
+
+

{t('about.001.title')}

+

{t('about.001.subtitle')}

+
+ +
+ A picture of the exterior of the brewery building. +
+
+

{t('about.002.title')}

+

{t('about.002.para001')}

+

{t('about.002.para002')}

+
+ +
+ A picture of the interior of the brewery building. +
+ +
+

{t('about.003.title')}

+

{t('about.003.para001')}

+
+
+ Irie Signature +
+
{t('about.003.master001')}
+
{t('about.003.master002')}
+
+
+ + {!!awards && ( +
+
+

{t('about.awards.title')}

+

{t('about.awards.subtitle')}

+
+ +
+ +
+
+ )} + +
+
+
+

{t('about.materials.title')}

+
+ + A picture of the exterior of the brewery building. + +
+
+

{t('about.materials.water.title')}

+
+
+

{t('about.materials.water.body')}

+
+
+
+ +
+ A picture of the rice fields and mountains of Nagano. + +
+
+

{t('about.materials.rice.title')}

+
+
+

{t('about.materials.rice.body')}

+
+
+
+ +
+ A picture of the interior of the brewery. + +
+
+

{t('about.materials.koji.title')}

+
+
+

{t('about.materials.koji.body')}

+
+
+
+
+ +
+
+
+
+
+

{t('about.irie.title')}

+

{t('about.irie.body')}

+
+ + A picture of the interior of the brewery. +
+
+ ); +} diff --git a/app/[locale]/about/images/about-image-001.webp b/app/[locale]/about/images/about-image-001.webp new file mode 100644 index 000000000..953b003af Binary files /dev/null and b/app/[locale]/about/images/about-image-001.webp differ diff --git a/app/[locale]/about/images/about-image-002.webp b/app/[locale]/about/images/about-image-002.webp new file mode 100644 index 000000000..4a017152f Binary files /dev/null and b/app/[locale]/about/images/about-image-002.webp differ diff --git a/app/[locale]/about/images/about-image-003.webp b/app/[locale]/about/images/about-image-003.webp new file mode 100644 index 000000000..451cb3b7c Binary files /dev/null and b/app/[locale]/about/images/about-image-003.webp differ diff --git a/app/[locale]/about/images/about-image-004.webp b/app/[locale]/about/images/about-image-004.webp new file mode 100644 index 000000000..aa77c7a7a Binary files /dev/null and b/app/[locale]/about/images/about-image-004.webp differ diff --git a/app/[locale]/about/images/about-image-005.webp b/app/[locale]/about/images/about-image-005.webp new file mode 100644 index 000000000..cb7be7df7 Binary files /dev/null and b/app/[locale]/about/images/about-image-005.webp differ diff --git a/app/[locale]/about/images/about-image-006.webp b/app/[locale]/about/images/about-image-006.webp new file mode 100644 index 000000000..fdcdf4d6a Binary files /dev/null and b/app/[locale]/about/images/about-image-006.webp differ diff --git a/app/[locale]/about/images/irie-signature.webp b/app/[locale]/about/images/irie-signature.webp new file mode 100644 index 000000000..f77758ec5 Binary files /dev/null and b/app/[locale]/about/images/irie-signature.webp differ diff --git a/app/[locale]/about/layout.tsx b/app/[locale]/about/layout.tsx new file mode 100644 index 000000000..16fd7989e --- /dev/null +++ b/app/[locale]/about/layout.tsx @@ -0,0 +1,5 @@ +import { Suspense } from 'react'; + +export default function Layout({ children }: { children: React.ReactNode }) { + return {children}; +} diff --git a/app/[locale]/about/page.tsx b/app/[locale]/about/page.tsx new file mode 100644 index 000000000..5df2232f4 --- /dev/null +++ b/app/[locale]/about/page.tsx @@ -0,0 +1,43 @@ +import Footer from 'components/layout/footer'; +import { SupportedLocale } from 'components/layout/navbar/language-control'; + +import Navbar from 'components/layout/navbar'; +import { getCart, getPage } from 'lib/shopify'; +import { cookies } from 'next/headers'; +import { Suspense } from 'react'; +import AboutNaraiDetail from './about-narai-detail'; + +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 Page({ params }: { params: { locale?: SupportedLocale } }) { + const cartId = cookies().get('cartId')?.value; + let cart; + + if (cartId) { + cart = await getCart(cartId); + } + + const awardsPage = await getPage({ handle: 'awards', language: params?.locale?.toUpperCase() }); + + return ( +
+ +
+ +
+ + +
+ ); +} diff --git a/components/layout/navbar/index.tsx b/components/layout/navbar/index.tsx index 718417c65..4a070ba9d 100644 --- a/components/layout/navbar/index.tsx +++ b/components/layout/navbar/index.tsx @@ -28,7 +28,7 @@ export default function Navbar({ return (
-
+