From df3de9301e76b5894dc46c1d8879fdcac5237dfa Mon Sep 17 00:00:00 2001 From: "m::r" Date: Fri, 16 Jan 2026 00:08:48 +0000 Subject: [PATCH] feat(main-screen): redesigned table --- src/components/home/Home.js | 26 +++++++++++++------------- src/components/home/styles.css | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/components/home/Home.js b/src/components/home/Home.js index e02c7c2..8e47039 100644 --- a/src/components/home/Home.js +++ b/src/components/home/Home.js @@ -256,7 +256,7 @@ const Home = () => { = 4 ? 'anim-highscores-bounce' : 'anim-hidden'}`} style={{ fontSize: '1.5rem', padding: '1rem' }} > @@ -264,21 +264,21 @@ const Home = () => { = 4 ? 'anim-fade-in' : 'anim-hidden'}> - Rank + # Player - Top Score - Best Time + Score + Time Games - Time Total + {/* Total */} = 3 ? '' : 'anim-hidden'}> {leaderboard.map((player, index) => { const rank = index + 1; let medal = null; - if (rank === 1) medal = 🥇 ; - else if (rank === 2) medal = 🥈 ; - else if (rank === 3) medal = 🥉 ; + if (rank === 1) medal = 🥇; + else if (rank === 2) medal = 🥈; + else if (rank === 3) medal = 🥉; const isRevealed = revealedRows.includes(index); const rowClass = animPhase >= 5 @@ -287,8 +287,8 @@ const Home = () => { return ( - {medal}{rank} - {player.firstName} + {rank} + {medal}{player.firstName} {player.highScore} {(() => { @@ -296,11 +296,11 @@ const Home = () => { const minutes = Math.floor(totalSeconds / 60); const seconds = totalSeconds % 60; const pad = (n) => String(n).padStart(2, '0'); - return `${pad(minutes)}:${pad(seconds)}`; + return `${pad(minutes)}m ${pad(seconds)}s`; })()} {player.gamesTotal} - + {/* {(() => { const totalSeconds = player.timeTotal; const hours = Math.floor(totalSeconds / 3600); @@ -309,7 +309,7 @@ const Home = () => { const pad = (n) => String(n).padStart(2, '0'); return `${pad(hours)}:${pad(minutes)}:${pad(seconds)}`; })()} - + */} ); })} diff --git a/src/components/home/styles.css b/src/components/home/styles.css index 032b2ef..7d91a1a 100644 --- a/src/components/home/styles.css +++ b/src/components/home/styles.css @@ -131,7 +131,7 @@ body:has(.page-wrapper.animating) { .leaderboard-table .rank-cell { font-weight: 600; font-size: 1.1rem; - min-width: 80px; + min-width: 20px; } .leaderboard-table .score-cell {