From d344350285912ff7df3408a52c8f85c877a2ce7e Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 3 Jun 2023 01:03:19 +0200 Subject: [PATCH] updates to now page and highlighted links --- src/components/Nav.astro | 3 +- src/layouts/Layout.astro | 8 +-- src/pages/index.astro | 29 +++----- src/pages/now.astro | 71 +++++++++++++++++++ .../posts/01-19-2023.astro} | 20 ++---- .../{showcase/index.astro => showcase.astro} | 13 +++- 6 files changed, 103 insertions(+), 41 deletions(-) create mode 100644 src/pages/now.astro rename src/pages/now/{index.astro => and-then/posts/01-19-2023.astro} (80%) rename src/pages/{showcase/index.astro => showcase.astro} (72%) diff --git a/src/components/Nav.astro b/src/components/Nav.astro index be5f8b2..4d66256 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -3,6 +3,7 @@ import Icon from "astro-icon"; export type Link = { url: string; icon: string; + text?: string; }; export interface Props { @@ -26,7 +27,7 @@ if (Astro.url.pathname !== "/") { .filter((link) => link.url !== "") .map((link) => ( - {link.icon} + {link.text ?? link.icon} )) } diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index d86be48..407e2f9 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -19,7 +19,7 @@ const links: Link[] = [ icon: "mastodon", }, { - url: "https://ayco.io/github", + url: "https://ayco.io/gh", icon: "github", }, ]; @@ -56,17 +56,13 @@ const links: Link[] = [ --ayo-gradient: linear-gradient(45deg, #3054bf, #416fff); } - html { + html, body, * { font-family: system-ui, sans-serif; font-size: var(--font-size-base); color: var(--color-text); background-color: var(--color-bg); } - body { - margin: 0; - } - @keyframes pulse { 0%, 100% { diff --git a/src/pages/index.astro b/src/pages/index.astro index 9adc029..dcf2b6f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -20,14 +20,12 @@ import Footer from "../components/Footer.astro"; Now - The Fediverse and Other Passion Projects + Building a Cozy Web without borders... @@ -40,23 +38,12 @@ import Footer from "../components/Footer.astro"; title="Fun Side Projects" body="See demos of opensource side projects I created" /> - -