import type { Metadata } from "next";

import favicon from "@/public/assets/Logo_Pin_-_with_no_background.ico";
import Navbar from "@/components/navigation/Navbar";
import Footer from "@/components/Footer";
import ToastProvider from "@/components/providers/ToastProvider";

import "./globals.css";

export const metadata: Metadata = {
  title: "Lan Codes",
  description: "Lan Codes",
  icons: {
    icon: favicon.src,
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body className="bg-[var(--color-1)] min-h-screen flex flex-col overflow-x-hidden">
        <Navbar />
        <main className="flex-1">{children}</main>
        <Footer />
        <ToastProvider />
      </body>
    </html>
  );
}
