/* Expohive — Tweaks island (hero switcher + brand) */
const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
"hero": "centered",
"accent": ["#fbbf24", "#e0a106", "#fde08a"],
"texture": true,
"radius": "round"
}/*EDITMODE-END*/;
function ExpohiveTweaks(){
const [t, setTweak] = useTweaks(TWEAK_DEFAULTS);
React.useEffect(function(){
const map = { split:'a', centered:'b', navy:'c' };
document.body.setAttribute('data-hero', map[t.hero] || 'a');
const a = Array.isArray(t.accent) ? t.accent : [t.accent, t.accent, t.accent];
const root = document.documentElement;
root.style.setProperty('--amber', a[0]);
root.style.setProperty('--amber-600', a[1] || a[0]);
root.style.setProperty('--amber-300', a[2] || a[0]);
document.body.classList.toggle('no-texture', !t.texture);
document.body.classList.toggle('sharp', t.radius === 'sharp');
}, [t]);
return (
setTweak('hero', v)} />
setTweak('accent', v)} />
setTweak('texture', v)} />
setTweak('radius', v)} />
);
}
ReactDOM.createRoot(document.getElementById('tweaks-root')).render();