Allow filtering of projects
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 15m24s

This commit is contained in:
2025-08-25 11:18:39 +09:30
parent 025914083c
commit 982589927f
2 changed files with 80 additions and 4 deletions

View File

@@ -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)}/`;
---
<div class="grid grid-cols-1 text-left md:grid-cols-2">
<div
class:list={["grid grid-cols-1 text-left md:grid-cols-2", className]}
{...attrs}
>
<div
class:list={[
"order-1 flex flex-col items-start justify-center py-4",