Winner tag

This commit is contained in:
MeowcaTheoRange 2024-04-25 16:58:18 -05:00
parent 2dbb64b452
commit 5ae4e20d37

View file

@ -156,7 +156,7 @@ export default async function Home({
<p><small>Submitted to <a href={`/jams/jam/${submittedJam?.id}?until=${content.submitted}`}>{submittedJam?.name}</a> - {new Date(parseInt(content.submitted)).toDateString()}</small></p>
</ConditionalNull>
<ConditionalNull condition={submittedJam == null}>
<p><small>Submitted on {new Date(parseInt(content.submitted)).toDateString()}</small></p>
<p><small>Submitted on {new Date(parseInt(content.submitted)).toDateString()} {content.winner && submittedJam != null && <>- <b>WINNER!</b></>}</small></p>
</ConditionalNull>
<p>{content.description}</p>
</div>);