--- /dev/null
+<!DOCTYPE html>
+
+<html lang="en-GB">
+ <head>
+ <meta name="viewport" content="width=device-width" />
+ <link rel="icon" href="/favicon.svg" />
+ <title>ayo reis</title>
+
+ <style>
+ @font-face {
+ font-family: --inter;
+ font-style: normal;
+ font-feature-settings: "ss07", "ss08";
+ src: url("/inter.woff2");
+ }
+
+ @font-face {
+ font-family: --inter;
+ font-style: italic;
+ font-feature-settings: "ss07", "ss08";
+ src: url("/inter-italic.woff2");
+ }
+
+ body {
+ font-family: --inter;
+ font-size: 32px;
+ font-weight: 500;
+ text-transform: lowercase;
+ background-color: #f77ee5;
+ }
+
+ a {
+ color: inherit;
+ }
+ </style>
+ </head>
+
+ <body>
+ <p>Hey there, I'm Ayo!</p>
+ <p>Here are some projects I'm working on: <a href="https://git.ayoreis.com">git.ayoreis.com</a>.</p>
+ <p>(the background colour is #f77ee5 btw :3)</p>
+ <body/>
+</html>
--- /dev/null
+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;