diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 2b2c13d..e7416be 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -1,243 +1,31 @@ +// AUTO-GENERATED shell by per-section-migrate. +// Section bodies live in .//sections/.tsx. Edit the section +// files directly; this shell only fixes render order. + import LightRaysCenterBackground from "@/components/ui/LightRaysCenterBackground"; import { StyleProvider } from "@/components/ui/StyleProvider"; -import HeroBillboardFloatingCards from "@/components/sections/hero/HeroBillboardFloatingCards"; -import FeaturesGridSplit from "@/components/sections/features/FeaturesGridSplit"; import FeaturesMediaCards from "@/components/sections/features/FeaturesMediaCards"; -import MetricsFeatureCards from "@/components/sections/metrics/MetricsFeatureCards"; -import PricingLayeredCards from "@/components/sections/pricing/PricingLayeredCards"; -import TestimonialDetailedCards from "@/components/sections/testimonial/TestimonialDetailedCards"; -import FaqTwoColumn from "@/components/sections/faq/FaqTwoColumn"; -import BlogSimpleCards from "@/components/sections/blog/BlogSimpleCards"; -import ContactCta from "@/components/sections/contact/ContactCta"; +import React from 'react'; +import HeroSection from './HomePage/sections/Hero'; +import FeaturesSection from './HomePage/sections/Features'; +import MetricsSection from './HomePage/sections/Metrics'; +import PricingSection from './HomePage/sections/Pricing'; +import TestimonialsSection from './HomePage/sections/Testimonials'; +import FaqSection from './HomePage/sections/Faq'; +import BlogSection from './HomePage/sections/Blog'; +import ContactSection from './HomePage/sections/Contact'; -export default function HomePage() { +export default function HomePage(): React.JSX.Element { return ( - -
- -
- - - -
- -
- -
- -
- -
- -
- - - -
- -
- -
- -
- -
- -
- -
- -
- -
- -
- - -
+ <> + + + + + + + + + ); } diff --git a/src/pages/HomePage/sections/Testimonials.tsx b/src/pages/HomePage/sections/Testimonials.tsx index 7ef4f6c..d131bd8 100644 --- a/src/pages/HomePage/sections/Testimonials.tsx +++ b/src/pages/HomePage/sections/Testimonials.tsx @@ -1,17 +1,204 @@ -// Created by add_section_from_catalog (TestimonialMarqueeCards). +/* 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"; -import React from 'react'; -import TestimonialMarqueeCards from '@/components/sections/testimonial/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" + } +]; -export default function TestimonialsSection(): React.JSX.Element { +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() { return (
- +
); }