A more featured navbar
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--radius: 0.325rem;
|
--radius: 0.425rem;
|
||||||
|
|
||||||
/* Base surfaces */
|
/* Base surfaces */
|
||||||
--background: oklch(0.13 0.01 260); /* deep charcoal */
|
--background: oklch(0.13 0.01 260); /* deep charcoal */
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Button } from "../ui/button";
|
import { Button } from "../ui/button";
|
||||||
|
import {
|
||||||
|
BellIcon,
|
||||||
|
ChevronDownIcon,
|
||||||
|
StarIcon,
|
||||||
|
UserIcon,
|
||||||
|
WalletIcon,
|
||||||
|
} from "lucide-react";
|
||||||
|
|
||||||
const links = [
|
const links = [
|
||||||
{
|
{
|
||||||
@@ -25,7 +32,7 @@ export default function Navbar() {
|
|||||||
<li key={l.path}>
|
<li key={l.path}>
|
||||||
<Link
|
<Link
|
||||||
href={l.path}
|
href={l.path}
|
||||||
className="px-3 py-2 rounded-sm hover:bg-primary/20 hover:text-primary transition-colors duration-300"
|
className="px-3 py-2 rounded-lg hover:bg-primary/20 hover:text-primary transition-colors duration-300"
|
||||||
>
|
>
|
||||||
{l.name}
|
{l.name}
|
||||||
</Link>
|
</Link>
|
||||||
@@ -33,6 +40,41 @@ export default function Navbar() {
|
|||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="ml-auto flex gap-4">
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="rounded-full bg-card p-2! aspect-square"
|
||||||
|
>
|
||||||
|
<StarIcon />
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="rounded-full bg-card p-2! aspect-square"
|
||||||
|
>
|
||||||
|
<BellIcon />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
<div className="flex gap-4">
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="rounded-full bg-card p-2! aspect-square group"
|
||||||
|
>
|
||||||
|
<div className="flex gap-1 items-center h-full">
|
||||||
|
<WalletIcon />
|
||||||
|
3.13
|
||||||
|
<span className="w-[1.5px] h-full ml-1 mr-1 bg-border group-hover:bg-accent-foreground animate-colors duration-300" />
|
||||||
|
$248
|
||||||
|
<ChevronDownIcon />
|
||||||
|
</div>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
className="rounded-full bg-card p-2! aspect-square"
|
||||||
|
>
|
||||||
|
<UserIcon />
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user