diff --git a/src/app/[locale]/page.tsx b/src/app/[locale]/page.tsx index 0e497f6..e22f264 100644 --- a/src/app/[locale]/page.tsx +++ b/src/app/[locale]/page.tsx @@ -5,8 +5,14 @@ import { ExperienceSection } from "@/features/experience/experience-section"; import { TechStackSection } from "@/features/skills/tech-stack-section"; import { ProjectsSection } from "@/features/projects/projects-section"; import { ContactSection } from "@/features/messages/contact-section"; +import { prisma } from "@/core/db/prisma"; + +export default async function HomePage() { + const publishedProjects = await prisma.project.findMany({ + where: { isPublished: true }, + orderBy: { createdAt: "desc" } + }); -export default function HomePage() { return ( <> @@ -14,7 +20,7 @@ export default function HomePage() { - +