39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { HomeHero } from "@/components/home-hero";
|
|
import { HomeProjectsSection } from "@/components/home-projects-section";
|
|
import { HomeVideosSection } from "@/components/home-videos-section";
|
|
import { ReferencesSection } from "@/components/references-section";
|
|
import { getHomeBlogNews } from "@/data/blog";
|
|
import { getStaticPageMetadata } from "@/lib/seo";
|
|
|
|
export async function generateMetadata({
|
|
params,
|
|
}: {
|
|
params: Promise<{ locale: string }>;
|
|
}) {
|
|
const { locale } = await params;
|
|
return getStaticPageMetadata({
|
|
locale,
|
|
page: "home",
|
|
path: "/",
|
|
absoluteTitle: true,
|
|
});
|
|
}
|
|
|
|
export default async function Home({
|
|
params,
|
|
}: {
|
|
params: Promise<{ locale: string }>;
|
|
}) {
|
|
const { locale } = await params;
|
|
const homeNews = await getHomeBlogNews(locale, 6);
|
|
|
|
return (
|
|
<section className="flex h-full flex-col overflow-y-auto overflow-x-hidden">
|
|
<HomeHero news={homeNews} />
|
|
<HomeProjectsSection />
|
|
<ReferencesSection />
|
|
<HomeVideosSection />
|
|
</section>
|
|
);
|
|
}
|