silverwolf-x's picture
download
raw
617 Bytes
import cn from "classnames";
import Image from "next/image";
import Link from "next/link";
export default function CoverImage({ title, coverImage, slug }) {
const image = (
<Image
width={2000}
height={1000}
alt={`Cover Image for ${title}`}
src={coverImage?.sourceUrl}
className={cn("shadow-small", {
"hover:shadow-medium transition-shadow duration-200": slug,
})}
/>
);
return (
<div className="sm:mx-0">
{slug ? (
<Link href={slug} aria-label={title}>
{image}
</Link>
) : (
image
)}
</div>
);
}

Xet Storage Details

Size:
617 Bytes
·
Xet hash:
3010313fd184de4bfab14e2e9a62ecc431e4ff3ebd58891d5c5338dd462d6a8b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.