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: 'Good Vibes Coffee | Your Daily Dose of Joy',
  description: 'Discover a charming Moroccan-inspired coffee shop offering exquisite coffee, vibrant matcha, and delightful treats. Experience good vibes and great prices in a cozy alley setting.',
  keywords: ["coffee shop, matcha, tea, Moroccan style, cafe, food, drinks, charming, cozy, unique"],
  openGraph: {
    "title": "Good Vibes Coffee | Your Daily Dose of Joy",
    "description": "Discover a charming Moroccan-inspired coffee shop offering exquisite coffee, vibrant matcha, and delightful treats.",
    "url": "https://www.goodvibescoffee.com",
    "siteName": "Good Vibes Coffee",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/bowl-french-dessert-garnished-with-berries-placed-book_140725-8511.jpg",
        "alt": "Moroccan-inspired coffee shop interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Good Vibes Coffee | Your Daily Dose of Joy",
    "description": "Discover a charming Moroccan-inspired coffee shop offering exquisite coffee, vibrant matcha, and delightful treats.",
    "images": [
      "http://img.b2bpic.net/free-photo/bowl-french-dessert-garnished-with-berries-placed-book_140725-8511.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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>
  );
}
