83 lines
3.5 KiB
TypeScript
83 lines
3.5 KiB
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import Link from 'next/link';
|
|
import { usePathname } from 'next/navigation';
|
|
import { Send, FileText, Clock, Radio, BrainCircuit } from 'lucide-react';
|
|
import { InfoTooltip } from './InfoTooltip';
|
|
|
|
export const Navbar = () => {
|
|
const pathname = usePathname();
|
|
|
|
const navItems = [
|
|
{
|
|
name: 'صندوق بررسی و ویرایش',
|
|
href: '/',
|
|
icon: FileText,
|
|
tooltip: 'پیشنویسهای تولیدشده توسط هوش مصنوعی که در انتظار تایید، ویرایش یا رد توسط سردبیر هستند.'
|
|
},
|
|
{
|
|
name: 'صف انتشار زمانبندیشده',
|
|
href: '/queue',
|
|
icon: Clock,
|
|
tooltip: 'پستهای تاییدشده که بر اساس زمانبندی یا اولویت به تلگرام @NetVibe_VPN ارسال خواهند شد.'
|
|
},
|
|
{
|
|
name: 'کانالهای مبدا و دیسکاوری',
|
|
href: '/channels',
|
|
icon: Radio,
|
|
tooltip: 'لیست کانالهای تلگرامی تحت پایش در حوزههای VPN، فیلترشکن، پروکسی و هوش مصنوعی.'
|
|
},
|
|
{
|
|
name: 'حافظه و لاگهای یادگیری هوش مصنوعی',
|
|
href: '/feedback',
|
|
icon: BrainCircuit,
|
|
tooltip: 'تحلیل دیفهای ویرایش انسانی که به صورت پویا به عنوان پرامپت اصلاحی به هوش مصنوعی تزریق میشوند.'
|
|
}
|
|
];
|
|
|
|
return (
|
|
<nav className="border-b border-slate-800 bg-slate-900/80 backdrop-blur-md sticky top-0 z-40" dir="rtl">
|
|
<div className="max-w-7xl mx-auto px-6 h-16 flex items-center justify-between">
|
|
<div className="flex items-center gap-3">
|
|
<div className="w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 to-violet-500 flex items-center justify-center shadow-lg shadow-indigo-500/20">
|
|
<Send className="w-5 h-5 text-white transform -rotate-45" />
|
|
</div>
|
|
<div>
|
|
<div className="flex items-center gap-1.5">
|
|
<span className="font-bold text-white text-base">NetVibe VPN Pipeline</span>
|
|
<InfoTooltip
|
|
title="سامانه اتوماسیون محتوا"
|
|
text="پایپلاین هوشمند سهعاملی برای رصد کانالهای برتر، بازنویسی عامیانه فارسی و انتشار خودکار در تلگرام."
|
|
/>
|
|
</div>
|
|
<span className="text-xs text-indigo-400 font-mono">@NetVibe_VPN Publisher</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="flex items-center gap-1 sm:gap-2">
|
|
{navItems.map((item) => {
|
|
const Icon = item.icon;
|
|
const isActive = pathname === item.href;
|
|
return (
|
|
<div key={item.href} className="flex items-center">
|
|
<Link
|
|
href={item.href}
|
|
className={`flex items-center gap-2 px-3.5 py-2 rounded-lg text-xs sm:text-sm font-medium transition ${
|
|
isActive
|
|
? 'bg-indigo-600 text-white shadow-md shadow-indigo-600/30'
|
|
: 'text-slate-300 hover:text-white hover:bg-slate-800'
|
|
}`}
|
|
>
|
|
<Icon className="w-4 h-4" />
|
|
<span>{item.name}</span>
|
|
</Link>
|
|
<InfoTooltip text={item.tooltip} className="mr-0.5" />
|
|
</div>
|
|
);
|
|
})}
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
);
|
|
};
|