From 3e2e68e10aed30913f09b9ff4bd9719bd1906e90 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Tue, 30 Jun 2026 12:29:42 -0400 Subject: [PATCH] refactor(ui): migrate social links to site config and footer component --- src/components/SocialList.astro | 42 ------------------------------ src/components/layout/Footer.astro | 36 +++++++++++++++++++------ src/components/layout/Header.astro | 31 +++++++--------------- src/layouts/Base.astro | 2 +- 4 files changed, 38 insertions(+), 73 deletions(-) delete mode 100644 src/components/SocialList.astro diff --git a/src/components/SocialList.astro b/src/components/SocialList.astro deleted file mode 100644 index 00e7f97..0000000 --- a/src/components/SocialList.astro +++ /dev/null @@ -1,42 +0,0 @@ ---- -import { Icon } from "astro-icon/components"; - -/** - Uses https://www.astroicon.dev/getting-started/ - Find icons via guide: https://www.astroicon.dev/guides/customization/#open-source-icon-sets - Only installed pack is: @iconify-json/mdi -*/ -const socialLinks: { - friendlyName: string; - isWebmention?: boolean; - link: string; - name: string; -}[] = [ - { - friendlyName: "Github", - link: "https://github.com/chrismwilliams/astro-cactus", - name: "mdi:github", - }, -]; ---- - -
-

Find me on

- -
diff --git a/src/components/layout/Footer.astro b/src/components/layout/Footer.astro index 04960a9..35df90a 100644 --- a/src/components/layout/Footer.astro +++ b/src/components/layout/Footer.astro @@ -1,24 +1,44 @@ --- -import { menuLinks, siteConfig } from "@/site.config"; +import { Icon } from "astro-icon/components"; +import { menuLinks, siteConfig, socialLinks } from "@/site.config"; const year = new Date().getFullYear(); --- diff --git a/src/components/layout/Header.astro b/src/components/layout/Header.astro index 965b413..d849cd3 100644 --- a/src/components/layout/Header.astro +++ b/src/components/layout/Header.astro @@ -5,33 +5,20 @@ import { menuLinks } from "@/site.config"; import { siteConfig } from "../../site.config"; --- -
+