From 8d5a56bd7774749307180c2447a5c74871540e3f Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Sun, 10 Nov 2024 00:11:22 +0100 Subject: [PATCH] refactor: move footer links to constants/links --- src/components/Footer.astro | 43 +------------------------------------ src/constants/links.ts | 43 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 42 deletions(-) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 67b1533..72e4faa 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,47 +1,6 @@ --- +import {footerLinks as links} from '../constants/links'; const year = new Date().getFullYear(); -const links = [ - { - text: 'GitHub', - url: 'https://github.com/ayoayco' - }, - { - text: 'SourceHut', - url: 'https://sr.ht/~ayoayco' - }, - { - text: 'LinkedIn', - url: 'https://www.linkedin.com/in/ayoayco' - }, - { - text: 'Pixelfed', - url: 'https://metapixl.com/@ayo' - }, - { - text: 'SoundCloud', - url: 'https://SoundCloud.com/ayoayco' - }, - { - text: 'NPM', - url: 'https://www.npmjs.com/~aayco' - }, - { - text: 'Instagram', - url: 'https://instagram.com/ayoayco' - }, - { - text: 'Web Tools', - url: 'https://m.webtoo.ls/@ayo' - }, - { - text: 'Ayco Social', - url: 'https://social.ayco.io' - }, - { - text: 'Bluesky', - url: 'https://bsky.app/profile/ayco.io' - } -] ---