From 06b6544653ef34df7369b54fb57e6fc06ce34817 Mon Sep 17 00:00:00 2001 From: nessi Date: Sat, 7 Feb 2026 12:21:20 +0100 Subject: [PATCH] Enhance HogwartsPointsCard design and layout Refactored the component to improve its visual hierarchy and styling for better usability and aesthetics. Added new design elements like gold accents, updated text shadows, and a refined grid layout. Improved responsiveness and structure to align with overall application design standards. --- frontend/src/App.jsx | 186 +++++++++++++++++++++++-------------------- 1 file changed, 100 insertions(+), 86 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index c5e95d2..3f77a31 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -424,127 +424,141 @@ export default function App() { }; const HogwartsPointsCard = ({ value = 0 }) => { - return ( + const GOLD = "#f2d27a"; // echtes Gold, unabhängig vom Theme + const GOLD2 = "#caa24a"; // dunkleres Gold für Rand + + return ( +
+ {/* Header */} +
+ Hogwarts Points +
+ + {/* Medallion / parchment inset */}
- {/* Pergament-Hintergrund */} + {/* paper speckles */}
- {/* Papier-Textur / Flecken */} + {/* gold frame line */}
- {/* goldene Linie */} + {/* value */}
- -
-
- Hogwarts Points + > +
+ {value}
-
- {value} -
- -
- HP -
-
- -
- - + / − - - - Hauswertung - + HP
+ + {/* small stamp */} +
+ Score +
- ); - }; +
+ ); +}; + return (