diff --git a/src/components/ProjectCard.astro b/src/components/ProjectCard.astro index 8930804..947ed22 100644 --- a/src/components/ProjectCard.astro +++ b/src/components/ProjectCard.astro @@ -14,9 +14,16 @@ interface Props { project: CollectionEntry<"projects">; textOn?: "left" | "right"; quality?: number; + class?: string; } -const { project, textOn = "left", quality = "80" } = Astro.props; +const { + project, + textOn = "left", + quality = "80", + class: className, + ...attrs +} = Astro.props; const images = getAllProjectImages(project); @@ -124,7 +131,10 @@ const projectHasBody = project.body && project.body.trim().length > 0; const link = `/projects/${slugify(project.data.type)}/${slugify(project.data.slug)}/`; --- -