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 { Nunito } from "next/font/google";



export const metadata: Metadata = {
  title: 'Homemade Moroccan Cakes & Patisseries | Authentic Treats',
  description: 'Experience authentic Moroccan homemade cakes, biscuits, bread, and pastries. Crafted with love and traditional recipes for a taste of Morocco.',
  keywords: ["Moroccan cakes, homemade pastries, Moroccan biscuits, traditional bread, patisseries, Moroccan sweets, artisan baking"],
  openGraph: {
    "title": "Homemade Moroccan Cakes & Patisseries | Authentic Treats",
    "description": "Experience authentic Moroccan homemade cakes, biscuits, bread, and pastries. Crafted with love and traditional recipes for a taste of Morocco.",
    "url": "https://homemadecakes.org",
    "siteName": "Homemade Moroccan Cakes",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/eastern-sweets-assorted-traditional-turkish-delight-with-nuts_114579-20606.jpg",
        "alt": "Assortment of Moroccan pastries"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Homemade Moroccan Cakes & Patisseries | Authentic Treats",
    "description": "Experience authentic Moroccan homemade cakes, biscuits, bread, and pastries. Crafted with love and traditional recipes for a taste of Morocco.",
    "images": [
      "http://img.b2bpic.net/free-photo/eastern-sweets-assorted-traditional-turkish-delight-with-nuts_114579-20606.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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