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



export const metadata: Metadata = {
  title: 'Muhammadamin - Frontend Dasturchi Portfoliosi',
  description: 'Yosh va g\'ayratli frontend dasturchi Muhammadaminning shaxsiy portfoliosi. Veb-dasturlash, React.js va interaktiv interfeyslar yaratish bo\'yicha loyihalarimni ko\'ring.',
  keywords: ["frontend, dasturchi, Muhammadamin, portfolio, web, react, nextjs, uzbek, o'zbek"],
  openGraph: {
    "title": "Muhammadamin - Frontend Dasturchi Portfoliosi",
    "description": "Yosh va g'ayratli frontend dasturchi Muhammadaminning shaxsiy portfoliosi. Veb-dasturlash, React.js va interaktiv interfeyslar yaratish bo'yicha loyihalarimni ko'ring.",
    "url": "https://yourportfolio.uz",
    "siteName": "Muhammadamin Portfoliosi",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/handsome-young-man-with-laptop_23-2148350554.jpg",
        "alt": "Muhammadamin ish stoli"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Muhammadamin - Frontend Dasturchi Portfoliosi",
    "description": "Yosh va g'ayratli frontend dasturchi Muhammadaminning shaxsiy portfoliosi. Veb-dasturlash, React.js va interaktiv interfeyslar yaratish bo'yicha loyihalarimni ko'ring.",
    "images": [
      "http://img.b2bpic.net/free-photo/handsome-young-man-with-laptop_23-2148350554.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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