export interface EmailLayoutOptions {
previewText: string;
title: string;
bodyContent: string;
ctaText?: string;
ctaUrl?: string;
footerNote?: string;
}
const BRAND_COLORS = {
bgPrimary: '#0a0f1e',
bgCard: '#1a2332',
textPrimary: '#f1f5f9',
textSecondary: '#94a3b8',
textMuted: '#64748b',
accentPrimary: '#3b82f6',
accentSecondary: '#06b6d4',
borderColor: '#1e293b',
};
export function buildEmailHtml(opts: EmailLayoutOptions): string {
const ctaBlock = opts.ctaText && opts.ctaUrl
? `
|
|
`
: '';
const noteBlock = opts.footerNote
? `| ${opts.footerNote} |
`
: '';
return `
${opts.title}
${opts.previewText}
`;
}