New Responsive design
This commit is contained in:
@@ -9,7 +9,7 @@ const emit = defineEmits(['next'])
|
||||
<h3 style="margin: 0 0 6px 0; color: #111827;">Wer nimmt teil?</h3>
|
||||
<p style="margin: 0 0 24px 0; color: #6b7280; font-size: 0.95rem;">Bitte wähle deine Altersgruppe aus.</p>
|
||||
|
||||
<div style="display: flex; gap: 20px; flex-wrap: wrap;">
|
||||
<div class="age-card-row">
|
||||
|
||||
<!-- Kind / Jugendliche:r -->
|
||||
<div class="age-card" @click="emit('next', 2)">
|
||||
@@ -40,9 +40,15 @@ const emit = defineEmits(['next'])
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.age-card-row {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.age-card {
|
||||
flex: 1;
|
||||
min-width: 220px;
|
||||
flex: 1 1 280px;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -62,13 +68,14 @@ const emit = defineEmits(['next'])
|
||||
|
||||
.age-card__badge {
|
||||
position: relative;
|
||||
width: 350px;
|
||||
height: 200px;
|
||||
width: 100%;
|
||||
max-width: 350px;
|
||||
aspect-ratio: 350 / 200;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.age-card__img {
|
||||
width: 350px;
|
||||
height: 200px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
.age-card__badge-fallback {
|
||||
@@ -100,4 +107,43 @@ const emit = defineEmits(['next'])
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* ─── Smartphone ─── */
|
||||
@media (max-width: 639px) {
|
||||
.age-card-row {
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.age-card {
|
||||
flex: 1 1 100%;
|
||||
padding: 18px 14px;
|
||||
flex-direction: row;
|
||||
text-align: left;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.age-card__badge {
|
||||
flex: 0 0 90px;
|
||||
width: 90px;
|
||||
max-width: 90px;
|
||||
aspect-ratio: 1;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.age-card__body {
|
||||
flex: 1;
|
||||
align-items: flex-start;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.age-card__title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.age-card__desc {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user