diff --git a/src/app/globals.css b/src/app/globals.css index afc34f5..c3dd94a 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -163,33 +163,6 @@ } @layer components { - - /* ===== Glow effects ===== */ - .glow-purple { - box-shadow: - 0 0 20px color-mix(in oklch, var(--primary) 30%, transparent), - 0 0 40px color-mix(in oklch, var(--primary) 10%, transparent); - } - - .glow-purple-intense { - box-shadow: - 0 0 30px color-mix(in oklch, var(--primary) 50%, transparent), - 0 0 60px color-mix(in oklch, var(--primary) 20%, transparent); - } - - .glow-gold { - box-shadow: 0 0 20px color-mix(in oklch, oklch(82.8% 0.189 84.429) 70%, transparent); - /* box-shadow: 0 0 20px color-mix(in oklch, var(--chart-4) 40%, transparent); */ - } - - .glow-silver { - box-shadow: 0 0 20px color-mix(in oklch, var(--foreground) 60%, transparent); - } - - .glow-bronze { - box-shadow: 0 0 20px color-mix(in oklch, oklch(55.5% 0.163 48.998) 60%, transparent); - } - /* ===== Text glow ===== */ .text-glow { text-shadow: 0 0 20px color-mix(in oklch, var(--primary) 50%, transparent); @@ -218,44 +191,13 @@ box-shadow: 0 10px 40px color-mix(in oklch, var(--primary) 15%, transparent); } - /* ===== Timer / mono UI ===== */ + /* ===== Timer ===== */ .timer-display { font-family: var(--font-geist-mono); @apply text-6xl font-bold tracking-wider; text-shadow: 0 0 30px color-mix(in oklch, var(--primary) 60%, transparent); } - .split-time { - font-family: var(--font-geist-mono); - @apply text-sm tracking-wide; - } - - /* ===== Rank badges ===== */ - .rank-gold { - @apply bg-linear-to-r from-yellow-500 to-amber-400 text-black; - } - - .rank-silver { - @apply bg-linear-to-r from-gray-300 to-gray-400 text-black; - } - - .rank-bronze { - @apply bg-linear-to-r from-orange-600 to-amber-700 text-white; - } - - /* ===== Difficulty badges ===== */ - .diff-easy { - @apply bg-emerald-500/20 text-emerald-400 border border-emerald-500/30; - } - - .diff-medium { - @apply bg-amber-500/20 text-amber-400 border border-amber-500/30; - } - - .diff-hard { - @apply bg-red-500/20 text-red-400 border border-red-500/30; - } - /* ===== Animations ===== */ .pulse-live { animation: pulse-glow 2s ease-in-out infinite; 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 75% rename from src/app/leaderboards/page.tsx rename to src/app/leaderboard/page.tsx index 51e704a..3d18b83 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,41 +40,13 @@ export default function Leaderboards() {
- The fastest runners in the game. Will you claim a spot? +
+ 1,284 runners ยท Ranked by performance
{problem.language}
-
+
+ {problem.language}
+ - {problem.description} -
- -