2021-10-29 10:54:35 +02:00
|
|
|
<template>
|
2022-08-12 16:46:44 +02:00
|
|
|
<div
|
2022-08-22 12:12:09 +02:00
|
|
|
class="grid auto-rows-[1fr] gap-x-2 gap-y-4 md:gap-x-6 grid-cols-[repeat(auto-fill,_minmax(250px,_1fr))] justify-items-center"
|
2022-08-12 16:46:44 +02:00
|
|
|
>
|
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>
|