fix: reenable scroll when navigating back to marketing page

This commit is contained in:
Henry
2025-09-09 12:03:35 +01:00
parent 867aeb3caf
commit a9c9bc2b36

View File

@@ -1,8 +1,10 @@
import PatternedBackground from "~/components/PatternedBackground";
import { useTheme } from "next-themes";
import { authClient } from "@kan/auth/client";
import PatternedBackground from "~/components/PatternedBackground";
import Footer from "./Footer";
import Header from "./Header";
import { authClient } from "@kan/auth/client";
export default function Layout({ children }: { children: React.ReactNode }) {
const { theme } = useTheme();
@@ -18,6 +20,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<style jsx global>{`
html {
scroll-behavior: smooth;
overflow: auto;
background-color: ${!isDarkMode ? "hsl(0deg 0% 97.3%)" : "#161616"};
}
`}</style>