mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 21:47:58 +00:00
31 lines
428 B
Svelte
31 lines
428 B
Svelte
<script>
|
|
export let title;
|
|
export let subtitle;
|
|
</script>
|
|
|
|
<div class="tile">
|
|
{#if title}
|
|
<div class="title">{title}</div>
|
|
{/if}
|
|
|
|
{#if subtitle}
|
|
<div class="subtitle">{subtitle}</div>
|
|
{/if}
|
|
</div>
|
|
|
|
<style>
|
|
.tile {
|
|
padding: 1rem;
|
|
background-color: var(--tile-bg);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.title, .subtitle {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.title {
|
|
font-weight: 600;
|
|
}
|
|
</style>
|