From 4cd8498ad30e6ea5f01e81346a81a2a1134864be Mon Sep 17 00:00:00 2001 From: Biswa Kalyan Bhuyan Date: Fri, 25 Apr 2025 00:18:09 +0530 Subject: finance/frontend: fix: fixed the border of navbar, added themetoggle button on the login page, fixed some aligned issue with the navbar --- frontend/src/app/(auth)/layout.tsx | 8 ++++++- frontend/src/app/(main)/layout.tsx | 43 +++++++++++++++++++------------------- 2 files changed, 29 insertions(+), 22 deletions(-) diff --git a/frontend/src/app/(auth)/layout.tsx b/frontend/src/app/(auth)/layout.tsx index 9651b4b..6c86133 100644 --- a/frontend/src/app/(auth)/layout.tsx +++ b/frontend/src/app/(auth)/layout.tsx @@ -2,6 +2,7 @@ import { useEffect } from 'react'; import { useRouter } from 'next/navigation'; +import { ThemeToggle } from '@/components/shared/ThemeToggle'; export default function AuthLayout({ children, @@ -19,7 +20,12 @@ export default function AuthLayout({ }, [router]); return ( -
+
+ {/* Theme Toggle positioned in the top right corner */} +
+ +
+

diff --git a/frontend/src/app/(main)/layout.tsx b/frontend/src/app/(main)/layout.tsx index 5902dd6..ee1026c 100644 --- a/frontend/src/app/(main)/layout.tsx +++ b/frontend/src/app/(main)/layout.tsx @@ -93,7 +93,7 @@ export default function MainLayout({ return (
{/* Top Navigation */} -
+
{/* Mobile menu button - only visible on small screens */} @@ -199,11 +199,12 @@ export default function MainLayout({
{/* Main Content */} -
+
{/* Sidebar - hidden on mobile */}
-