feat: update navigation links to include 'Features' for unauthenticated users and maintain 'Tools' for authenticated users

This commit is contained in:
Usman Baig
2026-02-07 01:33:31 +01:00
parent 815c1ccc6c
commit f734252fb1
3 changed files with 499 additions and 8 deletions

View File

@@ -64,14 +64,24 @@ export default function LayoutContent({ children }: { children: React.ReactNode
showPricing={true}
topOffset={showOfflineBar ? `${barHeightRem}rem` : undefined}
customNavItems={
auth.user ? (
<Link
href="/tools"
className="px-4 py-2 text-sm font-medium text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white rounded-lg hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50 transition-all duration-200"
>
Tools
</Link>
) : null
<>
{!auth.user && (
<Link
href="/features"
className="px-4 py-2 text-sm font-medium text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white rounded-lg hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50 transition-all duration-200"
>
Features
</Link>
)}
{auth.user && (
<Link
href="/tools"
className="px-4 py-2 text-sm font-medium text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white rounded-lg hover:bg-neutral-100/50 dark:hover:bg-neutral-800/50 transition-all duration-200"
>
Tools
</Link>
)}
</>
}
/>
<main