import "@/style/globals.css";
import ReduxProvider from "@/redux/provider";

import { Inter, Manrope, Bricolage_Grotesque, Poppins } from "next/font/google";

import Provider from "./provider";
import NavBar from "@/components/shared/NavBar";

const inter = Inter({
  subsets: ["latin"],
  variable: "--font-inter",
  display: "swap",
});

const manrope = Manrope({
  subsets: ["latin"],
  variable: "--font-manrope",
  display: "swap",
});
const poppins = Poppins({
  subsets: ["latin"],
  weight: ["400", "500", "600", "700"], // required for Poppins
  variable: "--font-poppins",
  display: "swap",
});

const bricolage = Bricolage_Grotesque({
  subsets: ["latin"],
  variable: "--font-bricolage",
  display: "swap",
});
export const metadata = {
  title: "Weebard | Express Yourself with Digital Profile",
  description:
    "Weebard is the world’s first website experience platform—empowering both rising and seasoned professionals to create, manage, and optimize digital profiles that truly represent who they are.",
  metadataBase: new URL("https://web.weebard.com"),
  icons: {
    icon: [
      { url: "/favicon/favicon-16x16.png", sizes: "16x16", type: "image/png" },
      { url: "/favicon/favicon-32x32.png", sizes: "32x32", type: "image/png" },
      { url: "/favicon/favicon.ico" }, // fallback
    ],
    apple: "/favicon/apple-touch-icon.png",
  },
  openGraph: {
    title: "Weebard | Express Yourself with Digital Profile",
    description:
      "Weebard is the world’s first website experience platform—empowering both rising and seasoned professionals to create, manage, and optimize digital profiles that truly represent who they are.",
    url: "https://web.weebard.com",
    siteName: "Weebard",
    images: [
      {
        url: "/logo/logo.png",
        width: 1200,
        height: 630,
        alt: "Weebard - World's First Website Experience Platform",
      },
    ],
    locale: "en_US",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Weebard | Express Yourself with Digital Profile",
    description:
      "Weebard is the world’s first website experience platform—empowering both rising and seasoned professionals to create, manage, and optimize digital profiles that truly represent who they are.",
    images: ["/logo/logo.png"],
  },
  robots: {
    index: true,
    follow: true,
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body
        className={`${inter.variable} ${manrope.variable} ${bricolage.variable} ${poppins.variable} antialiased`}
      >
        <ReduxProvider>
          <Provider>{children}</Provider>
        </ReduxProvider>
      </body>
    </html>
  );
}
