Skip to content

Commit

Permalink
back arrow added in navigaton
Browse files Browse the repository at this point in the history
  • Loading branch information
Suja16 committed Dec 7, 2024
1 parent 8c5d1c2 commit e8873a3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions packages/nextjs/app/leaderboard/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

import React from "react";
import { useRouter } from "next/navigation";
import { LEADERBOARD } from "./queries";
import { useQuery } from "@apollo/client";
import { motion } from "framer-motion";
Expand All @@ -21,6 +22,7 @@ interface LeaderboardEntry {
}

export default function Leaderboard() {
const router = useRouter();
const { data, loading, error } = useQuery(LEADERBOARD);

if (loading) {
Expand Down Expand Up @@ -53,9 +55,18 @@ export default function Leaderboard() {

return (
<div className="flex flex-col h-screen">
{/* Hero Section */}
{/* Hero Section with Back Button */}
<div className="bg-dark-surface py-8">
<div className="max-w-2xl mx-auto text-center">
<div className="max-w-2xl mx-auto text-center relative">
{/* Back Button */}
<button
onClick={() => router.back()}
className="absolute left-6 top-1/4 -translate-y-1/2
text-neon-green text-5xl hover:text-green-400 transition-colors"
>
</button>

<h1 className="text-4xl font-bold mb-4 text-neon-green glow-text">Top Stakers</h1>
<p className="text-gray-300">The highest stakers on our platform are showcased here</p>
</div>
Expand Down

0 comments on commit e8873a3

Please sign in to comment.