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: #1452 Testimonial card position #1458

Merged
merged 3 commits into from
Feb 17, 2024
Merged
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
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 px-6 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
Loading