diff options
Diffstat (limited to 'frontend/src/lib/statistics/StatGroup.svelte')
-rw-r--r-- | frontend/src/lib/statistics/StatGroup.svelte | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/src/lib/statistics/StatGroup.svelte b/frontend/src/lib/statistics/StatGroup.svelte new file mode 100644 index 0000000..91f8d3d --- /dev/null +++ b/frontend/src/lib/statistics/StatGroup.svelte @@ -0,0 +1,14 @@ +<script lang="ts"> + import type { Snippet } from 'svelte'; + + let { title, children }: { title: string; children?: Snippet } = $props(); +</script> + +<section + class="flex flex-col gap-2 rounded-sm bg-slate-900 p-2 font-medium shadow-md shadow-slate-950/30" +> + <h2 class="text-2xl">{title}</h2> + <div class="flex flex-row flex-wrap gap-10"> + {@render children?.()} + </div> +</section> |