diff --git a/frontend/src/components/H1.jsx b/frontend/src/components/H1.jsx new file mode 100644 index 0000000..fdf1474 --- /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 cd132ac..2a768df 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,8 +55,11 @@ export function InGame({ players, redirect, pokemon, setRedirect, remainingTime
-

Guess {pokemon.name}'s weight!

+

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

+

{/*
-