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: 'JP Kellys | Neighborhood Tavern & Gathering Place',
  description: 'Welcome home to JP Kellys. Enjoy great food, strong drinks, and friendly faces at your local neighborhood tavern, serving the community for generations.',
  openGraph: {
    "title": "JP Kellys | Neighborhood Tavern & Gathering Place",
    "description": "Welcome home to JP Kellys. Enjoy great food, strong drinks, and friendly faces at your local neighborhood tavern, serving the community for generations.",
    "url": "https://www.jpkellys.com",
    "siteName": "JP Kellys",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/senior-man-laughing-restaurant_23-2149316808.jpg",
        "alt": "Cozy tavern interior at JP Kellys"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "JP Kellys | Neighborhood Tavern & Gathering Place",
    "description": "Welcome home to JP Kellys. Enjoy great food, strong drinks, and friendly faces at your local neighborhood tavern, serving the community for generations.",
    "images": [
      "http://img.b2bpic.net/free-photo/senior-man-laughing-restaurant_23-2149316808.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>
  );
}
