"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 Dashboard() {
  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="Dashboard"
          description="View your statistics and information"
          background={{ variant: "rotated-rays-animated" }}
          carouselItems={[
            { id: "1", imageSrc: "/placeholder1.webp", imageAlt: "Dashboard 1" },
            { id: "2", imageSrc: "/placeholder2.webp", imageAlt: "Dashboard 2" },
            { id: "3", imageSrc: "/placeholder3.webp", imageAlt: "Dashboard 3" },
            { id: "4", imageSrc: "/placeholder4.webp", imageAlt: "Dashboard 4" },
            { id: "5", imageSrc: "/placeholder5.webp", imageAlt: "Dashboard 5" },
            { id: "6", imageSrc: "/placeholder6.webp", imageAlt: "Dashboard 6" },
          ]}
        />
      </div>
      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          title="Dashboard Metrics"
          description="Track your performance"
          metrics={[
            { id: "1", value: "50K", title: "Total Users", description: "Active users this month" },
            { id: "2", value: "25M", title: "Revenue", description: "Monthly revenue" },
            { id: "3", value: "98.5%", title: "Uptime", description: "System availability" },
          ]}
        />
      </div>
      <div id="events" data-section="events">
        <BlogCardTwo
          animationType="slide-up"
          useInvertedBackground={false}
          textboxLayout="default"
          title="Recent Activity"
          description="Your latest updates and events"
          blogs={[
            { id: "1", category: "Update", title: "Profile Updated", excerpt: "Your profile has been successfully updated", imageSrc: "/placeholder1.webp", authorName: "System", authorAvatar: "/avatar1.webp", date: "Today" },
            { id: "2", category: "Alert", title: "New Message", excerpt: "You have received a new message", imageSrc: "/placeholder2.webp", authorName: "User", authorAvatar: "/avatar2.webp", date: "Yesterday" },
            { id: "3", category: "Notice", title: "Settings Changed", excerpt: "Your account settings have been modified", imageSrc: "/placeholder3.webp", authorName: "System", authorAvatar: "/avatar3.webp", date: "2 days ago" },
          ]}
        />
      </div>
      <div id="contact" data-section="contact">
        <ContactText
          text="Need help? Contact our support team!"
          background={{ variant: "plain" }}
          useInvertedBackground={false}
          buttons={[{ text: "Get Support", href: "mailto:support@example.com" }]}
        />
      </div>
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Webild"
          leftLink={{ text: "Privacy", href: "#" }}
          rightLink={{ text: "Terms", href: "#" }}
        />
      </div>
    </ThemeProvider>
  );
}
