diff --git a/src/web/components/tags-list.astro b/src/web/components/tags-list.astro index 3875db8..1a6227d 100644 --- a/src/web/components/tags-list.astro +++ b/src/web/components/tags-list.astro @@ -2,11 +2,28 @@ import type { TagsList } from '@/types/shared'; import Tag from './tag.astro'; -export interface Props extends Omit {} +export interface Props extends Omit { + title?: TagsList['title']; +} -const { tags } = Astro.props; +const { tags, title } = Astro.props; --- -
- {tags.map((tag) => )} -
+{ + title ? ( +
+
{title}:
+
+ {tags.map((tag) => ( + + ))} +
+
+ ) : ( +
+ {tags.map((tag) => ( + + ))} +
+ ) +} diff --git a/src/web/components/thumbnail.astro b/src/web/components/thumbnail.astro index 6d4299c..72bee7f 100644 --- a/src/web/components/thumbnail.astro +++ b/src/web/components/thumbnail.astro @@ -5,9 +5,25 @@ import type { Photo as PhotoType } from '@/types/shared'; interface Props { src?: PhotoType; alt: string; + size: 'large' | 'small'; } -const { src, alt } = Astro.props; +const { src, alt, size } = Astro.props; + +const sizeToClass = /* tw */ { + large: 'h-18 w-18', + small: 'h-12 w-12', +}; --- -{src &&