"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import Link from 'next/link';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="medium"
      sizing="mediumLargeSizeLargeTitles"
      background="floatingGradient"
      cardStyle="outline"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          navItems={[
            { name: "Home", id: "/" },
            { name: "About", id: "/about" },
            { name: "Events", id: "/events" },
            { name: "Projects", id: "/projects" },
            { name: "Join", id: "/join" },
            { name: "Resources", id: "/resources" },
            { name: "Contact", id: "/contact" },
            { name: "Leadership", id: "/leadership" }
          ]}
          brandName="Computer Club"
          button={{ text: "Join Now", href: "/join" }}
        />
      </div>

      <div id="contact-form" data-section="contact-form">
        <ContactSplitForm
          title="Get In Touch With Our Tech Community"
          description="Have questions about our events, projects, or membership? Reach out to our team and we'll get back to you within 24 hours."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Full Name", required: true },
            { name: "email", type: "email", placeholder: "Your Email Address", required: true },
            { name: "subject", type: "text", placeholder: "Subject", required: false }
          ]}
          textarea={{ name: "message", placeholder: "Your Message", rows: 5, required: true }}
          useInvertedBackground={true}
          imageSrc="http://img.b2bpic.net/free-photo/lifestyle-people-office_23-2149173705.jpg?_wi=2"
          imageAlt="Tech community members collaborating on a project"
          mediaAnimation="slide-up"
          mediaPosition="left"
          buttonText="Send Message"
          ariaLabel="Contact section"
        />
      </div>

      <FooterSimple
        columns={[
          {
            title: "Explore",
            items: [
              { label: "Home", href: "/" },
              { label: "About", href: "/about" },
              { label: "Events", href: "/events" },
              { label: "Projects", href: "/projects" }
            ]
          },
          {
            title: "Resources",
            items: [
              { label: "Learning Materials", href: "/resources" },
              { label: "Join", href: "/join" },
              { label: "Leadership", href: "/leadership" },
              { label: "Community Guidelines", href: "#" }
            ]
          },
          {
            title: "Connect",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "Join Our Discord", href: "#" },
              { label: "Follow on Social Media", href: "#" },
              { label: "Newsletter Signup", href: "#" }
            ]
          }
        ]}
        bottomLeftText="© 2023 TechConnect Club. All rights reserved."
        bottomRightText="Designed with ❤️ for students by students"
        ariaLabel="Site footer"
      />
    </ThemeProvider>
  );
}