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



export const metadata: Metadata = {
  title: 'Your Name | High-Converting Website Designer',
  description: 'Professional portfolio showcasing expert web design and development. Driving conversions with stunning, user-centric digital experiences.',
  openGraph: {
    "title": "Your Name | High-Converting Website Designer",
    "description": "Professional portfolio showcasing expert web design and development. Driving conversions with stunning, user-centric digital experiences.",
    "url": "https://yourwebsite.com",
    "siteName": "Your Name Portfolio",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/young-lady-designer-sitting-indoors-night-drawing-sketches_171337-15903.jpg",
        "alt": "Professional web designer at work"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Your Name | High-Converting Website Designer",
    "description": "Professional portfolio showcasing expert web design and development. Driving conversions with stunning, user-centric digital experiences.",
    "images": [
      "http://img.b2bpic.net/free-photo/young-lady-designer-sitting-indoors-night-drawing-sketches_171337-15903.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});
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={`${publicSans.variable} ${inter.variable} antialiased`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
