@@ -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-96 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-80 w-[375px] 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" >
@@ -71,11 +71,11 @@ const TestimonialCarousel = () => {
7171 useEffect ( ( ) => {
7272 const handleResize = ( ) => {
7373 const screenWidth = window . innerWidth ;
74- if ( screenWidth <= 640 ) {
74+ if ( screenWidth <= 700 ) {
7575 setNumVisible ( 1 ) ;
76- } else if ( screenWidth >= 640 && screenWidth < 768 ) {
76+ } else if ( screenWidth >= 700 && screenWidth < 1024 ) {
7777 setNumVisible ( 2 ) ;
78- } else if ( screenWidth >= 768 && screenWidth < 1024 ) {
78+ } else if ( screenWidth >= 1024 && screenWidth < 1300 ) {
7979 setNumVisible ( 2 ) ;
8080 } else {
8181 setNumVisible ( 3 ) ;
@@ -123,7 +123,7 @@ const TestimonialCarousel = () => {
123123 < div className = "py-10" >
124124 < Header name = "What Our Members Say About Us" />
125125 < div className = "flex flex-col items-center justify-center" >
126- < div className = "flex items-center mb-6" >
126+ < div className = "flex items-center mb-6 mx-auto " >
127127 { visibleTestimonials . map ( ( testimonial ) => (
128128 < div key = { testimonial . id } >
129129 < Testimonial testimonial = { testimonial } />
0 commit comments