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: 'Nexaura Services | Creative Collaboration Platform',
  description: 'Nexaura Services connects service buyers with skilled freelancers, offering project showcases, consultation booking, and a rewarding points system for creators.',
  keywords: ["Nexaura, creative services, freelance platform, project showcase, consultation, earn points, graphic design, web development, media services, UI/UX, branding, illustration"],
  openGraph: {
    "title": "Nexaura Services | Creative Collaboration Platform",
    "description": "Nexaura Services connects service buyers with skilled freelancers, offering project showcases, consultation booking, and a rewarding points system for creators.",
    "url": "https://www.nexaura.com",
    "siteName": "Nexaura Services",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/sales-consultant-using-e-commerce-statistics-computer-monitor-develop-financial-growth-business-development-manager-working-with-data-analysis-diagrams-research-tripod-shot_482257-40942.jpg",
        "alt": "Nexaura Services Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Nexaura Services | Creative Collaboration Platform",
    "description": "Nexaura Services connects service buyers with skilled freelancers, offering project showcases, consultation booking, and a rewarding points system for creators.",
    "images": [
      "http://img.b2bpic.net/free-photo/sales-consultant-using-e-commerce-statistics-computer-monitor-develop-financial-growth-business-development-manager-working-with-data-analysis-diagrams-research-tripod-shot_482257-40942.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>
  );
}
