From fd53a047a3889f06d635a5ab9cd21f59ac28e815 Mon Sep 17 00:00:00 2001 From: Sam Hoile Date: Wed, 23 Oct 2024 17:10:28 +0100 Subject: [PATCH] fixed --- frontend/src/components/Card.jsx | 4 ++-- frontend/src/components/GuessForm.jsx | 6 ------ frontend/src/components/ListPlayers.jsx | 7 ++++++- frontend/src/components/Table.jsx | 7 ++++--- frontend/src/pages/InGame.jsx | 2 +- frontend/src/pages/LandingHost.jsx | 4 ++-- frontend/src/pages/LandingPlayer.jsx | 4 ++-- frontend/src/pages/LobbyHost.jsx | 5 +---- frontend/src/pages/LobbyPlayer.jsx | 13 +++++++------ 9 files changed, 25 insertions(+), 27 deletions(-) diff --git a/frontend/src/components/Card.jsx b/frontend/src/components/Card.jsx index 40e6e09..75b45b7 100644 --- a/frontend/src/components/Card.jsx +++ b/frontend/src/components/Card.jsx @@ -1,7 +1,7 @@ export function Card({ children }) { return ( -
- { children } +
+ { children }
) } diff --git a/frontend/src/components/GuessForm.jsx b/frontend/src/components/GuessForm.jsx index e4cb272..3062128 100644 --- a/frontend/src/components/GuessForm.jsx +++ b/frontend/src/components/GuessForm.jsx @@ -1,15 +1,9 @@ -// imports -import { CardText } from "../components/CardText"; - // A form that allows a user to input tet and numbers export function GuessForm(props) { return ( <>
- - -
diff --git a/frontend/src/components/ListPlayers.jsx b/frontend/src/components/ListPlayers.jsx index 3aeb17f..dee9816 100644 --- a/frontend/src/components/ListPlayers.jsx +++ b/frontend/src/components/ListPlayers.jsx @@ -1,10 +1,15 @@ import CheckMark from "./CheckMark"; import LoadingSpinner from "./LoadingSpinner"; +import { CardText } from "./CardText"; export function ListPlayers({ players }) { return (
-

Players:

+ +

Players:

+
+ +
{players && players.map((player, index) => ( diff --git a/frontend/src/components/Table.jsx b/frontend/src/components/Table.jsx index ab0c962..99afc66 100644 --- a/frontend/src/components/Table.jsx +++ b/frontend/src/components/Table.jsx @@ -15,8 +15,9 @@ export function Table({ players }) { return (
- - +
+ +
Pos. @@ -33,7 +34,7 @@ export function Table({ players }) { {players.map((player, index) => (
{position(index)} diff --git a/frontend/src/pages/InGame.jsx b/frontend/src/pages/InGame.jsx index 822248e..cd132ac 100644 --- a/frontend/src/pages/InGame.jsx +++ b/frontend/src/pages/InGame.jsx @@ -48,7 +48,7 @@ export function InGame({ players, redirect, pokemon, setRedirect, remainingTime
-

Guess {pokemon.name}'s weight!:

+

Guess {pokemon.name}'s weight!



diff --git a/frontend/src/pages/LandingHost.jsx b/frontend/src/pages/LandingHost.jsx index 69880df..fdc4bbc 100644 --- a/frontend/src/pages/LandingHost.jsx +++ b/frontend/src/pages/LandingHost.jsx @@ -49,7 +49,7 @@ export function LandingHost() {

Poké Poké Guess Weight!

- +

A quick-fire multiplayer game

Rules :

@@ -59,7 +59,7 @@ export function LandingHost() {
-
+ Poké Poké Guess Weight! - +

A quick-fire multiplayer game

Rules :

@@ -63,7 +63,7 @@ export function LandingPlayer() {
  • Unlimited players
  • -
    +