From d841f27454905f3d923d026d8a4650da7efd90d9 Mon Sep 17 00:00:00 2001 From: sHa Date: Wed, 14 May 2025 21:34:53 +0300 Subject: [PATCH] feat: enhance SVG handling by adding source fetching and copying functionality --- public/global.css | 5 ++ src/components/Grid.svelte | 9 +- src/components/Preview.svelte | 154 +++++++++++++++++++++++++++++++--- src/utils/svgSource.js | 10 +-- 4 files changed, 158 insertions(+), 20 deletions(-) diff --git a/public/global.css b/public/global.css index ba9e265..b3a7ecc 100644 --- a/public/global.css +++ b/public/global.css @@ -700,3 +700,8 @@ footer { padding: 0.3em 0.8em; text-align: center; } + +textarea { + background-color: var(--background-color); + color: var(--color-text); +} diff --git a/src/components/Grid.svelte b/src/components/Grid.svelte index dcc1edc..4392494 100644 --- a/src/components/Grid.svelte +++ b/src/components/Grid.svelte @@ -44,7 +44,14 @@ $: getLogoThemeColor = logo => getDefaultLogoColor(logo.colors, theme); } - +
{#each logos as logo} diff --git a/src/components/Preview.svelte b/src/components/Preview.svelte index 02a5730..bdd6021 100644 --- a/src/components/Preview.svelte +++ b/src/components/Preview.svelte @@ -1,15 +1,30 @@