add freelance page components and localization for English and French

This commit is contained in:
2026-06-02 14:24:06 +02:00
parent 198e5e8a31
commit cbbfa81d7e
5 changed files with 565 additions and 14 deletions
+15 -8
View File
@@ -1,11 +1,18 @@
'use client';
import { getProjectBySlug } from "@/lib/projects/get-projects";
import { Project } from "@/lib/projects/types";
import FreelanceClient from "./_client";
export default function FreelancePage() {
type props = {
params: Promise<{ locale: string }>;
};
export default async function FreelancePage({ params }: props) {
const { locale } = await params;
return (
<div>
</div>
);
}
const slugOrder = ['MGDev', 'Thence', 'EverEastSolutions'];
const projects = slugOrder
.map((s) => getProjectBySlug(s, locale))
.filter((p): p is Project => p !== null && p.ready);
return <FreelanceClient projects={projects} locale={locale} />;
}