From d17bca56238e9ca326d60e58230d0d354f23bfe8 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 9 Oct 2024 10:59:13 -0400 Subject: back to astro for hopefully the last time (#146) --- src/pages/404.md | 9 +++++++++ src/pages/about-me.md | 22 ++++++++++++++++++++++ src/pages/contact.md | 11 +++++++++++ src/pages/index.astro | 21 +++++++++++++++++++++ src/pages/robots.txt.ts | 13 +++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 src/pages/404.md create mode 100644 src/pages/about-me.md create mode 100644 src/pages/contact.md create mode 100644 src/pages/index.astro create mode 100644 src/pages/robots.txt.ts (limited to 'src/pages') diff --git a/src/pages/404.md b/src/pages/404.md new file mode 100644 index 0000000..310f29e --- /dev/null +++ b/src/pages/404.md @@ -0,0 +1,9 @@ +--- +layout: ../layouts/Base.astro +title: 404! +description: Page not found +--- + +# 404! + +![Can I get you some tapwater?](../assets/tapwater.png) diff --git a/src/pages/about-me.md b/src/pages/about-me.md new file mode 100644 index 0000000..d34c6df --- /dev/null +++ b/src/pages/about-me.md @@ -0,0 +1,22 @@ +--- +layout: ../layouts/Base.astro +title: About me +description: Information about Getchoo +--- + +# About Me + +I am a 19 year old software developer (when I have the time) based in Florida. +Most commonly, I am contributing to the +[FOSS](https://en.wikipedia.org/wiki/Free_and_open-source_software) community +-- specifically for projects like [NixOS and nixpkgs](https://nixos.org), +[Prism Launcher](https://prismlauncher.org), and whatever else I find fun +and/or personally use. + +Some technologies I play around with the most include the aforementioned +[Nix](https://nix.dev), [GitHub Actions](https://docs.github.com/en/actions), +[Bash](https://www.gnu.org/software/bash/) (usually in slightly horrifying +ways), [Deno](https://deno.com/), [Cloudflare +Workers](https://workers.cloudflare.com/), [Rust](https://rust-lang.org/), +[FastAPI](https://www.python.org/), and [Astro](https://astro.build) (which +this site is made with!) diff --git a/src/pages/contact.md b/src/pages/contact.md new file mode 100644 index 0000000..28f90a4 --- /dev/null +++ b/src/pages/contact.md @@ -0,0 +1,11 @@ +--- +layout: ../layouts/Base.astro +title: Contact Me +description: My contact information +--- + +# Contact + +The most reliable way to contact me is via email at `getchoo at tuta dot io` + +I am also available on Matrix as `getchoo:matrix.org` and Discord as `g3tchoo` diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..a17dcbe --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,21 @@ +--- +import { Image } from "astro:assets"; + +import Base from "@layouts/Base.astro"; +import GifButtons from "@components/GifButtons.astro"; +import obras from "@assets/obras.gif"; +--- + + + + +

Getchoo's website 🚀

+ +

Constantly under construction since 2021!

+ + Under construction + + + diff --git a/src/pages/robots.txt.ts b/src/pages/robots.txt.ts new file mode 100644 index 0000000..f36bf2b --- /dev/null +++ b/src/pages/robots.txt.ts @@ -0,0 +1,13 @@ +import type { APIRoute } from "astro"; + +const getRobotsTxt = (sitemapUrl: URL) => ` +User-agent: * +Allow: / + +Sitemap: ${sitemapUrl.href} +`; + +export const GET: APIRoute = ({ site }) => { + const sitemapUrl = new URL(`sitemap-index.xml`, site); + return new Response(getRobotsTxt(sitemapUrl)); +}; -- cgit v1.2.3