import React from 'react'; interface OGImageTemplateProps { title: string; description?: string; label?: string; image?: string; mode?: 'dark' | 'light' | 'image'; } export function OGImageTemplate({ title, description, label, image, mode = 'dark', }: OGImageTemplateProps) { const primaryBlue = '#001a4d'; const accentGreen = '#82ed20'; const saturatedBlue = '#011dff'; const containerStyle: React.CSSProperties = { height: '100%', width: '100%', display: 'flex', flexDirection: 'column', alignItems: 'flex-start', justifyContent: 'center', backgroundColor: mode === 'light' ? '#ffffff' : primaryBlue, padding: '80px', position: 'relative', fontFamily: 'Inter', }; return (
{/* Background Image with Overlay */} {image && (
)} {/* Decorative Brand Accent (Top Right) */}
{/* Label / Category */} {label && (
{label}
)} {/* Title */}
40 ? '64px' : '82px', fontWeight: 700, color: 'white', lineHeight: '1.05', maxWidth: '950px', marginBottom: '40px', display: 'flex', letterSpacing: '-0.02em', }} > {title}
{/* Description */} {description && (
{description.length > 160 ? description.substring(0, 157) + '...' : description}
)}
{/* Brand Footer */}
KLZ Cables
{/* Saturated Blue Brand Strip */}
); }