Spaces:
Running
Running
Upload components/Header.js with huggingface_hub
Browse files11 unmodified lines12131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585 unmodified lines6465666768697071727374757611 unmodified linesisScannerActive}) => {return (<header className="h-16 border-b border-gray-700 flex items-center justify-between px-6 bg-gray-900"><div className="flex items-center gap-3"><div className="p-2 bg-blue-600/10 rounded-lg border border-blue-500/30"><i className="fa-solid fa-chart-line text-blue-400 text-xl"></i></div><h1 className="font-semibold text-lg tracking-tight">ICT Antigravity AI</h1><span className="px-2 py-0.5 text-xs font-medium bg-green-500/10 text-green-400 border border-green-500/20 rounded-full">{marketStatus}</span></div><div className="flex items-center gap-4"><div className="flex items-center gap-2"><inputtype="text"placeholder="Search concepts..."value={searchQuery}onChange={(e) => onSearchChange(e.target.value)}className="bg-gray-800 border border-gray-600 text-gray-200 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-48 p-1.5"/><i className="fa-solid fa-search text-gray-400 text-sm"></i></div><div className="flex items-center gap-2"><span className="text-sm text-gray-400">Mode:</span><selectvalue={currentMode}onChange={onModeChange}className="bg-gray-800 border border-gray-600 text-gray-200 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-24 p-1.5"><option value="free">Free</option><option value="paid">Paid</option></select></div><div className="flex items-center gap-2"><span className="text-sm text-gray-400">Session:</span><selectvalue={currentSession}onChange={onSessionChange}className="bg-gray-800 border border-gray-600 text-gray-200 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-32 p-1.5"><option value="all">All Sessions</option><option value="asian">Asian</option>5 unmodified lines<buttononClick={onToggleScanner}className={`px-4 py-1.5 text-sm font-medium rounded-lg transition-colors ${isScannerActive? 'bg-blue-600 text-white': 'bg-gray-800 text-gray-300 hover:bg-gray-700 border border-gray-600'}`}>{isScannerActive ? 'Knowledge Base' : 'Live Scanner'}</button><a11 unmodified lines12131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585 unmodified lines646566676869707172737475767778798081828384858611 unmodified linesisScannerActive}) => {return (<header className="h-16 border-b border-gray-700 flex items-center justify-between px-6 bg-gray-900 shadow-lg z-50 relative"><div className="flex items-center gap-3"><div className="p-2 bg-blue-600/10 rounded-lg border border-blue-500/30"><i className="fa-solid fa-chart-line text-blue-400 text-xl"></i></div><h1 className="font-semibold text-lg tracking-tight text-white">ICT Antigravity AI</h1><span className="px-2 py-0.5 text-xs font-medium bg-green-500/10 text-green-400 border border-green-500/20 rounded-full animate-pulse">{marketStatus}</span></div><div className="flex items-center gap-4"><div className="flex items-center gap-2 bg-gray-800 rounded-lg p-1 border border-gray-600"><inputtype="text"placeholder="Search concepts..."value={searchQuery}onChange={(e) => onSearchChange(e.target.value)}className="bg-transparent border-none text-gray-200 text-sm focus:ring-0 w-48 p-1.5 placeholder-gray-500"/><i className="fa-solid fa-search text-gray-400 text-sm"></i></div><div className="flex items-center gap-2"><span className="text-sm text-gray-400 hidden sm:block">Mode:</span><selectvalue={currentMode}onChange={onModeChange}className="bg-gray-800 border border-gray-600 text-gray-200 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-24 p-1.5 outline-none"><option value="free">Free</option><option value="paid">Pro</option></select></div><div className="flex items-center gap-2"><span className="text-sm text-gray-400 hidden sm:block">Session:</span><selectvalue={currentSession}onChange={onSessionChange}className="bg-gray-800 border border-gray-600 text-gray-200 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-32 p-1.5 outline-none"><option value="all">All Sessions</option><option value="asian">Asian</option>5 unmodified lines<buttononClick={onToggleScanner}className={`px-4 py-1.5 text-sm font-medium rounded-lg transition-all duration-300 flex items-center gap-2 ${isScannerActive? 'bg-blue-600 text-white shadow-lg shadow-blue-600/20': 'bg-gray-800 text-gray-300 hover:bg-gray-700 border border-gray-600'}`}>{isScannerActive ? (<><i className="fa-solid fa-database"></i>Knowledge Base</>) : (<><i className="fa-solid fa-magnifying-glass"></i>Live Scanner</>)}</button><a
components/Header.js+23-13