From 83d1f0aee2c1a679b9c42817051a16970db088f1 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Tue, 3 Mar 2026 00:25:24 +0100 Subject: [PATCH] releases --- apps/frontend/src/pages/catalog.astro | 86 ++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 8 deletions(-) diff --git a/apps/frontend/src/pages/catalog.astro b/apps/frontend/src/pages/catalog.astro index cd266a3..8e1e54a 100644 --- a/apps/frontend/src/pages/catalog.astro +++ b/apps/frontend/src/pages/catalog.astro @@ -14,9 +14,9 @@ const softwares = json.softwares;

Discover games made for TIC-80 and other platforms, with versions playable directly in your browser!

-
- {softwares.map(({ software, webPlayableRelease }) => ( -
+
+ {softwares.map(({ software, releases, latestRelease }) => ( +

{software.title}

{software.desc}

@@ -24,12 +24,82 @@ const softwares = json.softwares;
Author: {software.author}
Platform: {software.platform}
- {webPlayableRelease?.htmlFolderPath && ( - - ▶ Play in Browser - + + {/* New section for latest release buttons */} + {latestRelease && ( +
+ {latestRelease.htmlFolderPath ? ( + ▶ Play + ) : ( + ▶ Play + )} + {latestRelease.cartridgePath ? ( + Download + ) : ( + Download + )} + {latestRelease.sourcePath ? ( + Source + ) : ( + Source + )} + {latestRelease.docsFolderPath ? ( + Docs + ) : ( + Docs + )} +
)} + {/* End new section */} + +
+ + Releases ({releases.length}) + +
+ + + + + + + + + + {releases.map((release) => ( + + + + + + ))} + +
VersionDateActions
{release.version} + {new Date(release.CreatedAt).toLocaleDateString('en-US')} + + {release.htmlFolderPath ? ( + ▶ Play + ) : ( + ▶ Play + )} + {release.cartridgePath ? ( + Download + ) : ( + Download + )} + {release.sourcePath ? ( + Source + ) : ( + Source + )} + {release.docsFolderPath ? ( + Docs + ) : ( + Docs + )} +
+
+
))}