From c74d5ea1d98934d3f4532c1923c9898ca95bec4f Mon Sep 17 00:00:00 2001 From: minie4 Date: Tue, 23 Apr 2024 18:46:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Make=20the=20color=20previ?= =?UTF-8?q?ew=20its=20own=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.svelte | 31 ++++++------------------------- src/ColorPreview.svelte | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 25 deletions(-) create mode 100644 src/ColorPreview.svelte diff --git a/src/App.svelte b/src/App.svelte index ede4a3a..94dd41d 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,5 +1,6 @@ + +
+ {#if text != undefined} +
{text}
+ {/if} +
+ +