kx3dex_radio/app/layout.tsx

48 lines
1.3 KiB
TypeScript

import type { Metadata } from "next";
import Image from 'next/image'
import React from 'react';
import { Inter } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "./components/theme-provider";
import Header from "@/components/ui/header";
import Footer from "@/components/ui/footer";
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' }}
/>
<Header />
<main className="max-w-5xl mx-auto px-4 z-10">{children}</main>
<Footer />
</div>
</ThemeProvider>
</body>
</html>
);
}