From 660c551098e7d199c0e94ce9233c9072a8c25566 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Wed, 22 Apr 2026 02:01:08 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=8E=20Luxury=20dark=20redesign=20+=20A?= =?UTF-8?q?PI=20integration=20for=20Trojan=20Horse=20and=20Elite=20Dashboa?= =?UTF-8?q?rd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/layout/MainLayout.tsx | 30 +- frontend/src/components/layout/Sidebar.tsx | 40 +-- frontend/src/index.css | 12 +- .../src/pages/Public/TrojanHorseConverter.tsx | 216 +++++++++++---- frontend/src/pages/auth/LoginPage.tsx | 59 ++-- frontend/src/pages/auth/RegisterPage.tsx | 74 ++--- .../src/pages/dashboard/DashboardPage.tsx | 185 +++++++------ .../pages/dashboard/MultiEntityDashboard.tsx | 256 ++++++++++++------ 8 files changed, 548 insertions(+), 324 deletions(-) diff --git a/frontend/src/components/layout/MainLayout.tsx b/frontend/src/components/layout/MainLayout.tsx index f990291..a7321e7 100644 --- a/frontend/src/components/layout/MainLayout.tsx +++ b/frontend/src/components/layout/MainLayout.tsx @@ -1,6 +1,6 @@ /** * ════════════════════════════════════════════════════════════ - * مُصادَق (Musadaq) — Main Layout Shell + * مُصادَق (Musadaq) — Premium Dark Layout Shell * ════════════════════════════════════════════════════════════ */ @@ -13,36 +13,36 @@ export const MainLayout = () => { const user = useAuthStore((state) => state.user); return ( -
+
{/* ── Desktop Sidebar ───────────────────────────────────── */}
{/* ── Top Navigation ──────────────────────────────────── */} -
-
- - +
+ +
- -
+
-

{user?.name}

-

+

{user?.name}

+

{user?.role}

-
+
diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index 1eb5b63..6f25b3d 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -1,16 +1,16 @@ /** * ════════════════════════════════════════════════════════════ - * مُصادَق (Musadaq) — Premium Sidebar + * مُصادَق (Musadaq) — Premium Dark Sidebar * ════════════════════════════════════════════════════════════ */ import { NavLink, useNavigate } from 'react-router-dom'; -import { - LayoutDashboard, - FileText, - Building2, - Users, - Settings, +import { + LayoutDashboard, + FileText, + Building2, + Users, + Settings, LogOut, Crown } from 'lucide-react'; @@ -35,16 +35,21 @@ export const Sidebar = () => { }; return ( -