<script setup lang="ts">
defineProps<{
    title?: string;
    blurb?: string;
}>();
</script>

<template>
    <div class="glass-box glass glass-border">
        <h2 v-if="title">{{ title }}</h2>
        <p v-if="blurb">{{ blurb }}</p>
        <slot />
    </div>
</template>

<style scoped>
.glass-box {
    width: 50%;
    min-height: 50dvh;
    gap: 1em;
    padding: 2em;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

p {
    text-align: center;
    width: 100%;
    opacity: 0.7;
    margin-bottom: 1rem;
}
</style>
