From 86c4cf26390c159799c31b9a33677e6fd160270f Mon Sep 17 00:00:00 2001 From: nessi Date: Sat, 7 Feb 2026 12:18:50 +0100 Subject: [PATCH] Add HogwartsPointsCard component with styled design Introduced a new `HogwartsPointsCard` component to display Hogwarts points with a custom styled design. The component leverages layered backgrounds, gradients, and thoughtful typography to enhance the overall visual appeal. Replaced the placeholder card with this new component in the points section. --- frontend/src/App.jsx | 126 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 125 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 139b2cf..c5e95d2 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -423,6 +423,130 @@ export default function App() { ); }; + const HogwartsPointsCard = ({ value = 0 }) => { + return ( +
+ {/* Pergament-Hintergrund */} +
+ + {/* Papier-Textur / Flecken */} +
+ + {/* goldene Linie */} +
+ +
+
+ Hogwarts Points +
+ +
+
+ {value} +
+ +
+ HP +
+
+ +
+ + + / − + + + Hauswertung + +
+
+
+ ); + }; + + return (
- +