"use client"; import { Marquee } from "@/components/ui/logo-marquee"; import { TestimonialCard } from "@/components/ui/testimonial-marquee"; import { useEffect, useRef } from "react"; import gsap from "gsap"; import SplitText from "gsap/SplitText"; import ScrollTrigger from "gsap/ScrollTrigger"; import Headline from "@/components/ui/headline"; import { useSplitHeading } from "@/lib/useTextRevealHeading"; gsap.registerPlugin(SplitText, ScrollTrigger); const testimonials = [ { id: 1, name: "Dazzle Healer", role: "Front End Developer", avatar: "/images/png/Avatar.png", message: "I've used other kits, but this one is the best. The attention to detail and usability are truly amazing for all designers. I highly recommend it for any type of project.", }, { id: 2, name: "Ammy Johnson", role: "Scientific Advisor", avatar: "/images/png/Avatar (2).png", message: "The level of accuracy and precision in the data analytics blew me away. Whispering Tree makes environmental monitoring so much easier for our teams.", }, { id: 3, name: "Leo Smith", role: "Urban Planner", avatar: "/images/png/Avatar (1).png", message: "Integrating the IoT sensors into our city’s green spaces helped us reduce water usage by over 30%. It’s a game-changer for sustainable urban development.", }, { id: 4, name: "Sofia Martins", role: "Research Scientist", avatar: "/images/png/Avatar (3).png", message: "Real-time health insights from trees have opened a whole new perspective for environmental research. It’s efficient, reliable, and visually elegant.", }, { id: 5, name: "Michael Chen", role: "Environmental Engineer", avatar: "/images/png/Avatar (4).png", message: "Our city parks have become smarter and greener since adopting Whispering Tree. The platform’s clarity in reports is unmatched.", }, { id: 6, name: "Laura Green", role: "Sustainability Consultant", avatar: "/images/png/Avatar (1).png", message: "It’s refreshing to see technology being used for nature’s benefit. The dashboards are intuitive and provide deep insights for eco-management.", }, { id: 7, name: "David Kim", role: "IoT Solutions Architect", avatar: "/images/png/Avatar (4).png", message: "The ease of integrating sensors into existing infrastructure made implementation seamless. Great work by the Whispering Tree team!", }, { id: 8, name: "Priya Nair", role: "Climate Research Analyst", avatar: "/images/png/Avatar.png", message: "This platform allows us to visualize and act on real environmental data in real time. The insights are helping cities adapt sustainably.", }, ]; const Testimonial = () => { const headingRef = useRef(null); const paraRef = useRef(null); const containerRef = useRef(null); useSplitHeading(headingRef, paraRef); const middleIndex = Math.ceil(testimonials.length / 2); const firstHalf = testimonials.slice(0, middleIndex); const secondHalf = testimonials.slice(middleIndex); useEffect(() => { gsap.registerPlugin(ScrollTrigger); const cards = gsap.utils.toArray(".test-card"); gsap.from(cards, { y: 100, opacity: 0, duration: 1.2, ease: "power3.out", stagger: 0.19, scrollTrigger: { trigger: ".test-wrapper", start: "top 80%", end: "bottom 60%", toggleActions: "play none none none", }, }); return () => { ScrollTrigger.getAll().forEach((st) => st.kill()); }; }, []); return (

Powered by{" "} Trust.
Proven by{" "} Nature.

See how municipalities and partners use FalktronTrees to make smarter, data-driven decisions for urban green spaces.

{firstHalf.map((test, idx) => ( ))} {secondHalf.map((test, idx) => ( ))} {/* left gradient fade */}
{/* right gradient fade */}
); }; export default Testimonial;