// App for "III. Reino dos Humanos" const REINO_TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{ "palette": "Selo", "typography": "Heráldico", "atmosphere": 1, "grain": true }/*EDITMODE-END*/; const REINO_PALETTE_MAP = { "Forja": "forja", "Selo": "selo" }; const REINO_TYPO_MAP = { "Heráldico": "heraldico", "Editorial": "editorial" }; function ReinoApp() { const [t, setTweak] = window.useTweaks(REINO_TWEAK_DEFAULTS); React.useEffect(() => { document.documentElement.setAttribute("data-palette", REINO_PALETTE_MAP[t.palette] || "forja"); document.documentElement.setAttribute("data-typography", REINO_TYPO_MAP[t.typography] || "heraldico"); }, [t.palette, t.typography]); window.useReveal(); return ( <> {t.grain &&
} {window.REGIONS.map((r, i) => ( ))} setTweak("palette", v)} /> setTweak("typography", v)} /> setTweak("atmosphere", v)} /> setTweak("grain", v)} /> ); } ReactDOM.createRoot(document.getElementById("root")).render();