mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 12:47:50 +00:00
47 lines
1.2 KiB
TypeScript
47 lines
1.2 KiB
TypeScript
import FAQ from 'components/faq';
|
|
import Hero from 'components/hero';
|
|
import About from 'components/home-page/about';
|
|
import InlinkBlock from 'components/home-page/inlink-block';
|
|
import WhyChoose from 'components/home-page/why-choose';
|
|
import Footer from 'components/layout/footer';
|
|
import { Metadata } from 'next';
|
|
import { Suspense } from 'react';
|
|
|
|
export const runtime = 'edge';
|
|
const { SITE_NAME } = process.env;
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
return {
|
|
title: SITE_NAME,
|
|
description: `${SITE_NAME} is your ultimate destination for all your drivetrain replacement needs.`,
|
|
openGraph: {
|
|
type: 'website'
|
|
}
|
|
};
|
|
}
|
|
|
|
export default async function HomePage() {
|
|
return (
|
|
<>
|
|
<Hero />
|
|
<div className="flex min-h-96 flex-col">
|
|
<Suspense>
|
|
<About />
|
|
</Suspense>
|
|
<Suspense>
|
|
<WhyChoose />
|
|
</Suspense>
|
|
<Suspense>
|
|
<FAQ handle="home-page-faqs" />
|
|
</Suspense>
|
|
<div className="mx-auto flex max-w-7xl flex-col gap-3 px-6 py-20">
|
|
<InlinkBlock />
|
|
</div>
|
|
</div>
|
|
<Suspense>
|
|
<Footer />
|
|
</Suspense>
|
|
</>
|
|
);
|
|
}
|