// Diferencial.jsx — before/after animated bars
const { useRef: useDifRef, useEffect: useDifEff, useState: useDifState } = React;
const METRICS = [
{ label: 'Constância', before: 15, after: 92 },
{ label: 'Resultado duradouro', before: 10, after: 88 },
{ label: 'Bem-estar emocional', before: 20, after: 90 },
{ label: 'Autoestima', before: 25, after: 94 },
];
function BarRow({ label, value, type, animate }) {
return (
);
}
function Diferencial() {
const ref = useDifRef();
const [animated, setAnimated] = useDifState(false);
useReveal(ref);
useDifEff(() => {
const el = ref.current;
if (!el) return;
const obs = new IntersectionObserver(([e]) => {
if (e.isIntersecting) { setAnimated(true); obs.disconnect(); }
}, { threshold: 0.25 });
obs.observe(el);
return () => obs.disconnect();
}, []);
return (
Diferencial operacional
A diferença que o método faz — em números
Sem método, o esforço não se converte em resultado duradouro. Com o método Conectadas, cada dimensão evolui de forma mensurável.
{/* Before */}
Antes — sem método
{METRICS.map((m, i) => (
))}
{/* After */}
Depois — Conectadas Fitness
{METRICS.map((m, i) => (
))}
);
}
Object.assign(window, { Diferencial });