@@ -272,18 +272,69 @@ export default function Home() {
272272 ) }
273273 />
274274 < ItemCardList
275- title = "Recent Releases "
276- data = { data . recentReleases }
275+ title = "Recent Pull Requests "
276+ data = { data . recentPullRequests }
277277 renderDetails = { ( item ) => (
278278 < div className = "mt-2 flex items-center text-sm text-gray-600 dark:text-gray-400" >
279279 < FontAwesomeIcon icon = { faCalendar } className = "mr-2 h-4 w-4" />
280- < span > { formatDate ( item . publishedAt ) } </ span >
281- < FontAwesomeIcon icon = { faTag } className = "ml-4 mr-2 h-4 w-4" />
282- < span > { item . tagName } </ span >
280+ < span > { formatDate ( item . createdAt ) } </ span >
281+ { item ?. author . name || item ?. author . login ? (
282+ < >
283+ < FontAwesomeIcon icon = { faUser } className = "ml-4 mr-2 h-4 w-4" />
284+ < span > { item . author . name || item . author . login } </ span >
285+ </ >
286+ ) : null }
283287 </ div >
284288 ) }
285289 />
286290 </ div >
291+ < SecondaryCard title = "Recent Releases" >
292+ { data . recentReleases && data . recentReleases . length > 0 ? (
293+ < div className = "grid gap-4 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3" >
294+ { data . recentReleases . map ( ( item , index ) => (
295+ < div
296+ key = { index }
297+ className = "mb-4 w-full rounded-lg bg-gray-200 p-4 dark:bg-gray-700"
298+ >
299+ < div className = "flex w-full flex-col justify-between" >
300+ < div className = "flex w-full items-center" >
301+ < a
302+ className = "flex-shrink-0 text-blue-400 hover:underline dark:text-blue-200"
303+ href = { `/community/users/${ item ?. author ?. login } ` }
304+ >
305+ < img
306+ src = { item ?. author ?. avatarUrl }
307+ alt = { item ?. author ?. name }
308+ className = "mr-2 h-6 w-6 rounded-full"
309+ />
310+ </ a >
311+
312+ < h3 className = "flex-1 overflow-hidden text-ellipsis whitespace-nowrap font-semibold" >
313+ < a
314+ className = "text-blue-500 hover:underline dark:text-blue-400"
315+ href = { item ?. url }
316+ target = "_blank"
317+ >
318+ { item . name }
319+ </ a >
320+ </ h3 >
321+ </ div >
322+ < div className = "ml-0.5 w-full" >
323+ < div className = "mt-2 flex items-center text-sm text-gray-600 dark:text-gray-400" >
324+ < FontAwesomeIcon icon = { faCalendar } className = "mr-2 h-4 w-4" />
325+ < span > { formatDate ( item . publishedAt ) } </ span >
326+ < FontAwesomeIcon icon = { faTag } className = "ml-4 mr-2 h-4 w-4" />
327+ < span > { item . tagName } </ span >
328+ </ div >
329+ </ div >
330+ </ div >
331+ </ div >
332+ ) ) }
333+ </ div >
334+ ) : (
335+ < p > No recent releases.</ p >
336+ ) }
337+ </ SecondaryCard >
287338 < SecondaryCard title = "Recent News & Opinions" className = "overflow-hidden" >
288339 < div className = "grid gap-4 sm:grid-cols-1 md:grid-cols-2" >
289340 { data . recentPosts . map ( ( post ) => (
0 commit comments