From ef6b44604a3144872671210d2057001b17446b96 Mon Sep 17 00:00:00 2001 From: Yolando Date: Sat, 28 Mar 2026 21:16:14 +0700 Subject: [PATCH] feat: implement projects section with category filtering and database integration --- src/app/[locale]/page.tsx | 10 ++- src/features/projects/projects-section.tsx | 85 ++++++---------------- 2 files changed, 32 insertions(+), 63 deletions(-) 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() { - +