|
| 1 | +import React, { useState } from 'react'; |
| 2 | +import { Link } from 'react-router-dom'; |
| 3 | +import VideoModal from '../components/VideoModal'; |
| 4 | + |
| 5 | +type TestimonialVideo = { |
| 6 | + title: string; |
| 7 | + videoSrc: string; |
| 8 | + thumbnail: string; |
| 9 | +}; |
| 10 | + |
| 11 | +const testimonialVideo: TestimonialVideo = { |
| 12 | + title: 'Client Testimonial', |
| 13 | + videoSrc: '/videos/Testimonial video.mp4', |
| 14 | + thumbnail: '/video thumbnails/testimonial_kristin.png', |
| 15 | +}; |
| 16 | + |
| 17 | +export default function TestimonialSection() { |
| 18 | + const [activeVideo, setActiveVideo] = useState<TestimonialVideo | null>(null); |
| 19 | + |
| 20 | + return ( |
| 21 | + <> |
| 22 | + <section className="bg-white px-8 py-20"> |
| 23 | + <div className="max-w-7xl mx-auto"> |
| 24 | + <div className="grid gap-12 md:grid-cols-2 md:items-center"> |
| 25 | + <div className="flex justify-center md:justify-end"> |
| 26 | + <button |
| 27 | + type="button" |
| 28 | + onClick={() => setActiveVideo(testimonialVideo)} |
| 29 | + className="group w-full max-w-[280px] sm:max-w-[320px] md:max-w-[340px] text-left " |
| 30 | + aria-label="Play client testimonial video" |
| 31 | + > |
| 32 | + <div className="relative aspect-[9/16] overflow-hidden rounded-2xl bg-white shadow-2xl transition-shadow group-hover:shadow-xl"> |
| 33 | + <img |
| 34 | + src={testimonialVideo.thumbnail} |
| 35 | + alt="Watch client testimonial" |
| 36 | + className="h-full w-full object-cover" |
| 37 | + loading="lazy" |
| 38 | + /> |
| 39 | + {/* Play button overlay */} |
| 40 | + <div className="absolute inset-0 flex items-center justify-center"> |
| 41 | + <div className="w-14 h-14 rounded-full bg-black/60 flex items-center justify-center"> |
| 42 | + <svg viewBox="0 0 24 24" fill="white" className="w-6 h-6 ml-1"> |
| 43 | + <path d="M8 5v14l11-7z" /> |
| 44 | + </svg> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + </button> |
| 49 | + </div> |
| 50 | + |
| 51 | + <div className="text-center md:text-left"> |
| 52 | + <p className="text-lg font-bold tracking-wide text-gold uppercase"> |
| 53 | + Client Testimonial |
| 54 | + </p> |
| 55 | + |
| 56 | + <h2 className="mt-2 text-4xl md:text-5xl font-extrabold leading-tight"> |
| 57 | + A real homeowner’s experience with Lock It Lending |
| 58 | + </h2> |
| 59 | + |
| 60 | + <p className="mt-4 text-xl text-gray-700 font-semibold"> |
| 61 | + Hear directly from a client about what it was like working with our team—from first |
| 62 | + questions to closing day. |
| 63 | + </p> |
| 64 | + |
| 65 | + <ul className="mt-6 space-y-3 text-lg text-gray-700"> |
| 66 | + <li className="flex gap-3 justify-center md:justify-start"> |
| 67 | + <span className="text-gold font-bold">•</span> Clear communication and guidance |
| 68 | + </li> |
| 69 | + <li className="flex gap-3 justify-center md:justify-start"> |
| 70 | + <span className="text-gold font-bold">•</span> Simple, transparent process |
| 71 | + </li> |
| 72 | + <li className="flex gap-3 justify-center md:justify-start"> |
| 73 | + <span className="text-gold font-bold">•</span> Fast answers and confident next |
| 74 | + steps |
| 75 | + </li> |
| 76 | + </ul> |
| 77 | + |
| 78 | + <div className="mt-8 flex flex-wrap gap-4 justify-center md:justify-start"> |
| 79 | + <Link |
| 80 | + to="/purchase" |
| 81 | + className="inline-block bg-gold text-white text-lg px-8 py-3 rounded-full font-semibold shadow hover:opacity-90" |
| 82 | + > |
| 83 | + Get Started |
| 84 | + </Link> |
| 85 | + |
| 86 | + {/*<a |
| 87 | + href="https://www.google.com/search?q=lock+it+lending+houston#lrd=0x8640c35d2a7a4eab:0xb5736063dbda6db6,1" |
| 88 | + target="_blank" |
| 89 | + rel="noopener noreferrer" |
| 90 | + className="inline-block border border-gold text-gold text-lg px-8 py-3 rounded-full font-semibold shadow hover:bg-gold hover:text-white transition-colors" |
| 91 | + > |
| 92 | + See All Reviews |
| 93 | + </a>*/} |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + </section> |
| 99 | + |
| 100 | + {activeVideo && ( |
| 101 | + <VideoModal |
| 102 | + video={{ title: activeVideo.title, videoSrc: activeVideo.videoSrc }} |
| 103 | + onClose={() => setActiveVideo(null)} |
| 104 | + /> |
| 105 | + )} |
| 106 | + </> |
| 107 | + ); |
| 108 | +} |
0 commit comments