Skip to content

Commit 6f0bb26

Browse files
fix: #1452 Testimonial card position (#1458)
* fix: #1452 Testimonial card position * fix: #1452 testimonial card position (Changes done) --------- Co-authored-by: Priyankar Pal <[email protected]>
1 parent ec41e36 commit 6f0bb26

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

src/common/Testimonial/TestimonialCard.jsx

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,29 @@ const TestimonialCard = ({ home, quote, name, avatarUrl, category, created_at, e
2727

2828
return (
2929
<div className="py-4">
30-
<div className="flex items-center gap-4 px-6 sm:h-16">
31-
<a href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}>
32-
<img
33-
alt="Profile Picture"
34-
className="h-12 w-12 rounded-full object-cover"
35-
src={avatarUrl}
36-
/>
37-
</a>
38-
39-
<div className="text-sm flex-1">
40-
<a
41-
className="font-medium"
42-
href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}
43-
>
44-
{name}
30+
<div className="flex justify-between items-center min-w-full gap-4 px-6 sm:h-16">
31+
<div className="!m-0 flex items-center gap-4">
32+
<a href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}>
33+
<img
34+
alt="Profile Picture"
35+
className="h-12 w-12 rounded-full object-cover"
36+
src={avatarUrl}
37+
/>
4538
</a>
46-
<p className="mt-0.5">{formattedDate}</p>
39+
40+
<div className="text-sm flex-1">
41+
<a
42+
className="font-medium"
43+
href={`${getHostName()}/contributors/${email2Slug(email)}/badges`}
44+
>
45+
{name}
46+
</a>
47+
<p className="mt-0.5">{formattedDate}</p>
48+
</div>
49+
</div>
50+
<div className="text-xs font-semibold tracking-wide uppercase bg-green-200 text-green-900 rounded-full px-2 py-1">
51+
<span className="">{category}</span>
4752
</div>
48-
<span className="text-xs font-semibold tracking-wide uppercase bg-green-200 text-green-900 rounded-full px-2 py-1">
49-
{category}
50-
</span>
5153
</div>
5254

5355
<div className="mx-2 mt-4">

0 commit comments

Comments
 (0)