Initial design based off original website, some things still to do

This commit is contained in:
encie22 committed 2025-08-08 17:48:11 +09:30
1 parent d38c8fc694
commit ae3c38be17
185 files changed
+6799 -1877

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
---
import { getCollection } from "astro:content";
import SectionTitle from "../components/SectionTitle.astro";
import MainLayout from "../layouts/MainLayout.astro";
import ProjectCard from "@components/ProjectCard.astro";
const projects = (await getCollection("projects")).sort(
(a, b) => b.data.date.valueOf() - a.data.date.valueOf()
);
---
<MainLayout title="Projects">
<div class="w-full">
<section id="projects" class="bg-white dark:bg-gray-950">
<div class="mx-auto max-w-4xl px-8 py-16 text-center">
<SectionTitle>Recent Projects</SectionTitle>
<div class="space-y-8">
{
projects.map((project, index) => {
return (
<ProjectCard
project={project}
textOn={index % 2 === 0 ? "left" : "right"}
/>
);
})
}
</div>
</div>
</section>
</div>
</MainLayout>