Files
FlightsAPI/resources/js/Components/FlightsGoneBy/GlassBox.vue
T
2026-04-05 21:38:36 +10:00

42 lines
636 B
Vue

<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: clamp(280px, 100%, 700px);
gap: 1em;
padding: 2em;
}
h2 {
font-size: 2rem;
text-align: center;
}
p {
text-align: center;
width: 100%;
opacity: 0.7;
margin-bottom: 1rem;
}
@media (max-width: 600px) {
.glass-box {
padding: 1.25em;
min-height: unset;
}
}
</style>