2021-10-29 10:54:35 +02:00
|
|
|
<template>
|
2022-08-12 16:46:44 +02:00
|
|
|
<div
|
|
|
|
class="grid auto-rows-[1fr] gap-x-5 gap-y-8 grid-cols-[repeat(auto-fill,_minmax(250px,_1fr))]"
|
|
|
|
>
|
2021-10-29 10:54:35 +02:00
|
|
|
<event-card
|
2022-08-12 16:46:44 +02:00
|
|
|
class="flex flex-col h-full"
|
2021-10-29 10:54:35 +02:00
|
|
|
v-for="event in events"
|
|
|
|
:event="event"
|
|
|
|
:key="event.uuid"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
2022-07-12 10:55:28 +02:00
|
|
|
<script lang="ts" setup>
|
2021-10-29 10:54:35 +02:00
|
|
|
import { IEvent } from "@/types/event.model";
|
2022-07-12 10:55:28 +02:00
|
|
|
|
2021-10-29 10:54:35 +02:00
|
|
|
import EventCard from "./EventCard.vue";
|
2022-07-12 10:55:28 +02:00
|
|
|
|
|
|
|
defineProps<{
|
|
|
|
events: IEvent[];
|
|
|
|
}>();
|
2021-10-29 10:54:35 +02:00
|
|
|
</script>
|