From 9afd6e4fd95e23f4928a64cdd3b808e68baa2949 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Sat, 7 Feb 2026 21:01:24 +0100 Subject: [PATCH] Leaderboard UI improvement --- .../components/LeaderboardRow.tsx | 0 .../{leaderboards => leaderboard}/page.tsx | 41 +++---------------- src/app/page.tsx | 4 +- src/components/app/Footer.tsx | 2 +- src/components/app/Navbar.tsx | 4 +- 5 files changed, 11 insertions(+), 40 deletions(-) rename src/app/{leaderboards => leaderboard}/components/LeaderboardRow.tsx (100%) rename src/app/{leaderboards => leaderboard}/page.tsx (76%) diff --git a/src/app/leaderboards/components/LeaderboardRow.tsx b/src/app/leaderboard/components/LeaderboardRow.tsx similarity index 100% rename from src/app/leaderboards/components/LeaderboardRow.tsx rename to src/app/leaderboard/components/LeaderboardRow.tsx diff --git a/src/app/leaderboards/page.tsx b/src/app/leaderboard/page.tsx similarity index 76% rename from src/app/leaderboards/page.tsx rename to src/app/leaderboard/page.tsx index 51e704a..a59e046 100644 --- a/src/app/leaderboards/page.tsx +++ b/src/app/leaderboard/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { Trophy, Calendar, Globe, TrendingUp } from "lucide-react"; +import { Calendar, Globe } from "lucide-react"; import { useState } from "react"; import { Card } from "@/components/ui/card"; @@ -21,15 +21,14 @@ import { PaginationPrevious, } from "@/components/ui/pagination"; -import LeaderboardRow from "@/app/leaderboards/components/LeaderboardRow"; -import StatCard from "@/components/app/StatCard"; +import LeaderboardRow from "@/app/leaderboard/components/LeaderboardRow"; import useAction from "@/hook/use-action"; import { getGlobalLeaderboard, getWeeklyLeaderboard, } from "@/modules/leaderboard/actions"; -export default function Leaderboards() { +export default function Leaderboard() { const [global] = useAction(getGlobalLeaderboard); const [weekly] = useAction(getWeeklyLeaderboard); @@ -41,40 +40,12 @@ export default function Leaderboards() {
{/* Header */}
-

Leaderboards

-

- The fastest runners in the game. Will you claim a spot? +

Leaderboard

+

+ 1,284 runners ยท Ranked by performance

- {/* Stats */} -
- - - - -
- {/* Tabs + Filters */}
- +
diff --git a/src/components/app/Footer.tsx b/src/components/app/Footer.tsx index b483c8e..af5195c 100644 --- a/src/components/app/Footer.tsx +++ b/src/components/app/Footer.tsx @@ -34,7 +34,7 @@ const Footer = () => {

Quick Links

    - {["Problems", "Leaderboards", "Categories", "Rules"].map( + {["Problems", "Leaderboard", "Categories", "Rules"].map( (link) => (