From 58a155dfccbccaad080c0807437a7fa53071f333 Mon Sep 17 00:00:00 2001 From: Pulkit Date: Mon, 23 Dec 2024 17:09:16 +0530 Subject: [PATCH] fix: testimonials alignment --- components/Testimonial.tsx | 43 +++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/components/Testimonial.tsx b/components/Testimonial.tsx index b8a2d5abce27..36e1413f35a3 100644 --- a/components/Testimonial.tsx +++ b/components/Testimonial.tsx @@ -12,38 +12,47 @@ interface TestimonialProps { } /** - * @description This component displays Testimonial component. + * @description This component displays a Testimonial card with consistent spacing and alignment. * * @param {TestimonialProps} props - The props for the Testimonial component. * @param {string} props.className - Additional CSS class for styling the card. * @param {string} props.text - The testimonial from the author. * @param {string} props.authorName - The name of the author. * @param {string} props.authorDescription - The description of the author. - * @param {string} props.authorAvatar - The path to avatar of the author. + * @param {string} props.authorAvatar - The path to the avatar of the author. */ export default function Testimonial({ className = '', text, authorName, authorDescription, - authorAvatar + authorAvatar, }: TestimonialProps) { return ( -
  • -
    -
    - - {text} +
  • +
    +
    + + {text}
    -