@@ -5,6 +5,7 @@ export const BroadcastCarousel = ({ broadcasts }) => {
55 if (broadcasts .length === 0 ) {
66 return null ;
77 }
8+
89 const sorted = [... broadcasts ].sort ((a , b ) => {
910 const dateA = a .date ? new Date (a .date ) : null ;
1011 const dateB = b .date ? new Date (b .date ) : null ;
@@ -16,7 +17,7 @@ export const BroadcastCarousel = ({ broadcasts }) => {
1617 });
1718
1819 return (
19- <div className = " flex overflow-x-auto overflow-y-hidden gap-5 py-5" >
20+ <div className = " grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 py-5" >
2021 { sorted .map ((broadcast , index ) => {
2122 if (! broadcast .url ) return null ;
2223 return (
@@ -25,7 +26,7 @@ export const BroadcastCarousel = ({ broadcasts }) => {
2526 href = { broadcast .url }
2627 target = " _blank"
2728 rel = " noopener noreferrer"
28- className = " block not-prose text-inherit no-underline flex-shrink-0 w-[480px] max-w-[480px] rounded-xl overflow-hidden bg-black border border-gray-700 transition-transform hover:-translate-y-0.5 hover:shadow-lg"
29+ className = " block not-prose text-inherit no-underline rounded-xl overflow-hidden bg-black border border-gray-700 transition-transform hover:-translate-y-0.5 hover:shadow-lg"
2930 style = { { margin: 0 }}
3031 >
3132 <div
@@ -42,13 +43,13 @@ export const BroadcastCarousel = ({ broadcasts }) => {
4243 style = { {
4344 bottom: ' -14%' ,
4445 left: ' -7%' ,
45- width: ' 400px ' ,
46- height: ' 400px '
46+ width: ' 300px ' ,
47+ height: ' 300px '
4748 }}
4849 >
4950 <svg
50- width = " 400 "
51- height = " 400 "
51+ width = " 300 "
52+ height = " 300 "
5253 viewBox = " 0 0 1200 1227"
5354 fill = " none"
5455 xmlns = " http://www.w3.org/2000/svg"
@@ -60,22 +61,37 @@ export const BroadcastCarousel = ({ broadcasts }) => {
6061 </svg >
6162 </div >
6263 <div
63- className = " absolute inset-0 flex items-center justify-center text-white cursor-pointer bg-black/30"
64+ className = " absolute text-white cursor-pointer bg-black/30"
65+ style = { {
66+ top: ' 50%' ,
67+ left: ' 50%' ,
68+ transform: ' translate(-50%, -50%)' ,
69+ width: ' 100%' ,
70+ height: ' 100%' ,
71+ display: ' flex' ,
72+ alignItems: ' center' ,
73+ justifyContent: ' center'
74+ }}
6475 >
6576 <div
66- className = " w-20 h-20 rounded-full bg-black/90 border-2 border-white/30 flex items-center justify-center transition-transform hover:scale-110"
77+ className = " w-16 h-16 rounded-full bg-black/90 border-2 border-white/30 flex items-center justify-center transition-transform hover:scale-110"
78+ style = { {
79+ display: ' flex' ,
80+ alignItems: ' center' ,
81+ justifyContent: ' center'
82+ }}
6783 >
68- <div className = " text-white text-3xl ml-1 " >▶</div >
84+ <div className = " text-white text-2xl " style = { { marginLeft: ' 2px ' } } >▶</div >
6985 </div >
7086 </div >
7187 </div >
7288 { broadcast .title && (
73- <div className = " p-4 bg-black border-t border-gray-700" >
74- <div className = " text-white text-base font-semibold leading-snug mb-1" >
89+ <div className = " p-3 bg-black border-t border-gray-700" >
90+ <div className = " text-white text-sm font-semibold leading-snug mb-1" >
7591 { broadcast .title }
7692 </div >
7793 { broadcast .date && (
78- <div className = " text-gray-400 text-sm font-normal leading-snug" >
94+ <div className = " text-gray-400 text-xs font-normal leading-snug" >
7995 { broadcast .date }
8096 </div >
8197 )}
0 commit comments