function testimonials() {
return {
currentIndex: 0,
testimonials: [
{
text: "This product has completely transformed the way we work. The intuitive design and powerful features have helped us increase productivity by 40%. I couldn't recommend it more highly!",
name: "Sarah Johnson",
role: "CEO at TechCorp",
avatar: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=150&h=150&fit=crop"
},
{
text: "Outstanding customer service and a fantastic product. The team went above and beyond to ensure our success. It's rare to find a company that truly cares about their clients.",
name: "Michael Chen",
role: "Product Manager at InnovateLabs",
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=150&h=150&fit=crop"
},
{
text: "I've tried many similar solutions, but none come close to this level of quality and reliability. The attention to detail is impressive, and the results speak for themselves.",
name: "Emily Rodriguez",
role: "Marketing Director at BrandWorks",
avatar: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=150&h=150&fit=crop"
}
],
get currentTestimonial() {
return this.testimonials[this.currentIndex];
},
next() {
this.currentIndex = (this.currentIndex + 1) % this.testimonials.length;
},
prev() {
this.currentIndex = this.currentIndex === 0
? this.testimonials.length - 1
: this.currentIndex - 1;
}
}
}
No comments yet. Be the first!