]> Repositories - ayoreis.com.git/commitdiff
Make first version
authorAyo Reis <hey@ayoreis.com>
Tue, 16 Sep 2025 23:20:45 +0000 (00:20 +0100)
committerAyo Reis <hey@ayoreis.com>
Tue, 16 Sep 2025 23:20:45 +0000 (00:20 +0100)
deno.json [new file with mode: 0644]
favicon.svg [new file with mode: 0644]
index.html [new file with mode: 0644]
inter-italic.woff2 [new file with mode: 0644]
inter.woff2 [new file with mode: 0644]
mod.ts [new file with mode: 0644]

diff --git a/deno.json b/deno.json
new file mode 100644 (file)
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 (file)
index 0000000..d166801
--- /dev/null
@@ -0,0 +1,3 @@
+<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
+       <rect width="100" height="100" fill="#f77ee5" />
+</svg>
diff --git a/index.html b/index.html
new file mode 100644 (file)
index 0000000..0b39234
--- /dev/null
@@ -0,0 +1,43 @@
+<!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>
diff --git a/inter-italic.woff2 b/inter-italic.woff2
new file mode 100644 (file)
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 (file)
index 0000000..5a8d3e7
Binary files /dev/null and b/inter.woff2 differ
diff --git a/mod.ts b/mod.ts
new file mode 100644 (file)
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;