feat: add featured flag to project, display featured projects on home page

This commit is contained in:
mstfyldz
2026-06-05 21:46:54 +03:00
parent 1f1bb8d913
commit 59b2afbc5a
6 changed files with 43 additions and 7 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import { getDictionary } from "@/get-dictionary";
import type { Locale } from "@/i18n-config";
import HomeClient from "@/components/HomeClient";
import { getFeaturedProjects } from "../actions";
export async function generateMetadata({ params }: { params: Promise<{ lang: Locale }> }) {
const { lang } = await params;
@@ -17,6 +18,7 @@ export async function generateMetadata({ params }: { params: Promise<{ lang: Loc
export default async function Page({ params }: { params: Promise<{ lang: Locale }> }) {
const { lang } = await params;
const dict = await getDictionary(lang);
const featuredProjects = await getFeaturedProjects();
return <HomeClient lang={lang} dict={dict} />;
return <HomeClient lang={lang} dict={dict} featuredProjects={featuredProjects} />;
}