"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import BlogCardTwo from '@/components/sections/blog/BlogCardTwo';
import ContactText from '@/components/sections/contact/ContactText';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import Link from 'next/link';

export default function Home() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Dashboard", id: "/dashboard" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="medium"
      background="aurora"
      cardStyle="glass-elevated"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "/" },
            { name: "Dashboard", id: "/dashboard" },
          ]}
        />
      </div>
      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Welcome to Our Platform"
          description="Discover amazing features and capabilities"
          background={{ variant: "rotated-rays-animated" }}
          carouselItems={[
            { id: "1", imageSrc: "/placeholder1.webp", imageAlt: "Image 1" },
            { id: "2", imageSrc: "/placeholder2.webp", imageAlt: "Image 2" },
            { id: "3", imageSrc: "/placeholder3.webp", imageAlt: "Image 3" },
            { id: "4", imageSrc: "/placeholder4.webp", imageAlt: "Image 4" },
            { id: "5", imageSrc: "/placeholder5.webp", imageAlt: "Image 5" },
            { id: "6", imageSrc: "/placeholder6.webp", imageAlt: "Image 6" },
          ]}
          buttons={[{ text: "Get Started", href: "/#contact" }]}
        />
      </div>
      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          title="Key Metrics"
          description="Track your performance"
          metrics={[
            { id: "1", value: "100K", title: "Users", description: "Active users on platform" },
            { id: "2", value: "50M", title: "Revenue", description: "Annual revenue" },
            { id: "3", value: "99%", title: "Uptime", description: "System availability" },
          ]}
        />
      </div>
      <div id="events" data-section="events">
        <BlogCardTwo
          animationType="slide-up"
          useInvertedBackground={false}
          textboxLayout="default"
          title="Latest Events"
          description="Stay updated with our latest events"
          blogs={[
            { id: "1", category: "Event", title: "Tech Summit 2025", excerpt: "Join us for the biggest tech event of the year", imageSrc: "/placeholder1.webp", authorName: "John Doe", authorAvatar: "/avatar1.webp", date: "20 Jan 2025" },
            { id: "2", category: "Webinar", title: "AI Workshop", excerpt: "Learn about the latest AI technologies", imageSrc: "/placeholder2.webp", authorName: "Jane Smith", authorAvatar: "/avatar2.webp", date: "25 Jan 2025" },
            { id: "3", category: "Conference", title: "Product Launch", excerpt: "Discover our newest product features", imageSrc: "/placeholder3.webp", authorName: "Bob Johnson", authorAvatar: "/avatar3.webp", date: "30 Jan 2025" },
          ]}
        />
      </div>
      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to get started? Contact us today!"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          buttons={[{ text: "Contact Us", href: "mailto:hello@example.com" }]}
        />
      </div>
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Webild"
          leftLink={{ text: "Privacy", href: "#" }}
          rightLink={{ text: "Terms", href: "#" }}
        />
      </div>
    </ThemeProvider>
  );
}
