2023-12-19 18:43:42 +01:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import type { ProjectShallow } from '~/types'
|
|
|
|
|
|
|
|
const props = defineProps<{
|
2024-09-12 08:42:37 +02:00
|
|
|
projects: { title: string, projects: ProjectShallow[] }[]
|
2023-12-19 18:43:42 +01:00
|
|
|
}>()
|
|
|
|
|
2024-09-17 08:12:43 +02:00
|
|
|
const totalProjectsCount = props.projects.map(g => g.projects.length).reduce((a, b) => a + b, 0)
|
2023-12-19 18:43:42 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-09-02 15:13:43 +02:00
|
|
|
<div
|
|
|
|
flex
|
|
|
|
flex-col
|
|
|
|
items-start
|
|
|
|
>
|
2024-09-24 19:51:28 +02:00
|
|
|
<ProjectGridGroup
|
2024-10-03 15:53:44 +02:00
|
|
|
my-24px lg:my-32px
|
2024-09-12 08:42:37 +02:00
|
|
|
v-for="group in projects"
|
|
|
|
:key="group.title"
|
2024-09-24 19:51:28 +02:00
|
|
|
:group="group"
|
|
|
|
/>
|
2024-09-17 08:12:43 +02:00
|
|
|
<div v-if="totalProjectsCount === 0">
|
|
|
|
<h3>No Projects found...</h3>
|
|
|
|
</div>
|
2023-12-19 18:43:42 +01:00
|
|
|
</div>
|
|
|
|
</template>
|