Files
eleith 875f256f2f
ci/woodpecker/push/web-explorer Pipeline was successful
ci/woodpecker/push/web-lsp Pipeline was successful
ci/woodpecker/push/web-worker Pipeline failed
[web.worker] use local svelte fixture for compile test instead of explorer demo
2026-05-22 16:00:00 -07:00

40 lines
666 B
Svelte

<script lang="ts">
type Props = {
title: string
subtitle?: string
accent: string
}
let { title, subtitle, accent }: Props = $props()
</script>
<section class="card" style="--accent: {accent};">
<h1>{title}</h1>
{#if subtitle}
<p class="subtitle">{subtitle}</p>
{/if}
</section>
<style>
.card {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 2rem;
background: oklch(from var(--accent) 0.95 0.05 h);
border-bottom: 4px solid var(--accent);
}
.card h1 {
font-size: 2rem;
font-weight: 700;
margin: 0;
color: var(--accent);
}
.subtitle {
font-size: 1rem;
color: oklch(from var(--accent) 0.4 c h);
}
</style>