/* Tweaks for Varolo landing page */ const { useEffect } = React; function VaroloTweaks() { const [t, setTweak] = useTweaks(window.TWEAK_DEFAULTS); // Sync body attributes so CSS responds useEffect(() => { document.body.dataset.accent = t.accent; document.body.dataset.hero = t.heroLayout; document.body.dataset.tone = t.portraitTone; document.body.dataset.stats = String(t.showStats); document.body.dataset.office = String(t.showOfficeImage); }, [t]); return ( setTweak('accent', v)} options={[ { value: 'gold', label: 'Dourado' }, { value: 'copper', label: 'Cobre' }, { value: 'platinum', label: 'Platina' }, ]} /> setTweak('heroLayout', v)} options={[ { value: 'split', label: 'Dividido' }, { value: 'reversed', label: 'Invertido'}, { value: 'centered', label: 'Centrado' }, ]} /> setTweak('portraitTone', v)} options={[ { value: 'warm', label: 'Quente' }, { value: 'cool', label: 'Frio' }, { value: 'mono', label: 'P&B' }, ]} /> setTweak('showStats', v)} /> setTweak('showOfficeImage', v)} /> ); } const root = ReactDOM.createRoot(document.getElementById('tweaks-root')); root.render();