From 8790ecf93a87fd99ae383a9da666a38dc7f17437 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 23 Jan 2024 17:37:59 +0000 Subject: Almost finished the contacts page --- src/components/contacts.json | 12 ++++++------ src/pages/contacts.astro | 18 ++++++++++++++---- 2 files changed, 20 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/components/contacts.json b/src/components/contacts.json index 334808e..8b9e562 100644 --- a/src/components/contacts.json +++ b/src/components/contacts.json @@ -19,38 +19,38 @@ }, { "platform": "Discord", - "icon": "", + "icon": "discord", "username": "alee", "url": "https://discord.alee14.me" }, { "platform": "YouTube", - "icon": "", + "icon": "youtube", "username": "AndrewLeeCAN", "url": "https://youtube.alee14.me" }, { "platform": "Mastodon", - "icon": "", + "icon": "mastodon", "username": "@alee@mstdn.ca", "url": "https://mstdn.ca/@alee" }, { "platform": "X", "comment": "yuck.", - "icon": "", + "icon": "x-twitter", "username": "alee", "url": "https://twitter.alee14.me" }, { "platform": "Instagram", - "icon": "", + "icon": "instagram", "username": "alee14498", "url": "https://instagram.alee14.me" }, { "platform": "Reddit", - "icon": "", + "icon": "reddit", "username": "alee1449", "url": "https://reddit.alee14.me" } diff --git a/src/pages/contacts.astro b/src/pages/contacts.astro index e917a4d..6847d19 100644 --- a/src/pages/contacts.astro +++ b/src/pages/contacts.astro @@ -2,17 +2,27 @@ import Page from '../layouts/Page.astro' import { Icon } from 'astro-icon/components'; import contacts from "../components/contacts.json"; - -//let icon = "fa6-brands:" + contacts[0].icon; --- {contacts.map((contact)=> { + let icon = "fa6-brands:" + contact.icon; return ( ) })} - \ No newline at end of file + + \ No newline at end of file -- cgit v1.2.3