/* === Hero === */
const VerificationCard = () => {
const [phase, setPhase] = React.useState('searching');
const [variantState, setVariantState] = React.useState(0);
const cases = [
{
type: 'verified',
name: 'Mariana Costa Rezende',
oab: 'OAB/SP 248.917',
area: 'Direito Civil · Família',
since: '2014',
initials: 'MR',
},
{
type: 'alert',
reasons: ['Número não cadastrado por nenhum advogado', 'Padrão de mensagem associado a fraudes', '12 denúncias nos últimos 30 dias'],
}
];
React.useEffect(() => {
let alive = true;
const cycle = async () => {
while (alive) {
setPhase('searching');
await new Promise(r => setTimeout(r, 1400));
if (!alive) return;
setPhase('result');
await new Promise(r => setTimeout(r, 4500));
if (!alive) return;
setVariantState(v => (v + 1) % 2);
}
};
cycle();
return () => { alive = false; };
}, []);
const current = cases[variantState];
return (
VERIFICAR CONTATO
{variantState === 0 ? 'OAB/SP 248917' : '+55 11 91234-5678'}
{phase === 'searching' && (
)}
{phase === 'searching' && (
CONSULTANDO BASES OFICIAIS
{['Conselho Federal da OAB', 'ICP-Brasil', 'Sistema antifraude JurisID'].map((s, i) => (
))}
)}
{phase === 'result' && current.type === 'verified' && (
IDENTIDADE VERIFICADA
Dra. {current.name}
{current.oab}
{current.area} · Em atividade desde {current.since}
CANAIS OFICIAIS VALIDADOS
+55 11 98765-4321
mariana@rezende.adv.br
)}
{phase === 'result' && current.type === 'alert' && (
ALERTA DE FRAUDE
Contato suspeito detectado
Este número não está vinculado a nenhum advogado verificado e foi sinalizado pelo nosso sistema antifraude.
MOTIVOS
{cases[1].reasons.map((r, i) => (
{r}
))}
)}
);
};
const Hero = ({ tweaks }) => {
const headlines = {
trust: { eyebrow: 'IDENTIDADE VERIFICADA · ICP-BRASIL', title: ['A camada de confiança', 'da advocacia digital'], sub: 'Confirme a identidade do seu advogado em segundos. Bloqueie golpistas antes que eles falem com seu cliente.' },
alarm: { eyebrow: 'ALERTA · GOLPES JURÍDICOS +340%', title: ['Não caia no golpe', 'do falso advogado.'], sub: 'Em 2024, brasileiros perderam mais de R$ 3 bilhões para advogados falsos. O JurisID verifica em segundos se o contato é real.' },
direct: { eyebrow: 'VERIFICAÇÃO INSTANTÂNEA', title: ['Identidade segura', 'para advogados.'], sub: 'A primeira plataforma com integração ICP-Brasil + OAB. Verifique em segundos. Cadastre-se e proteja sua reputação.' },
};
const h = headlines[tweaks.headline] || headlines.trust;
return (
{h.eyebrow}
{h.title[0]}
{h.title[1]}
{h.sub}
{[
{ n: '2,5 Mi', l: 'Brasileiros vítimas em 2024', c: 'oklch(0.72 0.16 32)' },
{ n: '+340%', l: 'Crescimento dos golpes em 3 anos', c: 'oklch(0.80 0.13 78)' },
{ n: '< 2s', l: 'Para verificar uma identidade', c: 'oklch(0.68 0.16 155)' },
].map(s => (
))}
);
};
window.Hero = Hero;