mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import { Carousel } from 'components/carousel';
|
|
import { ThreeItemGrid } from 'components/grid/three-items';
|
|
import Footer from 'components/layout/footer';
|
|
import { LanguageControl } from 'components/layout/navbar/language-control';
|
|
import type { Locale } from '../../i18n-config';
|
|
|
|
import Image from 'next/image';
|
|
import Namemark from 'public/assets/images/namemark.png';
|
|
import { Suspense } from 'react';
|
|
|
|
export const runtime = 'edge';
|
|
|
|
export const metadata = {
|
|
description: 'narai by suginomori brewery.',
|
|
openGraph: {
|
|
type: 'website'
|
|
}
|
|
};
|
|
|
|
export default async function HomePage({ params: { lang } }: { params: { lang: Locale } }) {
|
|
// const dictionary = await getDictionary(lang);
|
|
|
|
return (
|
|
<>
|
|
<div className="invisible absolute right-40 top-12 md:visible">
|
|
<LanguageControl lang={lang} />
|
|
</div>
|
|
<div className="px-6 pb-12 pt-6 md:pb-48 md:pl-6 md:pt-12">
|
|
<Image
|
|
src={Namemark}
|
|
alt="narai by suginomori brewery"
|
|
className="max-w-[260px] md:max-w-[600px]"
|
|
/>
|
|
</div>
|
|
<ThreeItemGrid />
|
|
<Suspense>
|
|
<Carousel />
|
|
<Suspense>
|
|
<Footer />
|
|
</Suspense>
|
|
</Suspense>
|
|
</>
|
|
);
|
|
}
|