feat: add Docs link to navbar

This commit is contained in:
dyzulk
2026-01-08 20:36:51 +07:00
parent 49a95cf892
commit ea37aa0b21

View File

@@ -54,16 +54,11 @@ export default function Navbar() {
<Link href="/" className="text-gray-600 dark:text-gray-400 hover:text-brand-500 dark:hover:text-brand-400 transition-colors">{t("home")}</Link> <Link href="/" className="text-gray-600 dark:text-gray-400 hover:text-brand-500 dark:hover:text-brand-400 transition-colors">{t("home")}</Link>
<a <a
href="/#features" href="https://docs.trustlab.dyzulk.com/"
onClick={(e) => { target="_blank"
if (pathname === '/') { className="text-gray-600 dark:text-gray-400 hover:text-brand-500 dark:hover:text-brand-400 transition-colors"
e.preventDefault();
scrollToSection('#features');
}
}}
className="text-gray-600 dark:text-gray-400 hover:text-brand-500 dark:hover:text-brand-400 transition-colors cursor-pointer"
> >
{t("features")} Docs
</a> </a>
{/* Tools Dropdown */} {/* Tools Dropdown */}
@@ -173,18 +168,14 @@ export default function Navbar() {
</button> </button>
</div> </div>
<Link href="/" onClick={() => setMobileOpen(false)} className="text-lg font-bold text-gray-900 dark:text-white border-b border-gray-100 dark:border-gray-800 pb-4">{t("home")}</Link> <Link href="/" onClick={() => setMobileOpen(false)} className="text-lg font-bold text-gray-900 dark:text-white border-b border-gray-100 dark:border-gray-800 pb-4">{t("home")}</Link>
<a <a
href="/#features" href="https://docs.trustlab.dyzulk.com/"
onClick={(e) => { target="_blank"
setMobileOpen(false);
if (pathname === '/') {
e.preventDefault();
scrollToSection('#features');
}
}}
className="text-lg font-bold text-gray-900 dark:text-white border-b border-gray-100 dark:border-gray-800 pb-4" className="text-lg font-bold text-gray-900 dark:text-white border-b border-gray-100 dark:border-gray-800 pb-4"
> >
{t("features")} Docs
</a> </a>
{/* Mobile Tools (simplified) */} {/* Mobile Tools (simplified) */}