diff --git a/client/pages/Index.tsx b/client/pages/Index.tsx index 1f434e57..5d00e5ef 100644 --- a/client/pages/Index.tsx +++ b/client/pages/Index.tsx @@ -242,6 +242,17 @@ export default function Index() { }, ]; + const [homeBanner, setHomeBanner] = useState<{ text: string; enabled?: boolean; style?: string } | null>(null); + + useEffect(() => { + fetch("/api/site-settings?key=home_banner") + .then((r) => (r.ok ? r.json() : null)) + .then((v) => { + if (v && typeof v === "object") setHomeBanner(v as any); + }) + .catch(() => void 0); + }, []); + if (isLoading) { return (