diff --git a/frontend/public/players/ginny.jpg b/frontend/public/players/ginny.jpg new file mode 100644 index 0000000..7904fa4 Binary files /dev/null and b/frontend/public/players/ginny.jpg differ diff --git a/frontend/public/players/harry.jpg b/frontend/public/players/harry.jpg new file mode 100644 index 0000000..9a52aec Binary files /dev/null and b/frontend/public/players/harry.jpg differ diff --git a/frontend/public/players/hermione.jpg b/frontend/public/players/hermione.jpg new file mode 100644 index 0000000..ed5fbc8 Binary files /dev/null and b/frontend/public/players/hermione.jpg differ diff --git a/frontend/public/players/luna.jpg b/frontend/public/players/luna.jpg new file mode 100644 index 0000000..079798d Binary files /dev/null and b/frontend/public/players/luna.jpg differ diff --git a/frontend/public/players/neville.jpg b/frontend/public/players/neville.jpg new file mode 100644 index 0000000..857720f Binary files /dev/null and b/frontend/public/players/neville.jpg differ diff --git a/frontend/public/players/ron.jpg b/frontend/public/players/ron.jpg new file mode 100644 index 0000000..7189c95 Binary files /dev/null and b/frontend/public/players/ron.jpg differ diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 871226a..b21aec3 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -340,34 +340,88 @@ export default function App() { // 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" }, + { + id: "harry", + name: "Harry Potter", + img: "/players/harry.jpg", + color: "#7c4dff", // Lila + active: true, + }, + { + id: "ginny", + name: "Ginny Weasley", + img: "/players/ginny.jpg", + color: "#3b82f6", // Blau + }, + { + id: "hermione", + name: "Hermine Granger", + img: "/players/hermione.jpg", + color: "#ef4444", // Rot + }, + { + id: "luna", + name: "Luna Lovegood", + img: "/players/luna.jpg", + color: "#e5e7eb", // Weiß + }, + { + id: "neville", + name: "Neville Longbottom", + img: "/players/neville.jpg", + color: "#22c55e", // Grün + }, + { + id: "ron", + name: "Ron Weasley", + img: "/players/ron.jpg", + color: "#facc15", // Gelb + }, ]; - const PlayerIcon = ({ label, active }) => ( -
- {label} -
- ); + const PlayerIcon = ({ player }) => { + const size = player.active ? 56 : 40; + + return ( +
+
+ {player.name} +
+
+ ); + }; return (
@@ -424,7 +478,7 @@ export default function App() {
Spieler
{players.map((p) => ( - + ))}