Spaces:
Build error
Build error
Download components/Layout.js from powerllm/anycoder-4c742612: direct link, hf CLI and curl.
- Browser
- Download file 2.67 kB
-
https://huggingface.co/spaces/powerllm/anycoder-4c742612/resolve/main/components/Layout.js
- Command line
-
hf download hf://spaces/powerllm/anycoder-4c742612/components/Layout.js
-
curl -L -o Layout.js https://huggingface.co/spaces/powerllm/anycoder-4c742612/resolve/main/components/Layout.js
2.67 kB
| import Link from 'next/link'; | |
| import { Activity, BookOpen, Settings, BarChart3 } from 'lucide-react'; | |
| export default function Layout({ children, activeTab, setActiveTab }) { | |
| const navItems = [ | |
| { id: 'dashboard', icon: Activity, label: 'Scanner' }, | |
| { id: 'signals', icon: BarChart3, label: 'Signals' }, | |
| { id: 'knowledge', icon: BookOpen, label: 'Knowledge Base' }, | |
| { id: 'settings', icon: Settings, label: 'Settings' }, | |
| ]; | |
| return ( | |
| <div className="min-h-screen flex flex-col md:flex-row bg-ict-dark text-slate-200 font-sans"> | |
| <aside className="w-full md:w-64 bg-slate-900 border-r border-slate-800 flex flex-col"> | |
| <div className="p-6 border-b border-slate-800"> | |
| <h1 className="text-2xl font-bold bg-gradient-to-r from-blue-400 to-emerald-400 bg-clip-text text-transparent"> | |
| ICT Antigravity | |
| </h1> | |
| <p className="text-xs text-slate-500 mt-1">Algorithmic Market Scanner</p> | |
| </div> | |
| <nav className="flex-1 p-4 space-y-2"> | |
| {navItems.map((item) => ( | |
| <button | |
| key={item.id} | |
| onClick={() => setActiveTab(item.id)} | |
| className={`w-full flex items-center space-x-3 px-4 py-3 rounded-lg transition-all duration-200 ${ | |
| activeTab === item.id | |
| ? 'bg-blue-600/20 text-blue-400 border border-blue-600/30' | |
| : 'text-slate-400 hover:bg-slate-800 hover:text-slate-200' | |
| }`} | |
| > | |
| <item.icon size={20} /> | |
| <span className="font-medium">{item.label}</span> | |
| </button> | |
| ))} | |
| </nav> | |
| <div className="p-4 border-t border-slate-800"> | |
| <div className="flex items-center justify-between mb-4"> | |
| <span className="text-xs text-slate-400">System Status</span> | |
| <span className="flex h-2 w-2 relative"> | |
| <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"></span> | |
| <span className="relative inline-flex rounded-full h-2 w-2 bg-emerald-500"></span> | |
| </span> | |
| </div> | |
| <a | |
| href="https://huggingface.co/spaces/akhaliq/anycoder" | |
| target="_blank" | |
| rel="noopener noreferrer" | |
| className="text-xs text-blue-400 hover:text-blue-300 transition-colors block text-center" | |
| > | |
| Built with anycoder | |
| </a> | |
| </div> | |
| </aside> | |
| <main className="flex-1 overflow-y-auto h-screen"> | |
| <div className="p-6 md:p-8 max-w-7xl mx-auto"> | |
| {children} | |
| </div> | |
| </main> | |
| </div> | |
| ); | |
| } |