Spaces:
Running
Running
File size: 1,071 Bytes
63c7991 9d1a465 63c7991 9d1a465 63c7991 9d1a465 63c7991 9d1a465 63c7991 9d1a465 63c7991 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
import Image from "next/image";
import bgImg from "@/public/halo.png";
import Footer from "@/components/Footer";
import Header from "@/components/Header";
import ThemeToggle from "@/components/ThemeToggle";
export default function Layout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<body className="bg-brand dark:bg-dark antialiased dark:text-gray-100">
<div className="absolute inset-0 dark:bg-dark-radial" />
<div className="absolute inset-x-0 flex justify-center">
<Image
src={bgImg}
alt=""
className="w-full max-w-[1200px] mix-blend-screen dark:mix-blend-plus-lighter dark:opacity-10"
priority
/>
</div>
<div className="isolate relative">
<div className="mx-auto flex min-h-screen max-w-7xl flex-col items-center justify-center py-2">
<div className="fixed right-4 top-4 z-50">
<ThemeToggle />
</div>
<Header />
{children}
<Footer />
</div>
</div>
</body>
);
}
|