status/gui/dashboard/tile-rawvalue.svelte
Romein van Buren c561a00954
Basic dashboard
Signed-off-by: Romein van Buren <romein@vburen.nl>
2022-07-11 11:20:44 +02:00

30 lines
379 B
Svelte

<script>
import Tile from './tile.svelte';
export let title;
export let subtitle;
export let color;
export let value;
</script>
<Tile {title} {subtitle}>
<div class="value {color}">
{value}
</div>
</Tile>
<style>
.value {
font-size: 3rem;
font-weight: 600;
}
.red {
color: var(--red);
}
.green {
color: var(--green);
}
</style>