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



export const metadata: Metadata = {
  title: 'WeBuild: AI-Powered Website Builder - Build Anything Fast',
  description: 'WeBuild is an AI-powered website builder that transforms your ideas into stunning, live websites in minutes. No code, just creativity. Your Vision. Built by AI. Live in Minutes.',
  keywords: ["AI website builder, website maker, no code, AI design, web development, landing page builder, creative tool, fast website, responsive design"],
  openGraph: {
    "title": "WeBuild: AI-Powered Website Builder - Build Anything Fast",
    "description": "WeBuild is an AI-powered website builder that transforms your ideas into stunning, live websites in minutes. No code, just creativity.",
    "url": "https://webuild.com",
    "siteName": "WeBuild",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/black-person-programming-neural-network-code-with-green-screen_482257-121370.jpg",
        "alt": "WeBuild AI Editor Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "WeBuild: AI-Powered Website Builder - Build Anything Fast",
    "description": "WeBuild is an AI-powered website builder that transforms your ideas into stunning, live websites in minutes. No code, just creativity.",
    "images": [
      "http://img.b2bpic.net/free-photo/black-person-programming-neural-network-code-with-green-screen_482257-121370.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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