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: 'YouTube for Beginners Guide | Launch & Grow Your Channel',
  description: 'Learn to create, strategize, and grow your YouTube channel with our step-by-step guide for first-time creators, small businesses, and educators. Demystify YouTube and build your online presence.',
  openGraph: {
    "title": "YouTube for Beginners Guide | Launch & Grow Your Channel",
    "description": "Learn to create, strategize, and grow your YouTube channel with our step-by-step guide for first-time creators, small businesses, and educators. Demystify YouTube and build your online presence.",
    "url": "https://youtubeguide.com",
    "siteName": "YouTube Guide",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/confident-happy-female-speaker-greeting-colleagues-video-call-discussion_482257-120280.jpg",
        "alt": "Modern YouTube studio setup"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "YouTube for Beginners Guide | Launch & Grow Your Channel",
    "description": "Learn to create, strategize, and grow your YouTube channel with our step-by-step guide for first-time creators, small businesses, and educators. Demystify YouTube and build your online presence.",
    "images": [
      "http://img.b2bpic.net/free-photo/confident-happy-female-speaker-greeting-colleagues-video-call-discussion_482257-120280.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>
  );
}
