From 5f637817ced517e58a3ef220b711b2ee33a0883c Mon Sep 17 00:00:00 2001 From: Joachim Hummel Date: Sat, 29 Nov 2025 22:37:08 +0000 Subject: [PATCH] Improve admin page UI with modern SaaS design MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add gradient hero section with welcome message - Redesign stat cards with colorful gradients and hover effects - Update system status cards with color-coded backgrounds - Enhance database statistics section with modern cards - Modernize device list table with gradient headers - Improve database maintenance section with better visual hierarchy - Add gradient background to entire admin layout - Update header with glassmorphism effect and modern badges - Enhance navigation with improved active states and transitions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/admin/layout.tsx | 41 +++--- app/admin/page.tsx | 325 ++++++++++++++++++++++++++----------------- 2 files changed, 220 insertions(+), 146 deletions(-) diff --git a/app/admin/layout.tsx b/app/admin/layout.tsx index 624d470..cfc3c63 100644 --- a/app/admin/layout.tsx +++ b/app/admin/layout.tsx @@ -34,43 +34,46 @@ export default function AdminLayout({ }); return ( -
+
{/* Header */} -
-
+
+
{/* Top row: Title + User Info + Actions */} -
-
-

+
+
+
+ 🎯 +
+

{isAdmin ? 'Admin Panel' : 'Dashboard'}

{/* User info */} -
- Angemeldet als: - {username || session?.user?.email} +
+ Angemeldet als: + {username || session?.user?.email} {!isAdmin && ( - Viewer + Viewer )} {isAdmin && ( - Admin + Admin )}
{/* Actions */} -
+
- Map + 🗺️ Map @@ -79,15 +82,15 @@ export default function AdminLayout({
{/* Navigation row (scrollable on mobile) */} -