writed project pages content

This commit is contained in:
2026-04-16 14:39:14 +02:00
parent 3a79088cce
commit fc2b481bd4
18 changed files with 104 additions and 83 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ type props = {
export default async function Home({ params }: props) {
const { locale } = await params;
const projects = getAllProjects();
const projects = getAllProjects().filter((item) => item.ready);
return (
<main className=" bg-brand-beige text-brand-black flex flex-col items-center justify-center">
+3 -2
View File
@@ -30,12 +30,13 @@ export default async function ProjectPage({ params }: props) {
}
const otherProjects = getAllProjects()
.filter((item: any) => item.slug !== slug)
.filter((item: any) => item.slug !== slug && item.ready)
.slice(0, 2)
.map((item: any) => ({
slug: item.slug,
title: item.title,
subtitle: item.subtitle,
description: item.description,
cover: item.cover
}));
return (