Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: testimonials alignment #3515

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions components/Testimonial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,24 @@ export default function Testimonial({
authorAvatar
}: TestimonialProps) {
return (
<li className={`p-4 sm:px-6 md:flex md:flex-row md:py-4 md:pr-0 ${className}`}>
<blockquote className='mt-8 md:flex md:grow md:flex-col'>
<div className='relative text-lg font-medium leading-7 text-gray-600 md:flex-1'>
<li className={`flex flex-col gap-6 p-6 sm:px-8 sm:py-6 md:flex-row md:items-start md:gap-8 md:p-8 ${className}`}>
<blockquote className='flex flex-col gap-6 text-left md:grow'>
<div className='relative text-lg font-medium leading-7 text-gray-600'>
<IconQuote className='absolute left-0 top-0 size-8 -translate-y-2 text-primary-500' />
<Paragraph className='relative pl-10 text-left'>{text}</Paragraph>
<Paragraph className='relative pl-12'>{text}</Paragraph>
</div>
<footer className='mt-6'>
<div className='flex'>
<figure className='inline-flex shrink-0 rounded-full border-2 border-white'>
<img className='size-12 rounded-full' src={authorAvatar} alt={authorName} data-testid='Testimonial-img' />
</figure>
<div className='ml-4 text-left'>
<p className='text-base font-bold leading-6 text-gray-900'>{authorName}</p>
<p className='text-base font-medium leading-6 text-primary-500'>{authorDescription}</p>
</div>
<footer className='flex items-center gap-4'>
<figure className='shrink-0'>
<img
className='size-12 rounded-full border-2 border-white'
src={authorAvatar}
alt={authorName}
data-testid='Testimonial-img'
/>
</figure>
<div className='ml-4 text-left'>
<p className='text-base font-bold leading-6 text-gray-900'>{authorName}</p>
<p className='text-sm font-medium leading-5 text-primary-500'>{authorDescription}</p>
</div>
</footer>
</blockquote>
Expand Down
Loading