From 0135c64baba400c0489248ecfd29604057092b6d Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Wed, 14 May 2025 16:40:53 +0100 Subject: [PATCH] added: color detection --- frontend/src/App.svelte | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index 76a55d2..9731eb2 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -8,7 +8,6 @@ Enter, } from "../wailsjs/go/main/App.js"; - let resultText: string = "Please enter your name below 👇"; let searchText: string; let mathRes: string | null; @@ -70,6 +69,12 @@ }} />
+ {#if searchText?.match(/^#[\da-f]{3}([\da-f]{3})?$/)} +
+

Color

+
+
+ {/if} {#if mathRes}

Calculations

@@ -157,6 +162,10 @@ color: white; border-radius: 10px; border: #151515 solid 2px; - box-shadow: #00000055 0px 0 20px 5px; + } + .color-block { + background: var(--background-color); + width: 64px; + height: 64px; }