11<script setup lang="ts">
22import type { Project } from ' @/utils/cofest-csv' ;
3- import { Card , CardHeader , CardTitle , CardContent } from ' @/components/ui/card' ;
4- import { Badge } from ' @/components/ui/badge' ;
3+ import CofestProject from ' @/components/CofestProject.vue' ;
54
65defineProps <{
76 projects: Project [];
@@ -20,45 +19,7 @@ defineProps<{
2019 No projects found yet — check back soon!
2120 </div >
2221 <div v-else class =" gx-tile-grid not-prose" >
23- <Card v-for =" p in projects " :key =" p .project " class="gx-tile h-full border-galaxy-primary/10 py-0 gap-0">
24- <CardHeader class="pt-4 pb-1">
25- <CardTitle class="m-0 text-galaxy-dark text-base leading-tight">{{ p.project }}</CardTitle >
26- </CardHeader >
27- <CardContent class="flex flex-1 flex-col gap-2.5 pt-1 pb-4">
28- <p v-if =" p.description" class =" text-sm text-galaxy-grey leading-relaxed" >{{ p.description }}</p >
29- <div v-if =" p.lead" class =" text-sm" >
30- <span class =" text-galaxy-grey" >Lead: </span >
31- <span class =" font-semibold text-galaxy-primary" >{{ p.lead }}</span >
32- </div >
33- <div class =" team-section" >
34- <span class =" team-label" >TEAM</span >
35- <div v-if =" p.assignees.length > 0" class =" flex flex-wrap gap-1.5" >
36- <Badge v-for =" name in p .assignees " :key =" name " variant="default" class="text-xs font-normal">
37- {{ name }}
38- </Badge >
39- </div >
40- <p v-else class =" text-xs text-galaxy-primary italic" >✨ Open spot — come join this project!</p >
41- </div >
42- </CardContent >
43- </Card >
22+ <CofestProject v-for =" p in projects " :key =" p .project " :project =" p " />
4423 </div >
4524 </div >
4625</template >
47-
48- <style scoped>
49- .team-section {
50- margin-top : auto ;
51- padding-top : 0.45rem ;
52- border-top : 1px solid color-mix(in srgb , var (--color-galaxy-primary , #25537b ) 12% , transparent );
53- display : flex ;
54- flex-direction : column ;
55- gap : 0.35rem ;
56- }
57-
58- .team-label {
59- font-size : 0.7rem ;
60- font-weight : 700 ;
61- letter-spacing : 0.08em ;
62- color : var (--color-galaxy-grey , #6b7280 );
63- }
64- </style >
0 commit comments