From ea37aa0b216ff4a907b52e0f15b2bac36c5170dc Mon Sep 17 00:00:00 2001 From: dyzulk <66510723+dyzulk@users.noreply.github.com> Date: Thu, 8 Jan 2026 20:36:51 +0700 Subject: [PATCH] feat: add Docs link to navbar --- src/components/Layouts/Public/Navbar.tsx | 29 ++++++++---------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/src/components/Layouts/Public/Navbar.tsx b/src/components/Layouts/Public/Navbar.tsx index fd033d6..9d21ee2 100644 --- a/src/components/Layouts/Public/Navbar.tsx +++ b/src/components/Layouts/Public/Navbar.tsx @@ -52,18 +52,13 @@ export default function Navbar() { {/* Desktop Menu */}
{t("home")} - + { - if (pathname === '/') { - 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" + href="https://docs.trustlab.dyzulk.com/" + target="_blank" + className="text-gray-600 dark:text-gray-400 hover:text-brand-500 dark:hover:text-brand-400 transition-colors" > - {t("features")} + Docs {/* Tools Dropdown */} @@ -173,18 +168,14 @@ export default function Navbar() {
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")} + + { - setMobileOpen(false); - if (pathname === '/') { - e.preventDefault(); - scrollToSection('#features'); - } - }} + href="https://docs.trustlab.dyzulk.com/" + target="_blank" 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 {/* Mobile Tools (simplified) */}