mirror of
https://github.com/dyzulk/trustlab.git
synced 2026-01-26 05:25:36 +07:00
feat: add Docs link to navbar
This commit is contained in:
@@ -52,18 +52,13 @@ export default function Navbar() {
|
|||||||
{/* Desktop Menu */}
|
{/* Desktop Menu */}
|
||||||
<div className="hidden md:flex items-center gap-8 text-sm font-medium">
|
<div className="hidden md:flex items-center gap-8 text-sm font-medium">
|
||||||
<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) */}
|
||||||
|
|||||||
Reference in New Issue
Block a user