Artists showcase

This commit is contained in:
2024-10-10 23:49:01 -03:00
parent 05b9525c4f
commit da6af3f3c2
2 changed files with 30 additions and 17 deletions

View File

@@ -0,0 +1,25 @@
export default function ArtistShowcase({
images,
name,
id,
}: {
images: { url: string }[];
name: string;
id: string;
}) {
const imageSource = images[0]
? images[0].url
: "https://via.placeholder.com/150";
return (
<div className="mb-2 w-56 overflow-hidden rounded-md border-2 border-slate-700">
<img className="h-56 w-56 object-fill" src={imageSource} alt={name} />
<p
className="w-full truncate break-all border-t-2 border-slate-300 bg-slate-200 p-2 text-center text-sm font-medium text-slate-700"
title={name}
>
{name}
</p>
</div>
);
}