summaryrefslogblamecommitdiffstatshomepage
path: root/frontend/src/lib/statistics/StatGroup.svelte
blob: 91f8d3de3669a486ad31c8bfd821a52275ed9eb1 (plain) (tree)
1
2
3
4
5
6
7
8
                  


                                                                                  


         
                                                                                                         


                                                    
                                      

              
<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>