From 9762f61a73df413cfd7edf21ec07bbb690815538 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Mon, 2 Feb 2026 14:15:51 +0100 Subject: [PATCH] Improved nav --- src/app/page.tsx | 5 +-- src/components/app/Navbar.tsx | 70 +++++++++++++++++++++-------------- 2 files changed, 44 insertions(+), 31 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 361b446..dfb6439 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -68,9 +68,8 @@ const Landing = () => { className="text-xl text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed animate-fade-in stagger-2 opacity-0" style={{ animationFillMode: "forwards" }} > - DevRun is competitive programming reimagined. Race the clock - through algorithmic challenges, track your splits, and compete for - the fastest runs on the global leaderboard. + Race the clock through challenges, track your splits, and compete + for the fastest runs on the global leaderboard.

{/* CTA Buttons */} diff --git a/src/components/app/Navbar.tsx b/src/components/app/Navbar.tsx index 4dadf46..d8277b4 100644 --- a/src/components/app/Navbar.tsx +++ b/src/components/app/Navbar.tsx @@ -1,7 +1,36 @@ +"use client"; + import Link from "next/link"; import { Timer, Trophy, User, Zap } from "lucide-react"; +import { usePathname } from "next/navigation"; +import { cn } from "@/lib/utils"; + +const navs = [ + { + link: "/problems", + icon: Zap, + name: "Problems", + }, + { + link: "/run", + icon: Timer, + name: "Run", + }, + { + link: "/leaderboards", + icon: Trophy, + name: "Leaderboards", + }, + { + link: "/profile", + icon: User, + name: "Profile", + }, +]; const Navbar = () => { + const pathname = usePathname(); + return (