Skip to content

Commit

Permalink
leaderboard link done
Browse files Browse the repository at this point in the history
  • Loading branch information
Suja16 committed Dec 7, 2024
1 parent 163f480 commit f56089e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
3 changes: 2 additions & 1 deletion packages/nextjs/app/leaderboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { LEADERBOARD } from "./queries";
import { useQuery } from "@apollo/client";
import { motion } from "framer-motion";
import { formatEther } from "viem";
import { Address } from "~~/components/scaffold-eth";

interface UserStake {
id: string;
Expand Down Expand Up @@ -105,7 +106,7 @@ export default function Leaderboard() {
<span className="font-bold">{entry.rank}</span>
</div>
<span className="text-gray-300 font-mono">
{entry.address.slice(0, 6)}...{entry.address.slice(-4)}
<Address address={entry.address} format="short" />
</span>
</div>
<span className={`font-bold ${entry.rank === 1 ? "text-neon-green" : "text-gray-300"}`}>
Expand Down
17 changes: 3 additions & 14 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { useAccount } from "wagmi";
import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline";
import { StakingABI } from "~~/abis/StakingABI";
import StakeButton from "~~/components/StakeButton";
import StakeCard from "~~/components/StakeCard";
import StatsComponent from "~~/components/StatsComponent";
import StepComponent from "~~/components/StepComponent";
import { Address } from "~~/components/scaffold-eth";
import StakeCard from "~~/components/StakeCard";

const Home: NextPage = () => {
const { address: connectedAddress } = useAccount();
Expand Down Expand Up @@ -44,24 +44,13 @@ const Home: NextPage = () => {
<StepComponent currentSteps={2000} totalSteps={6000} />
</div>


{/* Stake Card with CTA Arrow */}
<div className="relative">
<div className="absolute -top-12 right-10 animate-bounce">
<div className="flex items-center text-neon-green">
<span className="mr-2 font-bold">Stake Now!</span>
<svg
className="w-6 h-6 transform rotate-90"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M19 14l-7 7m0 0l-7-7m7 7V3"
/>
<svg className="w-6 h-6 transform rotate-90" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 14l-7 7m0 0l-7-7m7 7V3" />
</svg>
</div>
</div>
Expand Down

0 comments on commit f56089e

Please sign in to comment.