From: Ayo Reis Date: Tue, 16 Sep 2025 23:20:45 +0000 (+0100) Subject: Make first version X-Git-Url: https://git.ayoreis.com/ayoreis.com.git/commitdiff_plain/e27988e9edab55c109d30ffce8b287ed6a4067a6 Make first version --- e27988e9edab55c109d30ffce8b287ed6a4067a6 diff --git a/deno.json b/deno.json new file mode 100644 index 0000000..b95ad8d --- /dev/null +++ b/deno.json @@ -0,0 +1,11 @@ +{ + "fmt": { + "proseWrap": "never", + "useTabs": true + }, + + "tasks": { + "dev": "deno serve --allow-read=. --watch mod.ts", + "serve": "deno serve --allow-read=. mod.ts" + } +} diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..d166801 --- /dev/null +++ b/favicon.svg @@ -0,0 +1,3 @@ + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..0b39234 --- /dev/null +++ b/index.html @@ -0,0 +1,43 @@ + + + + + + + ayo reis + + + + + +

Hey there, I'm Ayo!

+

Here are some projects I'm working on: git.ayoreis.com.

+

(the background colour is #f77ee5 btw :3)

+ + diff --git a/inter-italic.woff2 b/inter-italic.woff2 new file mode 100644 index 0000000..b3530f3 Binary files /dev/null and b/inter-italic.woff2 differ diff --git a/inter.woff2 b/inter.woff2 new file mode 100644 index 0000000..5a8d3e7 Binary files /dev/null and b/inter.woff2 differ diff --git a/mod.ts b/mod.ts new file mode 100644 index 0000000..3aba713 --- /dev/null +++ b/mod.ts @@ -0,0 +1,39 @@ +export default { + async fetch(request) { + const url = new URL(request.url); + + if (request.method === "GET" && url.pathname === "/") { + const file = await Deno.open("index.html"); + + return new Response(file.readable, { + headers: { "Content-Type": "text/html" }, + }); + } + + if (request.method === "GET" && url.pathname === "/favicon.svg") { + const file = await Deno.open("favicon.svg"); + + return new Response(file.readable, { + headers: { "Content-Type": "image/svg+xml" }, + }); + } + + if (request.method === "GET" && url.pathname === "/inter.woff2") { + const file = await Deno.open("inter.woff2"); + + return new Response(file.readable, { + headers: { "Content-Type": "font/woff2" }, + }); + } + + if (request.method === "GET" && url.pathname === "/inter-italic.woff2") { + const file = await Deno.open("inter-italic.woff2"); + + return new Response(file.readable, { + headers: { "Content-Type": "font/woff2" }, + }); + } + + return new Response(null, { status: 404 }); + }, +} satisfies Deno.ServeDefaultExport;