From d1c140f6146fd6ad410e04d805f5e071ac0f05c4 Mon Sep 17 00:00:00 2001 From: pheralb Date: Thu, 25 Jan 2024 13:41:26 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Separate=20download=20component=20+?= =?UTF-8?q?=20create=20new=20dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/downloadSvg.svelte | 230 ++++++++++++++++++++++++++++++ src/components/svgCard.svelte | 155 ++------------------ 2 files changed, 245 insertions(+), 140 deletions(-) create mode 100644 src/components/downloadSvg.svelte diff --git a/src/components/downloadSvg.svelte b/src/components/downloadSvg.svelte new file mode 100644 index 0000000..665e34e --- /dev/null +++ b/src/components/downloadSvg.svelte @@ -0,0 +1,230 @@ + + +{#if typeof svgInfo.route === 'string'} + +{:else} + + + + + + + Download {svgInfo.title} + This logo has multiple options to download. + + +
+
+ {svgInfo.title} + + + + + +
+ + {#if typeof svgInfo.wordmark === 'string' && svgInfo.wordmark !== undefined} +
+ {svgInfo.title} + +
+ {/if} + + {#if typeof svgInfo.wordmark !== 'string' && svgInfo.wordmark !== undefined} +
+ {svgInfo.title} + + + + + +
+ {/if} +
+
+
+{/if} diff --git a/src/components/svgCard.svelte b/src/components/svgCard.svelte index a309c7f..655629b 100644 --- a/src/components/svgCard.svelte +++ b/src/components/svgCard.svelte @@ -1,35 +1,23 @@