moved stylised button to outlined-button.svelte; added drawing gallery (currently hidden)

This commit is contained in:
2026-01-31 15:27:41 +01:00
parent 466d8bee1a
commit 17c1803302
7 changed files with 224 additions and 26 deletions

View File

@@ -0,0 +1,38 @@
<script lang="ts">
let {
text,
onClick,
fullWidth,
}: {
text: string;
onClick: () => undefined;
fullWidth?: boolean;
} = $props();
</script>
{#if fullWidth}
<button class="outlined-button outlined-button-fullwidth" onclick={onClick}>{text}</button>
{:else}
<button class="outlined-button" onclick={onClick}>{text}</button>
{/if}
<style>
.outlined-button {
font-family: var(--font-mono);
font-size: var(--font-size-mono);
padding: 8px;
border: dashed 2px var(--color-highlight);
color: var(--color-highlight);
font-weight: 700;
cursor: pointer;
transition: background-color 0.05s ease-out;
}
.outlined-button:hover {
background-color: var(--color-background-highlight);
}
.outlined-button-fullwidth {
width: 100%;
}
</style>