@@ -41,29 +41,27 @@ const Events = () => {
41
41
< a target = '_blank' href = { item . link } className = 'h-fit aspect-video' >
42
42
< img src = { item . image } className = { `w-full md:w-96 h-fit aspect-video rounded-sm absolute'}` } />
43
43
</ a >
44
- < div >
45
- < h2 className = 'font-bold text-2xl' > { item . title } </ h2 >
46
- < hr / >
47
- < p className = 'text-gray-800 font-medium ' > { events . length != 0 ? dateConverter ( item . start_date , item . end_date ) : "" } </ p >
44
+ < div className = 'flex flex-col justify-between' >
45
+ < div className = 'w-fit' >
46
+ < h2 className = 'font-semibold text-xl text-secondary dark:text-white' > { item . title } </ h2 >
47
+ < p className = 'text-grey font-bold pb-4 dark:text-gray-300 ' > { events . length != 0 ? dateConverter ( item . start_date , item . end_date ) : "" } </ p >
48
48
< p className = { `line-clamp-6 mb-1` } > { item . short_description } </ p >
49
49
< a href = { item . link } class = { `bg-snow p-3 text-center text-black dark:text-white hover:brightness-[95%] d-block inline-block mt-2 text-sm rounded-sm` } target = '_blank' >
50
50
Read more
51
51
</ a >
52
+ </ div >
53
+
52
54
</ div >
53
55
</ div >
54
56
:
55
57
""
56
58
}
57
59
</ >
58
60
) ) }
59
- < div className = 'flex gap-4 overflow-hidden overflow-x-scroll' >
60
- { events . slice ( 2 , 6 ) . map ( ( item , index ) => (
61
- < a key = { index } className = 'flex flex-col' target = '_blank' href = { item . link } >
62
- < img src = { item . image } className = { `w-64 h-fit aspect-video rounded-sm absolute'}` } />
63
- < div >
64
- < h2 className = 'font-bold text-2xl' > { item . title } </ h2 >
65
- < p className = 'text-gray-800 font-medium' > { events . length != 0 ? dateConverter ( item . start_date , item . end_date ) : "" } </ p >
66
- </ div >
61
+ < div className = 'flex overflow-hidden overflow-x-scroll' >
62
+ { events . slice ( 2 , 9 ) . map ( ( item , index ) => (
63
+ < a key = { index } className = 'flex flex-col rounded pr-1 pb-1 pt-1' target = '_blank' href = { item . link } >
64
+ < img src = { item . image } className = { `w-64 h-fit aspect-video rounded-sm absolute'}` } />
67
65
</ a >
68
66
) ) }
69
67
</ div >
0 commit comments