@@ -10,19 +10,16 @@ interface HorizontalClubCardProps {
10
10
session : Session | null ;
11
11
}
12
12
13
- const HorizontalClubCard : React . FC < HorizontalClubCardProps > = ( {
14
- club,
15
- session,
16
- } ) => {
13
+ const HorizontalClubCard : React . FC < HorizontalClubCardProps > = ( { club, session } ) => {
17
14
const desc =
18
15
club . description . length > 50
19
16
? club . description . slice ( 0 , 150 ) + '...'
20
17
: 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 ;
23
19
24
20
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
+
26
23
< div className = "relative w-1/3" >
27
24
< Image
28
25
src = { club . profileImage ? club . profileImage : club . image }
@@ -31,20 +28,27 @@ const HorizontalClubCard: React.FC<HorizontalClubCardProps> = ({
31
28
layout = "fill"
32
29
/>
33
30
</ 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" >
36
36
< h1 className = "text-lg font-medium text-slate-800" > { name } </ h1 >
37
37
< div className = "flex space-x-2" >
38
38
< JoinButton session = { session } clubID = { club . id } />
39
39
< Link
40
40
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 "
42
42
>
43
43
Learn More
44
44
</ Link >
45
45
</ div >
46
46
</ 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 >
48
52
</ div >
49
53
</ div >
50
54
) ;
0 commit comments