/* CodeSection.jsx — editor window demonstrating modern AI-assisted dev */ const CodeSection = () => { // token colors const c = { kw: '#3D8BFF', fn: '#00D4FF', str: '#1FD17B', com: '#6B7591', punc: '#A7B0C5', txt: '#C9D3E8', num: '#FFB020' }; const T = ({ k, children }) => {children}; const tabs = ['agente.ts', 'fluxo.n8n.json', 'supabase.sql']; const [tab, setTab] = React.useState(0); const badges = ['Claude Code', 'Codex', 'GPT', 'Git / GitHub', 'n8n', 'Supabase', 'APIs', 'Integrações']; return (
{/* Editor */}
{/* title bar */}
AR · workspace — agente-atendimento IA assistindo
{/* tabs */}
{tabs.map((tb, i) => ( ))}
{/* code body */}
{Array.from({ length: 16 }).map((_, i) =>
{i + 1}
)}
{tab === 0 && (
// Agente de atendimento da AR — multicanal
import {'{ '}criarAgente{' }'} from "@ar/core";
import {'{ '}whatsapp, crm{' }'} from "@ar/canais";
 
export const agente = criarAgente({'{'}
{' '}nome: "Atendimento AR",
{' '}modelo: "claude / gpt",
{' '}canais: [whatsapp, crm],
{' '}aoReceber(msg) {'{'}
{' '}const intent = await classificar(msg);
{' '}if (intent.lead) enviarParaCRM(msg);
{' '}return responder(msg, {'{'} contexto: true {'}'});
{' '}{'}'},
{'}'});
 
// → deploy automático via GitHub Actions
)} {tab === 1 && (
{'{'}
{' '}"workflow": "qualificacao-de-leads",
{' '}"trigger": "webhook:whatsapp",
{' '}"nodes": [
{' '}{'{'} "type": "ai.classificar" {'}'},
{' '}{'{'} "type": "supabase.insert" {'}'},
{' '}{'{'} "type": "crm.criarOportunidade" {'}'},
{' '}{'{'} "type": "notificar.equipe" {'}'}
{' '}],
{' '}"agendamento": "realtime",
{' '}"retry": 3,
{' '}"ativo": true
{'}'}
 
 
 
)} {tab === 2 && (
-- Base de leads qualificados (Supabase)
create table leads (
{' '}id uuid primary key default gen_random_uuid(),
{' '}nome text,
{' '}canal text check (canal in ('whatsapp','site')),
{' '}intent text,
{' '}score int default 0,
{' '}criado_em timestamptz default now()
);
 
create index on leads (score desc);
 
 
 
 
)}
{/* terminal footer */}
build ok git push → main deploy · 12s
{/* Copy + badges */}
Soluções digitais com IA, automação e engenharia moderna} sub="Combinamos ferramentas avançadas, boas práticas de desenvolvimento, integrações inteligentes e agentes de IA para criar soluções sob medida para empresas." maxWidth={520} />
{badges.map(b => ( {b} ))}
); }; window.CodeSection = CodeSection;