promo widget colors

This commit is contained in:
SPRINX0\prochazka
2025-10-22 10:47:59 +02:00
parent 82092fab76
commit 3a5f36155f
5 changed files with 36 additions and 8 deletions

View File

@@ -4,14 +4,14 @@
export let text: string;
export let link: string;
export let newTab: boolean = true;
export let colorClass: string = '';
// very light url guard
const safe = /^(https?:)?\/\//i.test(link) || link.startsWith('/');
</script>
<div class="center">
<FormStyledButton on:click={() => openWebLink(link)} value={text} skipWidth />
<FormStyledButton on:click={() => openWebLink(link)} value={text} skipWidth {colorClass} />
</div>
<style>