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



export const metadata: Metadata = {
  title: 'Virtual Gallery - Cloud Media Storage for Your Memories',
  description: 'Securely upload, organize, and download your photos and videos with Virtual Gallery. Free up device space and keep your precious memories safe in our neon-themed cloud platform.',
  keywords: ["Virtual Gallery, cloud storage, media storage, photo storage, video storage, digital memories, online gallery, secure storage, neon UI"],
  openGraph: {
    "title": "Virtual Gallery - Cloud Media Storage",
    "description": "Your ultimate cloud-based platform for organizing and safeguarding all your photos and videos with a stunning neon interface.",
    "url": "https://www.virtualgallery.com",
    "siteName": "Virtual Gallery",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/low-angle-shot-glass-window-building-middle-city_181624-6655.jpg",
        "alt": "Virtual Gallery dashboard screenshot"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Virtual Gallery - Cloud Media Storage",
    "description": "Your ultimate cloud-based platform for organizing and safeguarding all your photos and videos with a stunning neon interface.",
    "images": [
      "http://img.b2bpic.net/free-photo/low-angle-shot-glass-window-building-middle-city_181624-6655.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const poppins = Poppins({
  variable: "--font-poppins",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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