From f81a7c334ecb3c3742d6c6080445e255f3191d10 Mon Sep 17 00:00:00 2001 From: Hafid Nur <73023445+hafidnrzs@users.noreply.github.com> Date: Thu, 27 Nov 2025 13:06:13 +0700 Subject: [PATCH] feat(hackathon): dashboard UI improvement and dark mode adjustment --- apps/hackathon/src/app/dashboard/layout.tsx | 8 +- apps/hackathon/src/app/dashboard/page.tsx | 88 ++++++++++++--------- apps/hackathon/src/components/sidebar.tsx | 20 ++--- 3 files changed, 64 insertions(+), 52 deletions(-) diff --git a/apps/hackathon/src/app/dashboard/layout.tsx b/apps/hackathon/src/app/dashboard/layout.tsx index 7bd34ef..5360727 100644 --- a/apps/hackathon/src/app/dashboard/layout.tsx +++ b/apps/hackathon/src/app/dashboard/layout.tsx @@ -6,18 +6,18 @@ const DashboardLayout: FC = (): ReactElement => { const [sidebarOpen, setSidebarOpen] = useState(false); return ( -
+
setSidebarOpen(false)} />
{/* Mobile Header with Hamburger */} -
+
{/* User Info */} -
+
{user?.avatar ? ( = ({ isOpen = true, onClose }) => { icon="ic:baseline-person" width="24" height="24" - className="text-gray-400 dark:text-neutral-400" + className="text-gray-400 dark:text-gray-400" />
)} @@ -212,7 +212,7 @@ export const Sidebar: FC = ({ isOpen = true, onClose }) => {

{user?.fullname || user?.email?.split('@')[0] || 'User'}

-

+

{user?.email}

@@ -233,7 +233,7 @@ export const Sidebar: FC = ({ isOpen = true, onClose }) => { className={`flex items-center space-x-3 px-4 py-3 rounded-lg transition-colors ${ isActive ? 'bg-primary-50 dark:bg-blue-900/30 text-primary-600 dark:text-blue-400 font-medium' - : 'text-gray-700 dark:text-neutral-300 hover:bg-gray-100 dark:hover:bg-neutral-800' + : 'text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800' }`} > {item.icon} @@ -246,10 +246,10 @@ export const Sidebar: FC = ({ isOpen = true, onClose }) => { {/* Theme Toggle & Logout */} -
+