|
| 1 | +import React from 'react'; |
| 2 | + |
| 3 | +// Define each video testimonial prop |
| 4 | +const videoTestimonials = [ |
| 5 | + { |
| 6 | + videoUrl: "https://www.youtube.com/embed/In1KOe8za5g", // Example link - replace with your own |
| 7 | + name: 'Darshan Gupta ji', |
| 8 | + feedback: 'Fantastic experience from start to finish. Highly recommend their services!' |
| 9 | + }, |
| 10 | + { |
| 11 | + videoUrl: "https://www.youtube.com/embed/VdlUJDlzIIk", |
| 12 | + name: 'Rakesh Sharma', |
| 13 | + feedback: 'The support team was quick and reliable. Helped us achieve our goals smoothly.' |
| 14 | + }, |
| 15 | + { |
| 16 | + videoUrl: 'https://www.youtube.com/embed/XM7Vyx0r3QU', |
| 17 | + name: 'Rakesh Patel', |
| 18 | + feedback: 'Their process was efficient and transparent. Will work again with them for sure!' |
| 19 | + } |
| 20 | +]; |
| 21 | + |
| 22 | +const VideoTestimonialCard = ({ videoUrl, name, feedback }) => ( |
| 23 | + <div className="bg-white rounded-xl shadow-lg p-4 flex flex-col items-center hover:shadow-2xl transition-all duration-300"> |
| 24 | + <div className="w-full aspect-video rounded-lg overflow-hidden mb-4"> |
| 25 | + <iframe |
| 26 | + src={videoUrl} |
| 27 | + title={name} |
| 28 | + frameBorder="0" |
| 29 | + allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" |
| 30 | + allowFullScreen |
| 31 | + className="w-full h-full" |
| 32 | + ></iframe> |
| 33 | + </div> |
| 34 | + <p className="italic text-gray-800 text-center mb-2">"{feedback}"</p> |
| 35 | + <div className="flex flex-col items-center"> |
| 36 | + <span className="font-semibold text-gray-900">{name}</span> |
| 37 | + </div> |
| 38 | + </div> |
| 39 | +); |
| 40 | + |
| 41 | +const VideoTestimonials = () => ( |
| 42 | + <section className="py-6 bg-gradient-to-r from-gray-50 to-white"> |
| 43 | + <div className="container mx-auto px-4"> |
| 44 | + <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> |
| 45 | + {videoTestimonials.map((testimonial, idx) => ( |
| 46 | + <VideoTestimonialCard key={idx} {...testimonial} /> |
| 47 | + ))} |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + </section> |
| 51 | +); |
| 52 | + |
| 53 | +export default VideoTestimonials; |
0 commit comments