From 1579fdec63946463116c11bfc281f46b8c55308f Mon Sep 17 00:00:00 2001 From: Avelous Ujiri <86206128+Avelous@users.noreply.github.com> Date: Tue, 19 Mar 2024 19:55:53 +0100 Subject: [PATCH] Staging merge to main (#37) * Pk dice updates (#36) * Added a welcome roll section to home screen, set theme to light mode only, removed ai background & responsive UI updates --- packages/nextjs/components/Footer.tsx | 21 +-- packages/nextjs/components/Header.tsx | 8 +- packages/nextjs/components/SwitchTheme.tsx | 2 +- packages/nextjs/components/Wallet.tsx | 4 +- .../components/dicedemo/GameCreateForm.tsx | 6 +- .../components/dicedemo/GameJoinForm.tsx | 17 +-- .../{Congrats.tsx => PlayerAnnoucement.tsx} | 4 +- .../components/dicedemo/WelcomeRoll.tsx | 143 ++++++++++++++++++ .../RainbowKitCustomConnectButton.tsx | 4 +- packages/nextjs/pages/_app.tsx | 12 +- packages/nextjs/pages/game/[id].tsx | 86 ++++------- packages/nextjs/pages/index.tsx | 77 +++++----- packages/nextjs/tailwind.config.js | 20 ++- packages/nextjs/utils/diceDemo/gameUtils.ts | 15 ++ 14 files changed, 270 insertions(+), 149 deletions(-) rename packages/nextjs/components/dicedemo/{Congrats.tsx => PlayerAnnoucement.tsx} (97%) create mode 100644 packages/nextjs/components/dicedemo/WelcomeRoll.tsx create mode 100644 packages/nextjs/utils/diceDemo/gameUtils.ts diff --git a/packages/nextjs/components/Footer.tsx b/packages/nextjs/components/Footer.tsx index f15f646..7b8cf2d 100644 --- a/packages/nextjs/components/Footer.tsx +++ b/packages/nextjs/components/Footer.tsx @@ -1,21 +1,22 @@ -import { hardhat } from "wagmi/chains"; -import { CurrencyDollarIcon } from "@heroicons/react/24/outline"; +// import { hardhat } from "wagmi/chains"; +// import { CurrencyDollarIcon } from "@heroicons/react/24/outline"; import { HeartIcon } from "@heroicons/react/24/outline"; -import { SwitchTheme } from "~~/components/SwitchTheme"; -import { Faucet } from "~~/components/scaffold-eth"; -import { useGlobalState } from "~~/services/store/store"; -import { getTargetNetwork } from "~~/utils/scaffold-eth"; + +// import { SwitchTheme } from "~~/components/SwitchTheme"; +// import { Faucet } from "~~/components/scaffold-eth"; +// import { useGlobalState } from "~~/services/store/store"; +// import { getTargetNetwork } from "~~/utils/scaffold-eth"; /** * Site footer */ export const Footer = () => { - const nativeCurrencyPrice = useGlobalState(state => state.nativeCurrencyPrice); + // const nativeCurrencyPrice = useGlobalState(state => state.nativeCurrencyPrice); const codeLink = "https://github.com/BuidlGuidl/private-key-dice"; return ( -