From d41eff9eccf66644c4c60f53cb516bf079937a28 Mon Sep 17 00:00:00 2001 From: aman333nolawz Date: Mon, 2 Mar 2026 21:49:13 +0530 Subject: Using astro-erudite for static site generation --- src/components/ProjectCard.astro | 70 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 src/components/ProjectCard.astro (limited to 'src/components/ProjectCard.astro') diff --git a/src/components/ProjectCard.astro b/src/components/ProjectCard.astro new file mode 100644 index 0000000..03449a7 --- /dev/null +++ b/src/components/ProjectCard.astro @@ -0,0 +1,70 @@ +--- +import Link from '@/components/Link.astro' +import { Badge } from '@/components/ui/badge' +import { formatDate } from '@/lib/utils' +import { Icon } from 'astro-icon/components' +import { Image } from 'astro:assets' +import type { CollectionEntry } from 'astro:content' + +interface Props { + project: CollectionEntry<'projects'> +} + +const { project } = Astro.props +--- + +
+ + { + project.data.image && ( +
+ {project.data.name} +
+ ) + } +
+

+ {project.data.name} +

+

+ {project.data.description} +

+ { + project.data.startDate && ( +

+ + + + {formatDate(project.data.startDate)} + {project.data.endDate + ? ` → ${formatDate(project.data.endDate)}` + : ' → Present'} + + +

+ ) + } + { + project.data.tags && ( +
+ {project.data.tags.map((tag: string) => ( + {tag} + ))} +
+ ) + } +
+ +
-- cgit v1.2.3