2021-10-29 10:54:35 +02:00
|
|
|
<template>
|
|
|
|
<div class="multi-card-event">
|
|
|
|
<event-card
|
|
|
|
class="event-card"
|
|
|
|
v-for="event in events"
|
|
|
|
:event="event"
|
|
|
|
:key="event.uuid"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
|
|
import { IEvent } from "@/types/event.model";
|
|
|
|
import { PropType } from "vue";
|
|
|
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
|
|
import EventCard from "./EventCard.vue";
|
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
EventCard,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class MultiCard extends Vue {
|
|
|
|
@Prop({ type: Array as PropType<IEvent[]>, required: true })
|
|
|
|
events!: IEvent[];
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.multi-card-event {
|
|
|
|
display: grid;
|
|
|
|
grid-auto-rows: 1fr;
|
|
|
|
grid-column-gap: 30px;
|
|
|
|
grid-row-gap: 30px;
|
2021-11-06 10:08:20 +01:00
|
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
2021-10-29 10:54:35 +02:00
|
|
|
.event-card {
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|