added docs and fixed level bridger
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
import { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { Menu, X, Trophy, Sparkles } from "lucide-react";
|
||||
import { Menu, X, Trophy, Sparkles, BookMarked } from "lucide-react";
|
||||
|
||||
|
||||
interface DashboardSidebarProps {
|
||||
guildId: string;
|
||||
@@ -45,10 +46,14 @@ export default function DashboardSidebar({ guildId }: DashboardSidebarProps) {
|
||||
|
||||
{/* Sidebar */}
|
||||
<div
|
||||
className={`fixed lg:relative inset-y-0 left-0 z-40 w-64 flex-shrink-0 bg-black/90 lg:bg-black/20 border-r border-white/10 overflow-y-auto backdrop-blur-md lg:backdrop-blur-sm transform transition-transform duration-300 ease-in-out ${sidebarOpen ? "translate-x-0" : "-translate-x-full lg:translate-x-0"
|
||||
className={`fixed inset-y-0 left-0 z-40 w-64 flex-shrink-0 bg-black/90 lg:bg-black/20 border-r border-white/10 backdrop-blur-md lg:backdrop-blur-sm transform transition-transform duration-300 ease-in-out flex flex-col ${sidebarOpen ? "translate-x-0" : "-translate-x-full lg:translate-x-0"
|
||||
}`}
|
||||
>
|
||||
<div className="p-4 space-y-2 pt-20 lg:pt-4">
|
||||
|
||||
<div className="p-4 space-y-2 pt-20 lg:pt-24 flex-1 overflow-y-auto">
|
||||
|
||||
|
||||
|
||||
{menuItems.map((item) => {
|
||||
const Icon = item.icon;
|
||||
const isActive = activeTab === item.id;
|
||||
@@ -60,8 +65,8 @@ export default function DashboardSidebar({ guildId }: DashboardSidebarProps) {
|
||||
href={href}
|
||||
onClick={() => setSidebarOpen(false)}
|
||||
className={`w-full text-left px-4 py-3 rounded-lg font-medium transition-all flex items-center gap-3 ${isActive
|
||||
? "bg-blue-600/20 text-blue-400 border border-blue-600/30"
|
||||
: "text-gray-400 hover:text-white hover:bg-white/5 border border-transparent"
|
||||
? "bg-blue-600/20 text-blue-400 border border-blue-600/30"
|
||||
: "text-gray-400 hover:text-white hover:bg-white/5 border border-transparent"
|
||||
}`}
|
||||
>
|
||||
<Icon className="w-5 h-5" />
|
||||
@@ -70,7 +75,19 @@ export default function DashboardSidebar({ guildId }: DashboardSidebarProps) {
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{/* Docs Link at Bottom */}
|
||||
<div className="p-4 mt-auto border-t border-white/10">
|
||||
<Link
|
||||
href="/docs"
|
||||
className="w-full text-left px-4 py-3 rounded-lg font-medium transition-all flex items-center gap-3 text-gray-400 hover:text-white hover:bg-white/5 border border-transparent"
|
||||
>
|
||||
<BookMarked className="w-5 h-5" />
|
||||
Documentation
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user