From a3216950c8d46b084705896a2d9143d45d5a0d57 Mon Sep 17 00:00:00 2001 From: nessi Date: Wed, 4 Feb 2026 09:06:17 +0100 Subject: [PATCH] Update TopBar UI for improved structure and clarity Refactored the TopBar component to enhance readability and organization. Added labeled sections for user account, role display, and the "Neues Spiel" button. Adjusted styles and improved spacing for better UI consistency. --- frontend/src/components/TopBar.jsx | 51 ++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/TopBar.jsx b/frontend/src/components/TopBar.jsx index 8cb0c6e..2b43917 100644 --- a/frontend/src/components/TopBar.jsx +++ b/frontend/src/components/TopBar.jsx @@ -12,25 +12,60 @@ export default function TopBar({ }) { return (
+ {/* LINKS: nur Rolle */}
-
{me.email}
-
{me.role}
+
+ Zauber-Notizbogen +
+
+ Eingeloggt als {me.role} +
-
+ {/* RECHTS: Account + Neues Spiel */} +
+ {/* Account Dropdown */}
{userMenuOpen && (
+ {/* Email Info */} +
+ {me.email} +
+ + {/* Actions */} @@ -42,7 +77,10 @@ export default function TopBar({ setUserMenuOpen(false); doLogout(); }} - style={{ ...styles.userDropdownItem, color: "#ffb3b3" }} + style={{ + ...styles.userDropdownItem, + color: "#ffb3b3", + }} > Logout @@ -50,6 +88,7 @@ export default function TopBar({ )}
+ {/* Neues Spiel Button */}