From de45eb5e450cb58af4f7fbee872114f2501acd9a Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 9 Mar 2022 17:07:26 +0100 Subject: [PATCH] icons --- src/lib/components/Icon.svelte | 60 +++++++++++++++------ src/lib/components/IconList.svelte | 13 +++-- src/lib/components/Nav.svelte | 2 +- src/lib/icons/IconAnalytics.svelte | 5 ++ src/lib/icons/IconCafeOutline.svelte | 11 ++++ src/lib/icons/IconCaretUpCircle.svelte | 5 ++ src/lib/icons/IconChatbubblesOutline.svelte | 19 +++++++ src/lib/icons/IconFingerPrintOutline.svelte | 7 +++ src/lib/icons/IconHeartSharp.svelte | 7 +++ src/lib/icons/IconLinkOutline.svelte | 11 ++++ src/lib/icons/IconLogoGithub.svelte | 7 +++ src/lib/icons/IconMailOutline.svelte | 24 +++++++++ src/lib/icons/IconSearchOutline.svelte | 18 +++++++ src/routes/contact.svelte | 4 +- src/routes/support.svelte | 3 +- static/icons/analytics.svg | 1 - static/icons/cafe-outline.svg | 4 -- static/icons/chatbubbles-outline.svg | 5 -- static/icons/finger-print-outline.svg | 4 -- static/icons/heart-sharp.svg | 4 -- static/icons/link-outline.svg | 4 -- static/icons/logo-github.svg | 4 -- static/icons/mail-outline.svg | 5 -- static/icons/search-outline.svg | 5 -- 24 files changed, 173 insertions(+), 59 deletions(-) create mode 100644 src/lib/icons/IconAnalytics.svelte create mode 100644 src/lib/icons/IconCafeOutline.svelte create mode 100644 src/lib/icons/IconCaretUpCircle.svelte create mode 100644 src/lib/icons/IconChatbubblesOutline.svelte create mode 100644 src/lib/icons/IconFingerPrintOutline.svelte create mode 100644 src/lib/icons/IconHeartSharp.svelte create mode 100644 src/lib/icons/IconLinkOutline.svelte create mode 100644 src/lib/icons/IconLogoGithub.svelte create mode 100644 src/lib/icons/IconMailOutline.svelte create mode 100644 src/lib/icons/IconSearchOutline.svelte delete mode 100644 static/icons/analytics.svg delete mode 100644 static/icons/cafe-outline.svg delete mode 100644 static/icons/chatbubbles-outline.svg delete mode 100644 static/icons/finger-print-outline.svg delete mode 100644 static/icons/heart-sharp.svg delete mode 100644 static/icons/link-outline.svg delete mode 100644 static/icons/logo-github.svg delete mode 100644 static/icons/mail-outline.svg delete mode 100644 static/icons/search-outline.svg diff --git a/src/lib/components/Icon.svelte b/src/lib/components/Icon.svelte index cc8d335..6d04f8f 100644 --- a/src/lib/components/Icon.svelte +++ b/src/lib/components/Icon.svelte @@ -1,27 +1,57 @@ - -{#if html === null} - {icon} -{:else} - - {@html html} + + +{#if component} + + {/if}