"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import ReactLenis from "lenis/react";
import ContactText from '@/components/sections/contact/ContactText';
import FaqBase from '@/components/sections/faq/FaqBase';
import FeatureCardTwentyEight from '@/components/sections/feature/FeatureCardTwentyEight';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';

export default function LandingPage() {
  return (
    <ThemeProvider
        defaultButtonVariant="directional-hover"
        defaultTextAnimation="background-highlight"
        borderRadius="pill"
        contentWidth="compact"
        sizing="largeSmallSizeLargeTitles"
        background="aurora"
        cardStyle="inset"
        primaryButtonStyle="shadow"
        secondaryButtonStyle="layered"
        headingFontWeight="normal"
    >
      <ReactLenis root>
  <div id="nav" data-section="nav">
      <NavbarLayoutFloatingOverlay
      navItems={[
        {
          name: "Home",
          id: "#hero",
        },
        {
          name: "About",
          id: "#about",
        },
        {
          name: "Our Brownies",
          id: "#products",
        },
        {
          name: "Testimonials",
          id: "#testimonials",
        },
        {
          name: "FAQ",
          id: "#faq",
        },
        {
          name: "Order Now",
          id: "#contact",
        },
      ]}
      logoSrc="http://img.b2bpic.net/free-photo/bake-bakery-baking-bread-breakfast-cake-culinary-concept_53876-26214.jpg"
      brandName="Baked by Geulis"
      button={{
        text: "Order Now",
        href: "#contact",
      }}
    />
  </div>

  <div id="hero" data-section="hero">
      <HeroLogo
      logoText="Baked by Geulis"
      description="Indulge in our decadent, handcrafted brownies. Baked with love and the finest ingredients, perfect for every craving and celebration. Order yours today!"
      buttons={[
        {
          text: "Shop Our Brownies",
          href: "#products",
        },
        {
          text: "Our Story",
          href: "#about",
        },
      ]}
      buttonAnimation="opacity"
      imageSrc="http://img.b2bpic.net/free-photo/chocolate-brownie-cake-piece-pie-homemade-pastries-sweet-cooking_114579-580.jpg"
      imageAlt="A stack of delicious chocolate brownies with a wooden background"
    />
  </div>

  <div id="about" data-section="about">
      <MetricSplitMediaAbout
      useInvertedBackground={false}
      title="Our Story: Passion for Perfection"
      description="Baked by Geulis started with a simple passion for creating the most delicious brownies. Every batch is a testament to our commitment to quality, flavor, and a touch of homemade warmth. We believe in spreading joy, one fudgy bite at a time."
      metrics={[
        {
          value: "5+",
          title: "Years of Baking",
        },
        {
          value: "1000+",
          title: "Happy Customers",
        },
        {
          value: "10k+",
          title: "Brownies Sold",
        },
      ]}
      imageSrc="http://img.b2bpic.net/free-photo/sweet-jaggery-dessert-arrangement_23-2149335560.jpg"
      imageAlt="A baker meticulously decorating brownies in a professional kitchen"
      mediaAnimation="slide-up"
      metricsAnimation="slide-up"
    />
  </div>

  <div id="features" data-section="features">
      <FeatureCardTwentyEight
      animationType="slide-up"
      textboxLayout="default"
      useInvertedBackground={true}
      features={[
        {
          id: "1",
          title: "Premium Ingredients",
          subtitle: "Only the finest cocoa, rich butter, and natural flavors go into every brownie for an unparalleled taste.",
          category: "Quality",
          value: "Exceptional",
        },
        {
          id: "2",
          title: "Irresistible Flavors",
          subtitle: "From classic fudge to unique gourmet combinations like salted caramel and espresso swirl, find your perfect match.",
          category: "Variety",
          value: "Delicious",
        },
        {
          id: "3",
          title: "Baked Fresh Daily",
          subtitle: "Ensuring every single order is as fresh and delectable as it gets, delivered straight from our oven to your door.",
          category: "Freshness",
          value: "Guaranteed",
        },
      ]}
      title="Why Choose Baked by Geulis?"
      description="Experience the difference with our premium quality and commitment to taste that sets us apart in every delicious bite."
    />
  </div>

  <div id="products" data-section="products">
      <ProductCardFour
      animationType="slide-up"
      textboxLayout="default"
      gridVariant="three-columns-all-equal-width"
      useInvertedBackground={false}
      products={[
        {
          id: "p1",
          name: "Classic Fudge",
          price: "IDR 35,000",
          variant: "Rich & Gooey",
          imageSrc: "http://img.b2bpic.net/free-photo/chocolate-brownie-portions-wooden-background_123827-27266.jpg",
          imageAlt: "Classic fudge brownie with a glossy top",
        },
        {
          id: "p2",
          name: "Salted Caramel",
          price: "IDR 40,000",
          variant: "Sweet & Salty",
          imageSrc: "http://img.b2bpic.net/free-photo/strawberry-pie-black-metallic-pan_114579-61917.jpg",
          imageAlt: "Salted caramel brownie with a caramel swirl and sea salt flakes",
        },
        {
          id: "p3",
          name: "Walnut Wonder",
          price: "IDR 40,000",
          variant: "Nutty Delight",
          imageSrc: "http://img.b2bpic.net/free-photo/close-up-photo-homemade-chocolate-cake-with-peanut-fresh-slices-plate_114579-91905.jpg",
          imageAlt: "Chocolate brownie studded with crunchy walnuts",
        },
        {
          id: "p4",
          name: "Choc Chip Bliss",
          price: "IDR 38,000",
          variant: "Extra Chocolatey",
          imageSrc: "http://img.b2bpic.net/free-photo/chocolate-chips-cookie-dough-flat-lay_23-2149556932.jpg",
          imageAlt: "Fudgy brownie with generous melted chocolate chips",
        },
        {
          id: "p5",
          name: "Red Velvet",
          price: "IDR 42,000",
          variant: "Velvety Smooth",
          imageSrc: "http://img.b2bpic.net/free-photo/homemade-delicious-raspberry-cake-roll_114579-65471.jpg",
          imageAlt: "Red velvet brownie with a delicate cream cheese swirl",
        },
        {
          id: "p6",
          name: "Espresso Swirl",
          price: "IDR 45,000",
          variant: "Coffee Infused",
          imageSrc: "http://img.b2bpic.net/free-photo/different-foundation-shades-mix-top-view_23-2149511230.jpg",
          imageAlt: "Dark chocolate brownie with an espresso coffee swirl",
        },
      ]}
      title="Our Delicious Brownie Collection"
      description="Discover a world of rich, fudgy goodness. Each brownie is a masterpiece, ready to delight your taste buds and satisfy any craving."
    />
  </div>

  <div id="testimonials" data-section="testimonials">
      <TestimonialCardFifteen
      useInvertedBackground={true}
      testimonial="The best brownies I've ever tasted! Rich, fudgy, and absolutely addictive. Baked by Geulis is my go-to for all sweet cravings."
      rating={5}
      author="Jessica L., Loyal Customer"
      avatars={[
        {
          src: "http://img.b2bpic.net/free-photo/stylish-woman-wearing-yellow-bandana_273609-13321.jpg",
          alt: "Customer Jessica L.",
        },
        {
          src: "http://img.b2bpic.net/free-photo/hispanic-man-standing-blue-background-smiling-cheerful-playing-peek-boo-with-hands-showing-face-surprised-exited_839833-10690.jpg",
          alt: "Customer Michael K.",
        },
        {
          src: "http://img.b2bpic.net/free-photo/smiling-chef-kitchen_23-2148006682.jpg",
          alt: "Chef Maria P.",
        },
        {
          src: "http://img.b2bpic.net/free-photo/young-woman-wearing-striped-shirt-eyeglasses_273609-13229.jpg",
          alt: "Student David G.",
        },
        {
          src: "http://img.b2bpic.net/free-photo/medium-shot-plus-sized-woman-influencer_23-2151414057.jpg",
          alt: "Food Blogger Emily R.",
        },
      ]}
      ratingAnimation="blur-reveal"
      avatarsAnimation="slide-up"
    />
  </div>

  <div id="faq" data-section="faq">
      <FaqBase
      textboxLayout="default"
      useInvertedBackground={false}
      faqs={[
        {
          id: "faq1",
          title: "How do I place an order?",
          content: "You can easily order directly through our website! Simply browse our delicious brownie collection, add your favorites to the cart, and proceed to our secure checkout.",
        },
        {
          id: "faq2",
          title: "Do you offer custom orders for events?",
          content: "Yes, we love making special occasions sweeter! Please contact us directly to discuss your custom brownie needs for parties, corporate gifts, weddings, and other events. We can accommodate various sizes and designs.",
        },
        {
          id: "faq3",
          title: "What are your delivery options?",
          content: "We offer convenient local delivery within [Your City/Area] and shipping options for customers in other regions. Specific delivery fees and estimated times will be calculated during checkout based on your location.",
        },
        {
          id: "faq4",
          title: "What ingredients do you use?",
          content: "We use only premium, high-quality ingredients including real butter, rich cocoa, and natural flavorings to ensure every brownie is a delightful treat. We source locally whenever possible.",
        },
        {
          id: "faq5",
          title: "How long do the brownies stay fresh?",
          content: "Our brownies are baked fresh daily. They are best enjoyed within 3-5 days at room temperature or can be refrigerated for up to a week. For longer storage, they can be frozen for up to one month.",
        },
      ]}
      title="Sweet Answers to Your Questions"
      description="Find quick answers to common questions about our ordering process, ingredients, delivery, and more. Your satisfaction is our priority!"
      faqsAnimation="slide-up"
    />
  </div>

  <div id="social-proof" data-section="social-proof">
      <SocialProofOne
      textboxLayout="default"
      useInvertedBackground={true}
      names={[
        "Happy Customers",
        "Food Enthusiasts",
        "Local Partners",
        "Event Planners",
        "Dessert Aficionados",
        "Celebration Makers",
        "Sweet Treat Lovers",
      ]}
      title="Trusted by Sweet Tooth Connoisseurs"
      description="Join the community of delighted customers and partners who can't get enough of Baked by Geulis brownies. Our quality speaks for itself!"
    />
  </div>

  <div id="contact" data-section="contact">
      <ContactText
      useInvertedBackground={false}
      background={{
        variant: "radial-gradient",
      }}
      text="Ready for a taste of pure bliss? Order your Baked by Geulis brownies now and experience the ultimate indulgence!"
      buttons={[
        {
          text: "Place Your Order",
          href: "#products",
        },
        {
          text: "Contact Us",
          href: "mailto:info@bakedbygeulis.com",
        },
      ]}
    />
  </div>

  <div id="footer" data-section="footer">
      <FooterBaseCard
      logoText="Baked by Geulis"
      columns={[
        {
          title: "Shop",
          items: [
            {
              label: "Home",
              href: "#hero",
            },
            {
              label: "Our Brownies",
              href: "#products",
            },
            {
              label: "Custom Orders",
              href: "#contact",
            },
          ],
        },
        {
          title: "About Us",
          items: [
            {
              label: "Our Story",
              href: "#about",
            },
            {
              label: "Testimonials",
              href: "#testimonials",
            },
            {
              label: "FAQ",
              href: "#faq",
            },
          ],
        },
        {
          title: "Connect",
          items: [
            {
              label: "Instagram",
              href: "https://www.instagram.com/bakedbygeulis/",
            },
            {
              label: "Contact Us",
              href: "mailto:info@bakedbygeulis.com",
            },
          ],
        },
      ]}
      copyrightText="© 2024 Baked by Geulis. All rights reserved."
    />
  </div>
      </ReactLenis>
    </ThemeProvider>
  );
}
