2025-06-25 09:36:07 +01:00
|
|
|
import { Link, useLocation } from 'react-router-dom';
|
|
|
|
|
import { Button } from '@/components/ui/button';
|
2025-07-08 17:00:25 +01:00
|
|
|
import { FolderOpen, Settings, BookOpen, Server } from 'lucide-react';
|
2025-06-25 09:36:07 +01:00
|
|
|
import { Logo } from '@/components/logo';
|
2025-06-14 17:22:55 -04:00
|
|
|
|
2025-06-17 14:17:31 -04:00
|
|
|
export function Navbar() {
|
2025-06-17 20:36:25 -04:00
|
|
|
const location = useLocation();
|
2025-06-14 17:22:55 -04:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="border-b">
|
2025-06-21 17:36:07 +01:00
|
|
|
<div className="w-full px-4 sm:px-6 lg:px-8">
|
2025-06-14 17:22:55 -04:00
|
|
|
<div className="flex items-center justify-between h-16">
|
|
|
|
|
<div className="flex items-center space-x-6">
|
2025-06-17 21:41:57 -04:00
|
|
|
<Logo />
|
2025-06-14 17:22:55 -04:00
|
|
|
<div className="flex items-center space-x-1">
|
|
|
|
|
<Button
|
|
|
|
|
asChild
|
2025-06-17 20:36:25 -04:00
|
|
|
variant={
|
2025-06-25 09:36:07 +01:00
|
|
|
location.pathname === '/projects' ? 'default' : 'ghost'
|
2025-06-17 20:36:25 -04:00
|
|
|
}
|
2025-06-14 17:22:55 -04:00
|
|
|
size="sm"
|
|
|
|
|
>
|
|
|
|
|
<Link to="/projects">
|
|
|
|
|
<FolderOpen className="mr-2 h-4 w-4" />
|
|
|
|
|
Projects
|
|
|
|
|
</Link>
|
|
|
|
|
</Button>
|
2025-07-01 13:47:35 +01:00
|
|
|
<Button
|
|
|
|
|
asChild
|
|
|
|
|
variant={
|
|
|
|
|
location.pathname === '/mcp-servers' ? 'default' : 'ghost'
|
|
|
|
|
}
|
|
|
|
|
size="sm"
|
|
|
|
|
>
|
|
|
|
|
<Link to="/mcp-servers">
|
|
|
|
|
<Server className="mr-2 h-4 w-4" />
|
|
|
|
|
MCP Servers
|
|
|
|
|
</Link>
|
|
|
|
|
</Button>
|
2025-06-19 12:53:41 -04:00
|
|
|
<Button
|
|
|
|
|
asChild
|
|
|
|
|
variant={
|
2025-06-25 09:36:07 +01:00
|
|
|
location.pathname === '/settings' ? 'default' : 'ghost'
|
2025-06-19 12:53:41 -04:00
|
|
|
}
|
|
|
|
|
size="sm"
|
|
|
|
|
>
|
|
|
|
|
<Link to="/settings">
|
|
|
|
|
<Settings className="mr-2 h-4 w-4" />
|
|
|
|
|
Settings
|
|
|
|
|
</Link>
|
|
|
|
|
</Button>
|
2025-06-14 17:22:55 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-06-22 23:32:33 +01:00
|
|
|
<div className="flex items-center">
|
2025-07-08 17:00:25 +01:00
|
|
|
<Button asChild variant="ghost" size="sm">
|
|
|
|
|
<a
|
|
|
|
|
href="https://vibekanban.com/"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
|
>
|
|
|
|
|
<BookOpen className="mr-2 h-4 w-4" />
|
|
|
|
|
Docs
|
|
|
|
|
</a>
|
|
|
|
|
</Button>
|
2025-06-22 23:32:33 +01:00
|
|
|
</div>
|
2025-06-14 17:22:55 -04:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-06-17 20:36:25 -04:00
|
|
|
);
|
2025-06-14 17:22:55 -04:00
|
|
|
}
|