From e01e81643ed6642981c9373b63fa1aaa9f33f303 Mon Sep 17 00:00:00 2001 From: anirudhprmar Date: Tue, 12 May 2026 16:29:07 +0530 Subject: [PATCH 1/2] feat(landing): theme toggle support for landing --- apps/web/src/app/(marketing)/layout.tsx | 2 +- apps/web/src/components/layout/navigation-bar.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/(marketing)/layout.tsx b/apps/web/src/app/(marketing)/layout.tsx index 520afabd..5bc02c68 100644 --- a/apps/web/src/app/(marketing)/layout.tsx +++ b/apps/web/src/app/(marketing)/layout.tsx @@ -7,7 +7,7 @@ import { PageTransition } from "@/components/layout/page-transition"; export default function MarketingLayout({ children }: { children: ReactNode }) { return ( -
+
{children} diff --git a/apps/web/src/components/layout/navigation-bar.tsx b/apps/web/src/components/layout/navigation-bar.tsx index 152c0e89..71b35168 100644 --- a/apps/web/src/components/layout/navigation-bar.tsx +++ b/apps/web/src/components/layout/navigation-bar.tsx @@ -11,6 +11,8 @@ import { Button } from "@/components/ui/button"; import { BrandMenu } from "@/components/web/brand-menu"; import { URLs } from "@/lib/consts"; +import { ThemeToggle } from "../theme-toggle"; + // ─── Shared nav link ───────────────────────────────────────────────── interface NavItem { @@ -223,6 +225,7 @@ export function NavigationBar({ stars: _stars }: { stars: number | null }) { GitHub +
From b846ec2503f0b9ae67ad62663a7be563cc17efcc Mon Sep 17 00:00:00 2001 From: anirudhprmar Date: Tue, 12 May 2026 16:48:00 +0530 Subject: [PATCH 2/2] fix(landing): add theme toggle to mobile nav view --- .../src/components/layout/navigation-bar.tsx | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/apps/web/src/components/layout/navigation-bar.tsx b/apps/web/src/components/layout/navigation-bar.tsx index 71b35168..e928f971 100644 --- a/apps/web/src/components/layout/navigation-bar.tsx +++ b/apps/web/src/components/layout/navigation-bar.tsx @@ -113,16 +113,19 @@ export function NavigationBar({ stars: _stars }: { stars: number | null }) { > - +
+ + +
@@ -148,7 +151,11 @@ export function NavigationBar({ stars: _stars }: { stars: number | null }) { key={item.name} initial={{ opacity: 0, y: -4 }} animate={{ opacity: 1, y: 0 }} - transition={{ duration: 0.2, delay: 0.05 + i * 0.03, ease: "easeOut" }} + transition={{ + duration: 0.2, + delay: 0.05 + i * 0.03, + ease: "easeOut", + }} >