feat: initial commit

This commit is contained in:
Cory Dransfeldt 2024-11-16 16:43:07 -08:00
commit 0ff7457679
No known key found for this signature in database
192 changed files with 24379 additions and 0 deletions

View file

@ -0,0 +1,42 @@
---
import icons from "@cdransf/astro-tabler-icons";
const {
IconArticle,
IconHeadphones,
IconDeviceTvOld,
IconBooks,
IconLink,
IconInfoCircle,
IconSearch,
IconRss,
IconBrandMastodon,
IconMail,
IconBrandGithub,
IconBrandNpm,
IconCoffee,
IconDeviceWatch,
IconHeartHandshake,
} = icons;
const { icon, className } = Astro.props;
const iconComponents = {
article: IconArticle,
headphones: IconHeadphones,
"device-tv-old": IconDeviceTvOld,
books: IconBooks,
link: IconLink,
"info-circle": IconInfoCircle,
search: IconSearch,
rss: IconRss,
"brand-mastodon": IconBrandMastodon,
mail: IconMail,
"brand-github": IconBrandGithub,
"brand-npm": IconBrandNpm,
coffee: IconCoffee,
"device-watch": IconDeviceWatch,
"heart-handshake": IconHeartHandshake,
};
const SelectedIcon = iconComponents[icon?.toLowerCase()] || null;
---
{SelectedIcon ? <div set:html={SelectedIcon({ size: 24, className })} /> : null}