import React from "react"; interface OGImageTemplateProps { title: string; description?: string; label?: string; accentColor?: string; keyword?: string; } export function OGImageTemplate({ title, description, label, accentColor, keyword, }: OGImageTemplateProps) { const accent = accentColor || "#3b82f6"; const slateDark = "#0f172a"; const slateLight = "#64748b"; const containerStyle: React.CSSProperties = { height: "100%", width: "100%", display: "flex", flexDirection: "column", alignItems: "flex-start", justifyContent: "center", backgroundColor: "#ffffff", padding: "80px", position: "relative", fontFamily: "Inter", }; return (
{/* Background Grid Pattern */}
{/* Accent geometric block (right side) */}
{/* Small accent circles */}
{/* Label / Category */} {label && (
{label}
)} {/* Title */}
40 ? "56px" : "72px", fontWeight: 700, color: slateDark, lineHeight: "1.1", marginBottom: "28px", display: "flex", letterSpacing: "-0.03em", }} > {title}
{/* Description */} {description && (
{description.length > 120 ? description.substring(0, 117) + "..." : description}
)}
{/* Brand Footer */}
mintel.me
{/* Keyword badge (bottom-right) */} {keyword && (
{keyword}
)} {/* Accent Strip */}
); }