Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
--color-pupil: oklch(0.51 0.18 142.5);
--color-newbie: oklch(0.54 0 0);

/* Leaderboard rank colors */
--color-leaderboard-first: rgb(214, 175, 54);
--color-leaderboard-second: rgb(167, 167, 173);
--color-leaderboard-third: rgb(167, 112, 68);

/* Spacing */
--spacing: 0.25rem;

Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/LeaderboardTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ function formatNumber(num: number): string {
<!-- Rank with special styling for top 3 -->
{#if entry.rank === 1}
<span
class="inline-flex h-8 w-8 items-center justify-center rounded-full bg-[var(--color-legendary-grandmaster)] font-bold text-white"
class="inline-flex h-8 w-8 items-center justify-center rounded-full bg-[var(--color-leaderboard-first)] font-bold text-white"
>
{entry.rank}
</span>
{:else if entry.rank === 2}
<span
class="inline-flex h-8 w-8 items-center justify-center rounded-full bg-[var(--color-specialist)] font-bold text-white"
class="inline-flex h-8 w-8 items-center justify-center rounded-full bg-[var(--color-leaderboard-second)] font-bold text-white"
>
{entry.rank}
</span>
{:else if entry.rank === 3}
<span
class="inline-flex h-8 w-8 items-center justify-center rounded-full bg-[var(--color-pupil)] font-bold text-white"
class="inline-flex h-8 w-8 items-center justify-center rounded-full bg-[var(--color-leaderboard-third)] font-bold text-white"
>
{entry.rank}
</span>
Expand Down