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 { getVisualEditScript } from "@/utils/visual-edit-script";



export const metadata: Metadata = {
  title: 'Student Fair for Future Leaders - Edusmart',
  description: 'Discover top universities, international study opportunities, and career guidance at the Student Fair for Future Leaders by @edusmart_tn. Register now!',
  keywords: ["student fair, education fair, future leaders, universities, study abroad, career guidance, scholarships, international education, Edusmart, Tunisia"],
  openGraph: {
    "title": "Student Fair for Future Leaders",
    "description": "Meet universities, career experts, and international education advisors to discover the best opportunities for your academic and professional future.",
    "url": "https://www.studentfair.com",
    "siteName": "Student Fair for Future Leaders",
    "images": [
      {
        "url": "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EahTOUnvJDMyWp8JTwplZ6ph1U/uploaded-1780422629047-z5ljqp7w.jpg",
        "alt": "Students at an education fair"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Student Fair for Future Leaders",
    "description": "Discover top universities, international study opportunities, and career guidance at the Student Fair for Future Leaders by @edusmart_tn. Register now!",
    "images": [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3EahTOUnvJDMyWp8JTwplZ6ph1U/uploaded-1780422629047-z5ljqp7w.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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