mirror of
https://git.aramjonghu.nl/AramJonghu/aramjonghu-site.git
synced 2026-06-07 20:18:23 +02:00
Dark/light mode added + switcher
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import Footer from "./Footer";
|
||||
import Header from "./Header";
|
||||
import { useTheme } from "../hooks/useTheme";
|
||||
|
||||
export default function Layout({ children }) {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<div className="flex flex-col w-screen min-h-screen bg-ctp-base">
|
||||
<Header />
|
||||
<Header theme={theme} />
|
||||
<main className="flex-1">{children}</main>
|
||||
<Footer />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user