diff --git a/src/pages/HomePage/sections/Testimonials.tsx b/src/pages/HomePage/sections/Testimonials.tsx index d131bd8..7ef4f6c 100644 --- a/src/pages/HomePage/sections/Testimonials.tsx +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -1,204 +1,17 @@ -/* eslint-disable */ -// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body -import { useState } from "react"; -import { ArrowLeft, ArrowRight } from "lucide-react"; -import Button from "@/components/ui/Button"; -import TextAnimation from "@/components/ui/TextAnimation"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import Transition from "@/components/ui/Transition"; -import ScrollReveal from "@/components/ui/ScrollReveal"; -import LoopCarousel from "@/components/ui/LoopCarousel"; -import Card from "@/components/ui/Card"; +// Created by add_section_from_catalog (TestimonialMarqueeCards). -const testimonials = [ - { - title: "Game-changer for our email strategy", - quote: "We switched to Flashly six months ago and our open rates have nearly tripled. The AI suggestions are incredibly accurate and save us hours every week.", - name: "Sarah Chen", - role: "Head of Marketing, Lumino", - imageSrc: "https://storage.googleapis.com/webild/default/templates/ai-email-platform/testimonial-1.webp?_wi=1" - }, - { - title: "Best ROI on any tool we use", - quote: "The automation workflows alone paid for the subscription in the first month. Our team can now focus on strategy instead of manual sends.", - name: "Marcus Rivera", - role: "Growth Lead, NovaBrand", - imageSrc: "https://storage.googleapis.com/webild/default/templates/ai-email-platform/testimonial-2.webp" - }, - { - title: "Finally, email that just works", - quote: "Setup took 15 minutes. Within a week we had our first automated campaign running. The deliverability is the best we've ever seen.", - name: "Erik Lindqvist", - role: "Founder, Canopy", - imageSrc: "https://storage.googleapis.com/webild/default/templates/ai-email-platform/testimonial-3.webp" - }, - { - title: "Incredible support and product", - quote: "Every time we've had a question, the team responds within minutes. The product keeps getting better with every update. Truly world-class.", - name: "James Park", - role: "CTO, AdScale", - imageSrc: "https://storage.googleapis.com/webild/default/templates/ai-email-platform/testimonial-1.webp?_wi=2" - } -]; +import React from 'react'; +import TestimonialMarqueeCards from '@/components/sections/testimonial/TestimonialMarqueeCards'; -type Testimonial = { - title: string; - quote: string; - name: string; - role: string; -} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); - -const TestimonialsInline = () => { - return ( -
-
-
-
-

{"Testimonials"}

-
- - - - -
-
- -
- -
- {testimonials.map((testimonial, idx) => ( - -
-

"{testimonial.title}"

-

"{testimonial.quote}"

-
-
-
- -
-
-

{testimonial.name}

-

{testimonial.role}

-
-
-
- ))} -
-
-
-
- ); -}; - -const TestimonialsInlineOld = () => { - const [activeIndex, setActiveIndex] = useState(0); - - const handlePrev = () => { - setActiveIndex((prev) => (prev === 0 ? testimonials.length - 1 : prev - 1)); - }; - - const handleNext = () => { - setActiveIndex((prev) => (prev === testimonials.length - 1 ? 0 : prev + 1)); - }; - - const activeTestimonial = testimonials[activeIndex]; - - return ( -
-
-
-
-

{"Testimonials"}

-
- - - - - - {(undefined || undefined) && ( -
- {undefined &&
- )} -
- - -
- -

- {activeTestimonial.title} -

- -

- “{activeTestimonial.quote}” -

-
- -
- -
- - {activeTestimonial.name} - {activeTestimonial.role} - - -
- - -
-
-
- - - - - -
-
- ); -}; - -export default function TestimonialsSection() { +export default function TestimonialsSection(): React.JSX.Element { return (
- +
); }