diff --git a/data/pages/about.html b/data/pages/about.html
index e123ee2..551091c 100644
--- a/data/pages/about.html
+++ b/data/pages/about.html
@@ -8,10 +8,6 @@
a living world
building Pantalaimon, an AI agent system (coming soon)
-
- finishing up a little
- gomoku! webapp
-
Dormant Interests/Projects
diff --git a/data/pages/projects.html b/data/pages/projects.html
new file mode 100644
index 0000000..3b87b5f
--- /dev/null
+++ b/data/pages/projects.html
@@ -0,0 +1,22 @@
+
+ Projects
+
+
+ Gomoku! - a simple multiplayer
+ implementation of the game Gomoku
+
+
+ Civ+ - a sandbox MMORPG where players build nations
+
+
+ sepiatones.xyz
+ - the website you're on
+
+
+ Pantalaimon - an AI
+ coding agent
+
+
+
diff --git a/src/index.tsx b/src/index.tsx
index 94e2392..76f751a 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -35,6 +35,20 @@ const app = new Elysia()
return "Internal server error";
}
})
+ .get("/projects", async ({ set }) => {
+ try {
+ const content = await fs.readFile(
+ path.join(process.cwd(), "data/pages/projects.html"),
+ "utf8",
+ );
+ return renderTemplate("index.html", { content });
+ } catch (error) {
+ console.error("Error serving main page: ", error);
+ set.status = 500;
+ set.headers["Content-Type"] = "text/plain";
+ return "Internal server error";
+ }
+ })
.get("/posts/:post_name", async ({ params, set }) => {
try {
const filePath = path.join(
diff --git a/templates/index.html.hbs b/templates/index.html.hbs
index 4ed227f..dbe9dff 100644
--- a/templates/index.html.hbs
+++ b/templates/index.html.hbs
@@ -13,6 +13,7 @@
sepiatones.xyz
about
+ projects
code