aboutsummaryrefslogtreecommitdiff
path: root/fe/src/lib/Card.svelte
blob: 0f2927998c4b07170ef9efb5b7f2069f621c4c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script lang="ts">
    export let title = "";
</script>

<div class="card">
    {#if title}
        <h2>{title}</h2>
    {/if}
    <slot />
</div>

<style>
    .card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border: solid 2px #00000066;
        border-radius: 0.25em;
        height: var(--height, inherit);
        flex-grow: 2;
    }
</style>