@@ -17,28 +17,28 @@ const SubredditInfo: React.FC<SubredditInfoProps> = ({ public_description_html,
1717 const gradientClass = "bg-gradient-to-r from-blue-200 to-green-200 dark:from-gray-800 dark:to-gray-900" ;
1818
1919 return (
20- < div className = { `${ gradientClass } p-2 rounded-md text-sm overflow-scroll ` } >
20+ < div className = { `${ gradientClass } p-2 rounded-lg shadow- md hover:shadow-lg transition-shadow duration-200 text-sm ` } >
2121 < div
22- className = "rich-text-content text-black text-sm leading-relaxed overflow-hidden dark:text-white mb-2 "
22+ className = "rich-text-content text-black text-sm leading-relaxed overflow-hidden dark:text-white mb-4 prose dark:prose-invert max-w-none "
2323 dangerouslySetInnerHTML = { {
2424 __html : he . decode ( public_description_html ) ,
2525 } }
2626 />
27- < div className = "flex flex-col space-y-1 text-sm " >
27+ < div className = "flex justify-between items-center border-t border-gray-200 dark:border-gray-700 pt-3 " >
2828 { subscribers && (
29- < div className = "flex items-center text-black dark:text-white" >
30- < span aria-label = "members" className = "mr-1 " >
29+ < div className = "flex items-center text-black dark:text-white bg-white/30 dark:bg-black/10 rounded-full px-4 py-1.5 " >
30+ < span aria-label = "members" className = "mr-2 " >
3131 < UserGroupIcon />
3232 </ span >
33- < span className = "font-base " > { subscribers . toLocaleString ( "en-US" ) } Members</ span >
33+ < span className = "text-xs sm:text-sm font-medium " > { subscribers . toLocaleString ( "en-US" ) } Members</ span >
3434 </ div >
3535 ) }
3636 { accounts_active && (
37- < div className = "flex items-center text-black dark:text-white" >
38- < span aria-label = "online" className = "mr-1 " >
37+ < div className = "flex items-center text-black dark:text-white bg-white/30 dark:bg-black/10 rounded-full px-4 py-1.5 " >
38+ < span aria-label = "online" className = "mr-2 " >
3939 < UserOnlineIcon />
4040 </ span >
41- < span className = "font-base " > { accounts_active . toLocaleString ( "en-US" ) } Online</ span >
41+ < span className = "text-xs sm:text-sm font-medium " > { accounts_active . toLocaleString ( "en-US" ) } Online</ span >
4242 </ div >
4343 ) }
4444 </ div >
0 commit comments