mirror of
https://github.com/decolua/9router.git
synced 2026-05-08 12:01:28 +00:00
68 lines
3.7 KiB
JavaScript
68 lines
3.7 KiB
JavaScript
"use client";
|
|
import { useState } from "react";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
export default function Navigation() {
|
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<nav className="fixed top-0 z-50 w-full bg-[#181411]/80 backdrop-blur-md border-b border-[#3a2f27]">
|
|
<div className="max-w-7xl mx-auto px-6 h-16 flex items-center justify-between">
|
|
{/* Logo */}
|
|
<div className="flex items-center gap-3 cursor-pointer" onClick={() => router.push("/")}>
|
|
<div className="size-8 rounded bg-gradient-to-br from-[#f97815] to-orange-700 flex items-center justify-center text-white">
|
|
<span className="material-symbols-outlined text-[20px]">hub</span>
|
|
</div>
|
|
<h2 className="text-white text-xl font-bold tracking-tight">9Router</h2>
|
|
</div>
|
|
|
|
{/* Desktop menu */}
|
|
<div className="hidden md:flex items-center gap-8">
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors" href="#features">Features</a>
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors" href="#how-it-works">How it Works</a>
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors" href="https://github.com/decolua/9router#readme" target="_blank" rel="noopener noreferrer">Docs</a>
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors flex items-center gap-1" href="https://github.com/decolua/9router" target="_blank" rel="noopener noreferrer">
|
|
GitHub <span className="material-symbols-outlined text-[14px]">open_in_new</span>
|
|
</a>
|
|
</div>
|
|
|
|
{/* CTA + Mobile menu */}
|
|
<div className="flex items-center gap-4">
|
|
<button
|
|
onClick={() => router.push("/dashboard")}
|
|
className="hidden sm:flex h-9 items-center justify-center rounded-lg px-4 bg-[#f97815] hover:bg-[#e0650a] transition-all text-[#181411] text-sm font-bold shadow-[0_0_15px_rgba(249,120,21,0.4)] hover:shadow-[0_0_20px_rgba(249,120,21,0.6)]"
|
|
>
|
|
Get Started
|
|
</button>
|
|
<button
|
|
className="md:hidden text-white"
|
|
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
|
>
|
|
<span className="material-symbols-outlined">{mobileMenuOpen ? "close" : "menu"}</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Mobile menu dropdown */}
|
|
{mobileMenuOpen && (
|
|
<div className="md:hidden border-t border-[#3a2f27] bg-[#181411]/95 backdrop-blur-md">
|
|
<div className="flex flex-col gap-4 p-6">
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors" href="#features" onClick={() => setMobileMenuOpen(false)}>Features</a>
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors" href="#how-it-works" onClick={() => setMobileMenuOpen(false)}>How it Works</a>
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors" href="https://github.com/decolua/9router#readme" target="_blank" rel="noopener noreferrer">Docs</a>
|
|
<a className="text-gray-300 hover:text-white text-sm font-medium transition-colors" href="https://github.com/decolua/9router" target="_blank" rel="noopener noreferrer">GitHub</a>
|
|
<button
|
|
onClick={() => router.push("/dashboard")}
|
|
className="h-9 rounded-lg bg-[#f97815] hover:bg-[#e0650a] text-[#181411] text-sm font-bold"
|
|
>
|
|
Get Started
|
|
</button>
|
|
</div>
|
|
</div>
|
|
)}
|
|
</nav>
|
|
);
|
|
}
|
|
|