Skip to content

Commit

Permalink
fixed: reactplay#1452 testimonial card position (Changes done)
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddh744542 committed Feb 17, 2024
1 parent 5ca67c2 commit fbdce75
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions src/common/Testimonial/TestimonialCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,29 @@ const TestimonialCard = ({ home, quote, name, avatarUrl, category, created_at, e

return (
<div className="py-4">
<div className="flex items-center gap-4 justify-between sm:h-16">
<a href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}>
<img
alt="Profile Picture"
className="h-12 w-12 rounded-full object-cover"
src={avatarUrl}
/>
</a>

<div className="text-sm flex-1">
<a
className="font-medium"
href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}
>
{name}
<div className="flex justify-between items-center min-w-full gap-4 px-6 sm:h-16">
<div className="!m-0 flex items-center gap-4">
<a href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}>
<img
alt="Profile Picture"
className="h-12 w-12 rounded-full object-cover"
src={avatarUrl}
/>
</a>
<p className="mt-0.5">{formattedDate}</p>

<div className="text-sm flex-1">
<a
className="font-medium"
href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}
>
{name}
</a>
<p className="mt-0.5">{formattedDate}</p>
</div>
</div>
<div className="text-xs font-semibold tracking-wide uppercase bg-green-200 text-green-900 rounded-full px-2 py-1">
<span className="">{category}</span>
</div>
<span className="text-xs font-semibold tracking-wide uppercase bg-green-200 text-green-900 rounded-full px-2 py-1">
{category}
</span>
</div>

<div className="mx-2 mt-4">
Expand Down

0 comments on commit fbdce75

Please sign in to comment.