diff --git a/src/build.mts b/src/build.mts index 26d5b6a..79d11a9 100644 --- a/src/build.mts +++ b/src/build.mts @@ -205,6 +205,10 @@ function indexHtml(): string { .map(e => renderGameCard(...e)) .join('\n') + const finalGameCards = FINAL_TEAMS.map(teamName => + renderGameCard(teamName, metaInfos.get(teamName)!), + ).join('\n') + return /*html*/ ` @@ -273,6 +277,12 @@ function indexHtml(): string { } } + .game-cards-final { + display: grid; + grid-template-columns: ${FINAL_TEAMS.map(() => '1fr').join(' ')}; + gap: 1rem; + } + .game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); @@ -349,11 +359,13 @@ function indexHtml(): string {

MoonBit Code JAM 2024

+

决赛作品展示

+
+
+ ${finalGameCards} +
+

选手提交作品展示

-
${gameCards}