import type { Metadata } from "next";
import { Bebas_Neue, Manrope } from "next/font/google";
import "./globals.css";
import { shouldNoIndex, siteUrl } from "@/lib/site";

const display = Bebas_Neue({
  weight: "400",
  subsets: ["latin", "latin-ext"],
  variable: "--font-display",
});

const body = Manrope({
  subsets: ["latin", "latin-ext"],
  variable: "--font-body",
});

export const metadata: Metadata = {
  metadataBase: new URL(siteUrl()),
  title: {
    default: "Fit for Life | Trening centar Rijeka",
    template: "%s | Fit for Life",
  },
  description:
    "Fit for Life trening centar specijaliziran je za programe individualnih i grupnih treninga.",
  robots: shouldNoIndex()
    ? { index: false, follow: false }
    : { index: true, follow: true },
  icons: { icon: "/favicon.png" },
};

export default function RootLayout({
  children,
}: Readonly<{ children: React.ReactNode }>) {
  return (
    <html lang="hr">
      <body className={`${display.variable} ${body.variable} antialiased`}>
        {children}
      </body>
    </html>
  );
}
