Skip to content

Commit ed6b036

Browse files
authored
Update HorizontalClubCard.tsx
1 parent 5f85f9e commit ed6b036

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

Diff for: src/components/club/HorizontalClubCard.tsx

+15-11
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,16 @@ interface HorizontalClubCardProps {
1010
session: Session | null;
1111
}
1212

13-
const HorizontalClubCard: React.FC<HorizontalClubCardProps> = ({
14-
club,
15-
session,
16-
}) => {
13+
const HorizontalClubCard: React.FC<HorizontalClubCardProps> = ({ club, session }) => {
1714
const desc =
1815
club.description.length > 50
1916
? club.description.slice(0, 150) + '...'
2017
: club.description;
21-
const name =
22-
club.name.length > 20 ? club.name.slice(0, 30) + '...' : club.name;
18+
const name = club.name.length > 20 ? club.name.slice(0, 30) + '...' : club.name;
2319

2420
return (
25-
<div className="flex h-48 w-full overflow-hidden rounded-lg bg-white shadow-lg">
21+
<div className="flex h-48 w-full rounded-lg bg-white shadow-lg overflow-hidden">
22+
2623
<div className="relative w-1/3">
2724
<Image
2825
src={club.profileImage ? club.profileImage : club.image}
@@ -31,20 +28,27 @@ const HorizontalClubCard: React.FC<HorizontalClubCardProps> = ({
3128
layout="fill"
3229
/>
3330
</div>
34-
<div className="flex w-2/3 flex-col p-4">
35-
<div className="flex items-center justify-between">
31+
32+
33+
<div className="flex flex-col w-2/3 p-4">
34+
35+
<div className="flex justify-between items-start">
3636
<h1 className="text-lg font-medium text-slate-800">{name}</h1>
3737
<div className="flex space-x-2">
3838
<JoinButton session={session} clubID={club.id} />
3939
<Link
4040
href={`/directory/${club.id}`}
41-
className="rounded-md bg-blue-100 px-4 py-2 text-center text-blue-600 hover:bg-blue-200"
41+
className="rounded-full bg-blue-100 hover:bg-blue-200 text-blue-600 text-center px-3 py-1"
4242
>
4343
Learn More
4444
</Link>
4545
</div>
4646
</div>
47-
<p className="text-sm text-slate-500">{desc}</p>
47+
48+
49+
<p className="text-sm text-slate-500 mt-2 mr-32">
50+
{desc}
51+
</p>
4852
</div>
4953
</div>
5054
);

0 commit comments

Comments
 (0)