// BrandMark — logo with purple/blue gradient "A"
const BrandMark = ({ size = 32, withText = true, textSize = 18 }) => {
return (
);
};
// TerminalWidget — the signature brand element
const TerminalWidget = ({ style = {}, lines, title = 'automatiza@producao ~ status' }) => {
const defaultLines = [
{ type: 'cmd', text: 'automatiza --healthcheck' },
{ type: 'ok', label: 'crm', text: '247 leads ativos' },
{ type: 'ok', label: 'financeiro', text: 'fluxo de caixa +12,4%' },
{ type: 'ok', label: 'rh/folha', text: 'CLT 2026 · 18 colaboradores' },
{ type: 'ok', label: 'pdv', text: 'NFC-e emitida · PIX online' },
{ type: 'ok', label: 'ia', text: 'Claude · lead scoring on' },
{ type: 'prompt', text: '' },
];
const ls = lines || defaultLines;
return (
);
};
const TerminalLine = ({ line }) => {
if (line.type === 'cmd') {
return (
$
{line.text}
);
}
if (line.type === 'ok') {
return (
✓
{line.label}
{line.text}
);
}
if (line.type === 'warn') {
return (
⚠
{line.label}
{line.text}
);
}
if (line.type === 'prompt') {
return (
$
);
}
return {line.text}
;
};
// Cursor blink animation
const _style = document.createElement('style');
_style.textContent = `@keyframes blink { 50% { opacity: 0; } }`;
document.head.appendChild(_style);
Object.assign(window, { BrandMark, TerminalWidget, TerminalLine });