From 2de81701e8fa8b5d730ed2d08028afcd075fdb38 Mon Sep 17 00:00:00 2001 From: Moamal Alaa Date: Mon, 27 Apr 2026 11:48:21 +0300 Subject: [PATCH] feat: handle navigation fatigue in components card and enhance footer navigation (#445) Co-authored-by: Copilot --- app/(main)/_landing/stats-bento.tsx | 19 ++++++++++--------- components/site-footer.tsx | 24 ++++++++++++++++++++++++ lib/docs.ts | 13 +++++++++++++ 3 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 lib/docs.ts diff --git a/app/(main)/_landing/stats-bento.tsx b/app/(main)/_landing/stats-bento.tsx index ae1980f0..222f23d7 100644 --- a/app/(main)/_landing/stats-bento.tsx +++ b/app/(main)/_landing/stats-bento.tsx @@ -240,20 +240,22 @@ export default function StatsBento() { {/* Category marquees */} -
+ diff --git a/components/site-footer.tsx b/components/site-footer.tsx index 25c6f8a2..c2446d13 100644 --- a/components/site-footer.tsx +++ b/components/site-footer.tsx @@ -5,10 +5,16 @@ import { usePathname } from "next/navigation"; import NewsletterSection from "@/app/(main)/_landing/newsletter"; import { Icons } from "@/components/icons"; +import { docsConfig } from "@/config/docs"; +import { getFooterCategories } from "@/lib/docs"; import { cn } from "@/lib/utils"; export function SiteFooter() { + const footerCategories: { title: string; href: string }[] = getFooterCategories( + docsConfig.sidebarNav, + ); const pathname = usePathname(); + return (