From e5f8f008320fe090e133157ebb8adf87232ca02b Mon Sep 17 00:00:00 2001 From: nessi Date: Sat, 7 Feb 2026 11:38:38 +0100 Subject: [PATCH] Add player rail, dice overlay, and compact card support This update introduces a player rail to the right of the board, visually representing active and inactive players, and adds a dice overlay beneath the board. Compact variants for placeholder cards were added, with corresponding adjustments to layouts and styles for better responsiveness and a cleaner interface. --- frontend/src/App.jsx | 165 ++++++++++++++++++++++++------------- frontend/src/AppLayout.css | 112 +++++++++++++++++++++---- 2 files changed, 205 insertions(+), 72 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index e6bd7c0..23d25b7 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -34,7 +34,6 @@ export default function App() { const [chipOpen, setChipOpen] = useState(false); const [chipEntry, setChipEntry] = useState(null); - // Live refresh (optional) const aliveRef = useRef(true); const load = async () => { @@ -229,7 +228,7 @@ export default function App() { ] : []; - const PlaceholderCard = ({ title, hint }) => ( + const PlaceholderCard = ({ title, hint, compact = false }) => (
{title}
-
- {hint} -
+ {hint ? ( +
+ {hint} +
+ ) : null}
); + // Player rail placeholder (rechts vom Board, vor Notizen) + const players = [ + { id: "p1", label: "A", active: true }, + { id: "p2", label: "B" }, + { id: "p3", label: "C" }, + { id: "p4", label: "D" }, + { id: "p5", label: "E" }, + ]; + + const PlayerIcon = ({ label, active }) => ( +
+ {label} +
+ ); + return (