Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion frontend/src/components/AppSidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Smile, BadgeCheck, Home, BookOpen } from "lucide-react";
import { Smile, BadgeCheck, Home, BookOpen , Table2 } from "lucide-react";

import {
Sidebar,
Expand Down Expand Up @@ -33,6 +33,11 @@ const items = [
url: "/badges",
icon: BadgeCheck,
},
{
title: "Leaderboard",
url: "/leaderboard",
icon: Table2,
},
];

export function AppSidebar() {
Expand Down
23 changes: 23 additions & 0 deletions frontend/src/components/pages/Leaderboardcontent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { AppWrapper } from "@/components/AppWrapper";

export default function LeaderboardContent() {
return (

<section className="mx-auto max-w-4xl px-4 sm:px-6 lg:px-8 py-10 space-y-8">
<div className="flex items-center justify-between">
<h1 className="text-3xl font-bold tracking-tight">LeaderBoard</h1>
<a
href="https://discord.gg/axCqT23Xhj"
target="_blank"
rel="noreferrer"
className="inline-flex items-center rounded-md bg-indigo-600 px-4 py-2 text-sm font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"
>
Join our Discord
</a>
</div>
{/* Leaderboard content goes here */}
</section>

)
}

15 changes: 15 additions & 0 deletions frontend/src/pages/leaderboard.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
import Layout from "@/layouts/Layout.astro";
// Alias the component to something like 'LeaderboardContent'
import LeaderboardContent from "@/components/pages/Leaderboardcontent";
import { AppWrapper } from "@/components/AppWrapper";
---

<Layout title="Leaderboard - The Guild Genesis">
<div class="min-h-screen bg-gray-50">
<AppWrapper client:only="react">
<!-- Use the aliased name here -->
<LeaderboardContent />
</AppWrapper>
</div>
</Layout>
Loading