/* eslint-disable */
// Unicraft — root app.
// Composes all 13 sections. Wires a tiny Tweaks panel to explore alt accent
// (acid-yellow vs olive) and hero-photo tone.
const { useEffect } = React;
const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
"accent": "#FDFE78",
"heroTone": "raking",
"showCue": true,
"logoAnim": "settle"
}/*EDITMODE-END*/;
function App() {
const [t, setTweak] = useTweaks(TWEAK_DEFAULTS);
// Apply accent color across the system by overriding --color-acid-yellow.
useEffect(() => {
document.documentElement.style.setProperty('--color-acid-yellow', t.accent);
}, [t.accent]);
// Pass heroTone down via context override. Simple approach: pass directly.
// Hero reads window.__ucHeroTone for now to avoid prop-drilling through children.
useEffect(() => {
window.__ucHeroTone = t.heroTone;
window.dispatchEvent(new Event('uc-tweak'));
}, [t.heroTone]);
return (
<>
setTweak('accent', v)}
/>
setTweak('logoAnim', v)}
/>
setTweak('heroTone', v)}
/>
setTweak('showCue', v)}
/>
>
);
}
ReactDOM.createRoot(document.getElementById('root')).render();