From e66441c8ee98fc6271216c0798302ff8c7a00b1c Mon Sep 17 00:00:00 2001 From: renatodellosso Date: Tue, 31 Dec 2024 12:06:34 -0500 Subject: [PATCH] Added leaderboard --- components/Footer.tsx | 12 +++++ lib/Types.ts | 17 +++++++ lib/api/ClientApi.ts | 68 ++++++++++++++++++++++++++++ pages/leaderboard.tsx | 101 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 198 insertions(+) create mode 100644 pages/leaderboard.tsx diff --git a/components/Footer.tsx b/components/Footer.tsx index 6a93661d..763153cf 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -7,12 +7,14 @@ import { FaGithub, FaInstagram, FaList, + FaTrophy, } from "react-icons/fa"; import { TbUfo } from "react-icons/tb"; import Link from "next/link"; import { MdAlternateEmail } from "react-icons/md"; import { HiStatusOnline } from "react-icons/hi"; import { useEffect, useState } from "react"; +import Leaderboard from '../pages/leaderboard'; export default function Footer() { const [swStatus, setSwStatus] = useState("Finding service worker..."); @@ -136,6 +138,16 @@ export default function Footer() { /> About Us + + + Leaderboard +