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



export const metadata: Metadata = {
  title: 'The Daily Grind - Handcrafted Coffee & Cozy Ambiance',
  description: 'Experience the best handcrafted coffee, delicious pastries, and warm community at The Daily Grind. Your perfect spot for a daily ritual or a relaxing break.',
  openGraph: {
    "title": "The Daily Grind - Handcrafted Coffee & Cozy Ambiance",
    "description": "Experience the best handcrafted coffee, delicious pastries, and warm community at The Daily Grind. Your perfect spot for a daily ritual or a relaxing break.",
    "url": "/",
    "siteName": "The Daily Grind",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/close-up-young-adult-enjoying-warm-drink_23-2149134379.jpg",
        "alt": "A cup of coffee with latte art"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "The Daily Grind - Handcrafted Coffee & Cozy Ambiance",
    "description": "Experience the best handcrafted coffee, delicious pastries, and warm community at The Daily Grind. Your perfect spot for a daily ritual or a relaxing break.",
    "images": [
      "http://img.b2bpic.net/free-photo/close-up-young-adult-enjoying-warm-drink_23-2149134379.jpg"
    ]
  },
};

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

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