// App entry for the "Livros / Biblioteca" page const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{ "atmosphere": 0.5, "grain": true, "dropcap": true, "wideSpread": true }/*EDITMODE-END*/; function BibliotecaApp() { const [t, setTweak] = window.useTweaks(TWEAK_DEFAULTS); React.useEffect(() => { document.documentElement.setAttribute("data-dropcap", t.dropcap ? "on" : "off"); document.documentElement.setAttribute("data-wide-spread", t.wideSpread ? "on" : "off"); }, [t.dropcap, t.wideSpread]); window.useReveal(); return ( <> {t.grain &&
} setTweak("dropcap", v)} /> setTweak("wideSpread", v)} /> setTweak("atmosphere", v)} /> setTweak("grain", v)} /> ); } ReactDOM.createRoot(document.getElementById("root")).render();