{hasImage ? (
<>
>
) : null}
{/* Eyebrow */}
Collection
{/* Title — the centrepiece */}
48 ? 60 : 76,
fontWeight: 700,
color: textPrimary,
lineHeight: 1.15,
marginTop: 24,
maxHeight: 320,
overflow: "hidden",
zIndex: 1,
}}
>
{title}
{description ? (
{description}
) : null}
{/* Footer: count + branding */}
{count}
prabhupadasays.org
),
{
width: 1200,
height: 630,
fonts: [
{
name: "Noto Sans",
data: fonts.regular,
style: "normal" as const,
weight: 400,
},
{
name: "Noto Sans",
data: fonts.bold,
style: "normal" as const,
weight: 700,
},
],
},
);
} catch (e) {
console.error("Collection OG image generation failed:", e);
return new Response("Failed to generate OG image", { status: 500 });
}
}