@@ -47,7 +47,7 @@ const testimonials = [
4747] ;
4848
4949const Testimonial = ( { testimonial } ) => (
50- < div className = " bg-black p-4 rounded-xl delay-150 hover:-translate-y-1 duration-300 hover:scale-110 md:m-6 m-2 mt-8 h-80 w-[375px] border-2 border-white text-lg text-center justify-center items-center" >
50+ < div className = " bg-black p-4 rounded-xl delay-150 hover:-translate-y-1 duration-300 hover:scale-110 md:m-6 m-2 mt-8 h-96 w-auto border-2 border-white text-lg text-center justify-center items-center" >
5151 < p className = "text-white" > { testimonial . text } </ p >
5252 < div className = "flex justify-center mt-8" >
5353 < div className = "flex-shrink-0" >
@@ -122,22 +122,34 @@ const TestimonialCarousel = () => {
122122 return (
123123 < div className = "py-10" >
124124 < Header name = "What Our Members Say About Us" />
125- < div className = "flex flex-col items-center justify-center" >
125+ < div className = "flex items-center justify-center" >
126+ < button
127+ onClick = { goToPrev }
128+ className = "bg-gray-800 text-white rounded-full p-3 flex justify-center items-center mr-2"
129+ >
130+ { "<" }
131+ </ button >
126132 < div className = "flex items-center mb-6 mx-auto" >
127133 { visibleTestimonials . map ( ( testimonial ) => (
128134 < div key = { testimonial . id } >
129135 < Testimonial testimonial = { testimonial } />
130136 </ div >
131137 ) ) }
132138 </ div >
139+ < button
140+ onClick = { goToNext }
141+ className = "bg-gray-800 text-white rounded-full p-3 flex justify-center items-center mr-2"
142+ >
143+ { ">" }
144+ </ button >
133145 </ div >
134146 < div className = "flex justify-center items-center gap-4" >
135- < button
147+ { /* <button
136148 onClick={goToPrev}
137149 className="bg-gray-800 text-white rounded-full p-3 flex justify-center items-center mr-2"
138150 >
139151 {"<"}
140- </ button >
152+ </button> */ }
141153 < div className = "flex justify-center" >
142154 { testimonials . map ( ( testimonial , index ) => (
143155 < div
@@ -149,12 +161,12 @@ const TestimonialCarousel = () => {
149161 > </ div >
150162 ) ) }
151163 </ div >
152- < button
164+ { /* <button
153165 onClick={goToNext}
154166 className="bg-gray-800 text-white rounded-full p-3 flex justify-center items-center mr-2"
155167 >
156168 {">"}
157- </ button >
169+ </button> */ }
158170 </ div >
159171 </ div >
160172 ) ;
0 commit comments