Skip to content

Commit d41c896

Browse files
committed
Added a new video review section under Text review section
1 parent 20a82e2 commit d41c896

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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;

src/pages/Index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Footer from "../components/Footer";
1111
import HeroForm from "@/components/HeroForm";
1212
import FAQ from "../components/FAQ";
1313
import Bmodel from "@/components/Bmodel";
14+
import VideoTestimonials from "@/components/VideoTestimonials";
1415
// import { Banner } from "@/components/Banner";
1516

1617
const Index: React.FC = () => {
@@ -53,6 +54,7 @@ const Index: React.FC = () => {
5354
{/* <ServiceCategories /> */}
5455
<HowItWorks />
5556
<Testimonials />
57+
<VideoTestimonials />
5658
<FAQ />
5759
{/* <FeaturedProfessionals /> */}
5860
<Footer />

0 commit comments

Comments
 (0)