From c8cd6c20769419db09b88f1ee77aac4eb482e788 Mon Sep 17 00:00:00 2001 From: Mike Smith <89040888+smiggiddy@users.noreply.github.com> Date: Mon, 5 Aug 2024 20:36:15 -0400 Subject: [PATCH] feat: front end styling --- memory-game/mg-frontend/src/App.jsx | 16 ++++++++--- .../mg-frontend/src/components/card.jsx | 9 ++++--- .../src/components/gameMessages.jsx | 9 +++++++ .../mg-frontend/src/components/gameboard.jsx | 2 ++ memory-game/mg-frontend/src/gameLogic.js | 27 ++++++++++++++----- memory-game/mg-frontend/src/styles/card.css | 27 +++++++++++++++++++ 6 files changed, 77 insertions(+), 13 deletions(-) create mode 100644 memory-game/mg-frontend/src/components/gameMessages.jsx diff --git a/memory-game/mg-frontend/src/App.jsx b/memory-game/mg-frontend/src/App.jsx index ee88b9a..54ab779 100644 --- a/memory-game/mg-frontend/src/App.jsx +++ b/memory-game/mg-frontend/src/App.jsx @@ -2,20 +2,26 @@ import { useState } from "react"; import "./App.css"; import Button from "./components/button"; import GameBoard from "./components/gameboard"; +import GameMessages from "./components/gameMessages"; import Scoreboard from "./components/scoreboard"; function App() { const [gameStarted, setGameStarted] = useState(false); + const [buttonText, setButtonText] = useState("Start Game!"); const [score, setScore] = useState(0); const [highScore, setHighScore] = useState(0); + const [message, setMessage] = useState("Remember the important things!"); return ( <> {!gameStarted ? ( -