From 068b41191ee6b9e114c78ca79fe845ad768690ce Mon Sep 17 00:00:00 2001 From: Sam Hoile Date: Wed, 23 Oct 2024 16:40:10 +0100 Subject: [PATCH] added dark-mode compatible H1 --- frontend/src/components/H1.jsx | 7 +++++++ frontend/src/pages/InGame.jsx | 21 +++++++++++++++------ frontend/src/pages/LandingHost.jsx | 5 ++--- frontend/src/pages/LandingPlayer.jsx | 5 ++--- frontend/src/pages/LobbyHost.jsx | 2 ++ frontend/src/pages/LobbyPlayer.jsx | 5 ++--- frontend/src/pages/RoundEnd.jsx | 2 ++ 7 files changed, 32 insertions(+), 15 deletions(-) create mode 100644 frontend/src/components/H1.jsx diff --git a/frontend/src/components/H1.jsx b/frontend/src/components/H1.jsx new file mode 100644 index 0000000..e6538cf --- /dev/null +++ b/frontend/src/components/H1.jsx @@ -0,0 +1,7 @@ +export const H1 = ({ children }) => { + return ( +

+ { children } +

+ ) +} \ No newline at end of file diff --git a/frontend/src/pages/InGame.jsx b/frontend/src/pages/InGame.jsx index 822248e..2a79bcf 100644 --- a/frontend/src/pages/InGame.jsx +++ b/frontend/src/pages/InGame.jsx @@ -11,10 +11,17 @@ import { CountdownCircleTimer } from "react-countdown-circle-timer"; import { Card } from "../components/Card"; import { Header } from "../components/Header"; import { Footer } from "../components/Footer"; +import { H1 } from "../components/H1"; -// in game page function -export function InGame({ players, redirect, pokemon, setRedirect, remainingTime }) { +// in game page function +export function InGame({ + players, + redirect, + pokemon, + setRedirect, + remainingTime, +}) { const [input, setInput] = useState(""); //const [buttonText, setButtonText] = useState("Guess"); const [showCheck, setShowCheck] = useState(false); @@ -38,9 +45,9 @@ export function InGame({ players, redirect, pokemon, setRedirect, remainingTime return (
-
+
-

Poké Poké Guess Weight!

+

Poké Poké Guess Weight!

@@ -48,7 +55,9 @@ export function InGame({ players, redirect, pokemon, setRedirect, remainingTime
-

Guess {pokemon.name}'s weight!:

+

+ Guess {pokemon.name}'s weight!: +



@@ -75,7 +84,7 @@ export function InGame({ players, redirect, pokemon, setRedirect, remainingTime
-