diff --git a/app/sidebar.tsx b/app/sidebar.tsx index aca959a..f1ad266 100644 --- a/app/sidebar.tsx +++ b/app/sidebar.tsx @@ -6,6 +6,7 @@ import { useTheme } from "next-themes" import Link from "next/link" import { usePathname } from "next/navigation" import { useEffect, useState } from "react" +import { Laptop, Moon, Sun } from "lucide-react" import { Sidebar, SidebarContent, @@ -91,11 +92,14 @@ function ButtonThemeCycleToggle() { type="button" onClick={handleClick} className={cn( - "hover:bg-sidebar-accent/50 active:bg-sidebar-accent/50 hover:text-primary w-auto text-lg transition-all duration-150 md:text-sm" + "hover:bg-sidebar-accent/50 active:bg-sidebar-accent/50 hover:text-primary w-full text-lg transition-all duration-200 ease-in-out md:text-sm flex items-center gap-2" )} aria-label={`Theme: ${label}. Click to switch to ${next}`} > - {label} + {current === "light" && } + {current === "dark" && } + {current === "system" && } + {label} ) } @@ -130,14 +134,16 @@ export function AppSidebar() { - -

prompt-kit

+ +

+ prompt-kit +

- + Get Started @@ -150,9 +156,9 @@ export function AppSidebar() { {item.title} @@ -162,7 +168,8 @@ export function AppSidebar() { })} - + + Components @@ -176,9 +183,9 @@ export function AppSidebar() { {item.title} {showNewBadge && ( - + new )} @@ -201,38 +208,47 @@ export function AppSidebar() { })} + + + Advanced + - - - - Blocks - - - - - - - Primitives -
new
- -
-
+ + + + + Blocks + + + + + + + Primitives + + new + + + + +
- + + Integrations @@ -245,9 +261,9 @@ export function AppSidebar() { {item.title} @@ -257,18 +273,22 @@ export function AppSidebar() { })} - + + LLMs {llms.map((item) => { + const isActive = currentPath === item.url return ( - + {item.title} @@ -278,32 +298,41 @@ export function AppSidebar() { })} - - - - Showcase - - + + + Gallery - + + + + + + Showcase + + + + + + + Social {socialMenuItems.map((item) => { return ( - + - + + Theme