import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Montserrat } from "next/font/google";



export const metadata: Metadata = {
  title: 'Cake - Artisanal Bakery for Your Sweetest Cravings',
  description: 'Indulge in handcrafted cakes, cupcakes, and desserts from Cake. Made with love for every occasion. Order now for pure deliciousness!',
  keywords: ["bakery, cake, cupcakes, desserts, artisanal, custom cakes, wedding cakes, birthday cakes, sweet treats, online orders"],
  openGraph: {
    "title": "Cake - Artisanal Bakery for Your Sweetest Cravings",
    "description": "Indulge in handcrafted cakes, cupcakes, and desserts from Cake. Made with love for every occasion. Order now for pure deliciousness!",
    "url": "/",
    "siteName": "Cake Bakery",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/delicious-cake-slice-with-chocolate-sauce_114579-61375.jpg",
        "alt": "Stunning celebration cake"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Cake - Artisanal Bakery for Your Sweetest Cravings",
    "description": "Indulge in handcrafted cakes, cupcakes, and desserts from Cake. Made with love for every occasion. Order now for pure deliciousness!",
    "images": [
      "http://img.b2bpic.net/free-photo/delicious-cake-slice-with-chocolate-sauce_114579-61375.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const montserrat = Montserrat({
  variable: "--font-montserrat",
  subsets: ["latin"]
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${montserrat.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
