diff --git a/src/components/AlbumBox.astro b/src/components/AlbumBox.astro new file mode 100644 index 0000000..d305d74 --- /dev/null +++ b/src/components/AlbumBox.astro @@ -0,0 +1,44 @@ +--- +import { Image } from 'astro:assets' + +type Props = + | { title: string; href: string; image: string; loading?: false } + | { title?: string; href?: string; image?: string; loading: true } + +const { props } = Astro +const { title, href, image, loading = false } = props +--- + + + { + loading ? ( +
+
+
+ ) : ( + {`${title} + ) + } + + { + loading ? ( +
+