diff --git a/components/home.js b/components/home.js index 8b2caa6..bd29cf5 100644 --- a/components/home.js +++ b/components/home.js @@ -1,6 +1,6 @@ import HeadContent from "@/components/headContent"; import { FaDiscord, FaGithub } from "react-icons/fa"; -import { FaGear,FaRankingStar, FaYoutube } from "react-icons/fa6"; +import { FaArrowRotateRight, FaGear,FaRankingStar, FaYoutube } from "react-icons/fa6"; import { signOut, useSession } from "@/components/auth/auth"; import 'react-responsive-modal/styles.css'; import { useEffect, useState, useRef } from "react"; @@ -1979,6 +1979,15 @@ setShowCountryButtons(false) }))}} inCoolMathGames={inCoolMathGames} maintenance={maintenance} inCrazyGames={inCrazyGames} loading={loading} onFriendsPress={()=>setFriendsModal(true)} loginQueued={loginQueued} setLoginQueued={setLoginQueued} inGame={multiplayerState?.inGame || screen === "singleplayer"} openAccountModal={() => setAccountModalOpen(true)} session={session} reloadBtnPressed={reloadBtnPressed} backBtnPressed={backBtnPressed} setGameOptionsModalShown={setGameOptionsModalShown} onNavbarPress={() => onNavbarLogoPress()} gameOptions={gameOptions} screen={screen} multiplayerState={multiplayerState} shown={!multiplayerState?.gameData?.public && !leagueModal} /> + +{/* reload button for public game */} +{ multiplayerState?.gameData?.public && multiplayerState?.gameData?.state === "guess" && ( +
+ + +
+)} + {/* ELO/League button */} {screen === "home" && !mapModal && session && session?.token?.secret && ( {reloadBtn && ( - + )} diff --git a/styles/globals.scss b/styles/globals.scss index ddcc85b..8f9d375 100644 --- a/styles/globals.scss +++ b/styles/globals.scss @@ -296,6 +296,14 @@ html { .backBtn:hover { background-color: darkred; } + +.reloadBtn { + background-color: #000099; + // width: 100px; +} +.reloadBtn:hover { + background-color: #00005f; +} h1, h2, h3, span { font-weight: 500; color: white;