// site-app.jsx — full-bleed Crystal Clear site with Tweaks (brand + theme). const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{ "brand": "Farah Window Cleaning", "theme": "sky" }/*EDITMODE-END*/; function SiteApp() { const [t, setTweak] = useTweaks(TWEAK_DEFAULTS); const brand = t.brand || 'Farah Window Cleaning'; const theme = THEMES[t.theme] || THEMES.sky; const themeOptions = Object.entries(THEMES).map(([k, v]) => [v.primary, v.primaryDeep, v.primarySoft]); const themeKeys = Object.keys(THEMES); return ( <> setTweak('brand', v)} /> { const idx = themeOptions.findIndex(p => p[0] === palette[0]); if (idx >= 0) setTweak('theme', themeKeys[idx]); }} />
{THEMES[t.theme]?.label || 'Sky'}
); } const siteRoot = ReactDOM.createRoot(document.getElementById('root')); siteRoot.render();