project pages created and populated automatically
This commit is contained in:
+14
-3
@@ -3,13 +3,24 @@ import WorksSection from "@/components/sections/WorksSection";
|
||||
import FeatureSection from "@/components/sections/FeatureSection";
|
||||
import TimelineSection from "@/components/sections/AboutSection";
|
||||
|
||||
export default function Home() {
|
||||
import { getAllProjects } from "@/lib/projects/get-projects";
|
||||
|
||||
type Props = {
|
||||
params: Promise<{
|
||||
locale: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
export default async function Home({ params }: Props) {
|
||||
const { locale } = await params;
|
||||
const projects = getAllProjects();
|
||||
|
||||
return (
|
||||
<main className=" bg-brand-beige text-brand-black flex flex-col items-center justify-center">
|
||||
<HeroSection />
|
||||
<WorksSection />
|
||||
<WorksSection projects={projects} locale={locale} />
|
||||
<FeatureSection />
|
||||
<TimelineSection />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user