From d82dee9319e7337e7c222241a1ee979a511579dc Mon Sep 17 00:00:00 2001 From: julius Date: Fri, 24 Jan 2025 10:30:12 +0100 Subject: [PATCH] feat: rename, word-wrap, some styling --- index.html | 2 +- public/logo.svg | 6 +-- src/App.css | 33 +++++++++++--- src/App.tsx | 118 +++++++++++++++++++++++++++++++++--------------- 4 files changed, 113 insertions(+), 46 deletions(-) diff --git a/index.html b/index.html index 11e7284..cc9d993 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - yutt + cutt
diff --git a/public/logo.svg b/public/logo.svg index 7d7b07b..eded6ed 100644 --- a/public/logo.svg +++ b/public/logo.svg @@ -24,9 +24,9 @@ inkscape:deskcolor="#d1d1d1" inkscape:document-units="mm" inkscape:zoom="14.329304" - inkscape:cx="17.132723" + inkscape:cx="17.167617" inkscape:cy="25.088448" - inkscape:window-width="1263" + inkscape:window-width="1408" inkscape:window-height="1727" inkscape:window-x="0" inkscape:window-y="0" @@ -39,7 +39,7 @@ inkscape:groupmode="layer" id="layer1"> { - return { id: i, name: v } as Player; - } - ); + const players = [ + "August", + "Beate", + "Ceasar", + "Doofus", + "Elli", + "Ford P.", + "Gabriel", + "Hugo", + "Ivar Johansson", + "Jürgen Gordon Malinauskas", + "Karsten Uwe Kalinowski", + ].map((v, i) => { + return { id: i, name: v } as Player; + }); return players; } -function PlayerList(props: { - players: Player[]; - setPlayers: Dispatch>; -}) { +function PlayerList(props: Partial>) { return ( - - {props.players.map((item) => ( -
+ + {props.list?.map((item) => ( +
{item.name}
))} @@ -46,29 +39,82 @@ function PlayerList(props: { ); } +function handleSubmit( + user: Player[], + playersLeft: Player[], + playersMiddle: Player[], + playersRight: Player[] +) { + console.log(user); + console.log(JSON.stringify(playersLeft)); + console.log(JSON.stringify(playersRight)); +} + function App() { const players = loadPlayers(); + const [user, setUser] = useState([]); const [playersLeft, setPlayersLeft] = useState([]); const [playersMiddle, setPlayersMiddle] = useState(players); const [playersRight, setPlayersRight] = useState([]); return ( <> -

yellow ultimate team tool

-
+ logo +

cutt

+ cool ultimate team tool +
+

who are you?

+ +
+
-

hate

- +

😬

+
-

undecided

- +

🤷

+
-

love

- +

😍

+
-

+ + +

something not working? message me.