kx3dex_radio/app/layout.tsx

54 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-04-11 02:40:31 +00:00
import "./globals.css";
2024-03-24 06:08:52 +00:00
import type { Metadata } from "next";
import Image from 'next/image'
import { Inter } from "next/font/google";
import { ThemeProvider } from "./components/theme-provider";
2024-04-11 02:40:31 +00:00
import Header from '@/components/header'
import HeaderMobile from '@/components/header-mobile'
import Footer from "@/components/footer";
import MarginWidthWrapper from '@/components/margin-width-wrapper';
import PageWrapper from '@/components/page-wrapper';
2024-03-24 06:08:52 +00:00
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "KX3DEX Radio",
description: "A site with a blog and various radio projects",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className="relative">
<ThemeProvider
attribute="class"
defaultTheme="dark"
enableSystem
disableTransitionOnChange
>
<div>
<Image
src="/images/tech-bg.jpg"
alt="Black & White circuit board with Vacuum tubes"
className="absolute left-0 top-0 -z-10 opacity-10 bg-cover min-h-screen"
fill
style={{ position: 'absolute' }}
/>
2024-04-11 02:40:31 +00:00
<main className="max-w-5xl mx-auto px-4 z-10">
<Header />
<HeaderMobile />
{children}
<Footer />
</main>
2024-03-24 06:08:52 +00:00
</div>
</ThemeProvider>
</body>
</html>
);
}