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



export const metadata: Metadata = {
  title: 'Rasmere - Full-Stack Developer & UI/UX Designer Portfolio',
  description: 'Rasmere\'s personal portfolio: a full-stack developer and UI/UX designer crafting exceptional web experiences with modern technologies. See projects, skills, and contact for collaboration.',
  keywords: ["Rasmere, portfolio, web developer, full-stack, UI/UX designer, React, Next.js, Node.js, frontend, backend, web design, custom applications"],
  openGraph: {
    "title": "Rasmere - Full-Stack Developer & UI/UX Designer Portfolio",
    "description": "Rasmere's personal portfolio: a full-stack developer and UI/UX designer crafting exceptional web experiences with modern technologies.",
    "url": "https://rasmere.com/",
    "siteName": "Rasmere Portfolio",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/designer-interacts-with-digital-technology-produce-virtual-home-set_482257-118835.jpg",
        "alt": "Rasmere working on a laptop"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Rasmere - Full-Stack Developer & UI/UX Designer Portfolio",
    "description": "Rasmere's personal portfolio: a full-stack developer and UI/UX designer crafting exceptional web experiences with modern technologies.",
    "images": [
      "http://img.b2bpic.net/free-photo/designer-interacts-with-digital-technology-produce-virtual-home-set_482257-118835.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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