Generador Newsletter | PKF Cabrera
`; const blob = new Blob([html], { type: 'text/html' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = `Newsletter_PKF_${config.date.replace(/\//g,'-')}.html`; a.click(); };return (
{/* --- HEADER FIJO --- */}
PKF Cabrera | Newsletter Generator
{/* --- CONFIGURACIÓN --- */} {isConfigOpen && (
{activeTab === 'config' && (

General

Contenido Principal

Detalles

setConfig({...config, mainImage: e.target.value})} className="w-full bg-slate-900 border border-slate-600 rounded p-2 text-xs text-white mb-2 focus:border-blue-500"/>
)} {activeTab === 'columnists' && (

Gestión de Firmas

{columnists.map((col) => { const isPredefined = PREDEFINED_COLUMNISTS.some(p => p.name === col.name); return (
{col.image ? ( {e.target.style.display='none'; e.target.nextSibling.style.display='flex'}} />) : null}
updateColumnist(col.id, 'name', e.target.value)} className="w-full bg-transparent border-b border-slate-500 focus:border-blue-500 text-sm text-white outline-none pb-1 placeholder-slate-400"/> updateColumnist(col.id, 'role', e.target.value)} className="w-full bg-transparent border-b border-slate-500 focus:border-blue-500 text-xs text-slate-300 outline-none pb-1 placeholder-slate-400"/>
); })}
)}
)}{/* --- VISTA PREVIA --- */}
{/* Brand Strip */}
{/* Header (Responsive Padding: px-4 en móvil, px-8 en md) */}
PKF Logo
{config.department}
{config.date}
{/* Main Content (Responsive Padding y Text Sizes) */}
{config.mainImage && (
Main
)}

{config.title}

{config.subtitle && (

{config.subtitle}

)}
{/* MANEJO MANUAL DE ESTILOS DE CUERPO */}
{/* Footer */}

Análisis realizado por

{/* Responsive Grid: 1 col en móvil, 2 en md */}
1 ? 'md:grid-cols-2' : 'max-w-md mx-auto'}`}> {columnists.map((col) => (
{col.image ? ({col.name} {e.target.style.display='none'; e.target.nextSibling.style.display='flex'}} />) : null}

{col.name}

{col.role}

))}

PKF Cabrera Internacional S.A. BIC

Esta información es de carácter general y no sustituye el asesoramiento profesional. PKF Cabrera es miembro de PKF Global.

); };const root = ReactDOM.createRoot(document.getElementById('root')); root.render();