From eec1ee1d898f4a6364c5554683b32c6f3d555eb6 Mon Sep 17 00:00:00 2001 From: Alam Guardin Date: Mon, 2 Sep 2024 21:52:01 -0500 Subject: refactor: add remixicons for more variety in icons --- src/components/Link.astro | 26 +++++++------------------- src/data/user.json | 14 +++++++------- src/layouts/Layout.astro | 5 ----- 3 files changed, 14 insertions(+), 31 deletions(-) (limited to 'src') diff --git a/src/components/Link.astro b/src/components/Link.astro index d5a9fa7..4ffb04b 100644 --- a/src/components/Link.astro +++ b/src/components/Link.astro @@ -1,14 +1,5 @@ --- -import { componentIsHTMLElement } from "astro/runtime/server/render/dom.js"; -import Dribbble from "./icons/Dribbble.astro"; -import Facebook from "./icons/Facebook.astro"; -import Instagram from "./icons/Instagram.astro"; -import Linkedin from "./icons/Linkedin.astro"; -import Shop from "./icons/Shop.astro"; -import Twitch from "./icons/Twitch.astro"; -import Url from "./icons/Url.astro"; -import XTwitter from "./icons/X-twitter.astro"; -import Youtube from "./icons/Youtube.astro"; +import 'remixicon/fonts/remixicon.css' interface Props { icon: string; @@ -22,15 +13,7 @@ const { icon, title, description, url } = Astro.props; - {icon === 'dribble' && } - {icon === 'facebook' && } - {icon === 'instagram' && } - {icon === 'linkedin' && } - {icon === 'shop' && } - {icon === 'twitch' && } - {icon === 'url' && } - {icon === 'xtwitter' && } - {icon === 'youtube' && } +