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



export const metadata: Metadata = {
  title: 'EduSpark App - Unlock Your Learning Potential',
  description: 'EduSpark is an innovative educational application offering interactive courses, expert instructors, and a supportive community for mastering new skills.',
  openGraph: {
    "title": "EduSpark App - Empowering Your Education",
    "description": "Join thousands of learners worldwide and transform your skills with EduSpark's comprehensive online courses.",
    "url": "https://eduspark.app",
    "siteName": "EduSpark App",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/young-man-with-laptop-headphones_23-2148205659.jpg",
        "alt": "Students learning online"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "EduSpark App - Empowering Your Education",
    "description": "Join thousands of learners worldwide and transform your skills with EduSpark's comprehensive online courses.",
    "images": [
      "http://img.b2bpic.net/free-photo/young-man-with-laptop-headphones_23-2148205659.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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