import "@/styles/globals.css";
import { Metadata } from "next";
import { siteConfig } from "@/config/site";
import { fontSans } from "@/config/fonts";
import { Providers } from "./providers";
import { Navbar } from "@/components/navbar";
import { Link } from "@nextui-org/link";
import clsx from "clsx";
import Image from "next/image";

export const metadata: Metadata = {
	title: {
		default: siteConfig.name,
		template: `%s - ${siteConfig.name}`,
	},
	description: siteConfig.description,
	themeColor: [
		{ media: "(prefers-color-scheme: light)", color: "white" },
		{ media: "(prefers-color-scheme: dark)", color: "black" },
	],
	icons: {
		icon: "/favicon.ico",
		shortcut: "/favicon-16x16.png",
		apple: "/apple-touch-icon.png",
	},
};

export default function RootLayout({
	children,
}: {
	children: React.ReactNode;
}) {
	return (
		<html lang="en" suppressHydrationWarning>
			<head />
			<body
				className={clsx(
					"min-h-screen bg-background font-sans antialiased",
					fontSans.variable
				)}
			>
				<Providers themeProps={{ attribute: "class", defaultTheme: "light" }}>
					<div className=" ">
						<Navbar />
						<main className=" w-screen pt-2  flex-grow">
							{children}
						</main>
						<footer className="w-full flex items-center text-white  justify-center space-x-9 font-semibold text-sm py-3 bg-[#1A328E] h-24">
							<p>FAQ</p>
							<p>ABOUT</p>
							<p>TERM AND CONDITION</p>
							<p>

								<Image
									src="/paslon01.png"
									alt="logo"
									width={100}
									height={120}
								/>
							</p>
							<p>PRIVACY POLICY</p>
							<p>CONTACT US</p>
							<p>LAPOR KAMPANYE</p>
						</footer>
					</div>
				</Providers>
			</body>
		</html>
	);
}
