diff --git a/frontend/src/components/Layout.jsx b/frontend/src/components/Layout.jsx index 34d668a..7fb7c2e 100644 --- a/frontend/src/components/Layout.jsx +++ b/frontend/src/components/Layout.jsx @@ -206,12 +206,15 @@ function HomeLinkButton() { } export default function Layout() { + const location = useLocation() const [fullscreen, setFullscreen] = useState(false) const [loginOpen, setLoginOpen] = useState(false) const isAdmin = !!useMatch('/admin/*') const homeTo = isAdmin ? '/admin' : '/' const theme = useThemeStore((s) => s.theme) + const isHome = location.pathname === '/' + useEffect(() => { const root = document.documentElement if (theme === 'light') root.setAttribute('data-theme', 'light') @@ -256,7 +259,7 @@ export default function Layout() { }`}> - {!fullscreen &&