diff --git a/client/pnpm-lock.yaml b/client/pnpm-lock.yaml index a338439..8823fc7 100644 --- a/client/pnpm-lock.yaml +++ b/client/pnpm-lock.yaml @@ -89,12 +89,6 @@ importers: react-icons: specifier: ^5.2.1 version: 5.4.0(react@18.3.1) - react-router: - specifier: ^7.0.2 - version: 7.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react-router-dom: - specifier: ^7.0.2 - version: 7.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-simple-flex-grid: specifier: ^1.3.21 version: 1.3.21 @@ -6326,23 +6320,6 @@ packages: resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==} engines: {node: '>=0.10.0'} - react-router-dom@7.1.1: - resolution: {integrity: sha512-vSrQHWlJ5DCfyrhgo0k6zViOe9ToK8uT5XGSmnuC2R3/g261IdIMpZVqfjD6vWSXdnf5Czs4VA/V60oVR6/jnA==} - engines: {node: '>=20.0.0'} - peerDependencies: - react: '>=18' - react-dom: '>=18' - - react-router@7.1.1: - resolution: {integrity: sha512-39sXJkftkKWRZ2oJtHhCxmoCrBCULr/HAH4IT5DHlgu/Q0FCPV0S4Lx+abjDTx/74xoZzNYDYbOZWlJjruyuDQ==} - engines: {node: '>=20.0.0'} - peerDependencies: - react: '>=18' - react-dom: '>=18' - peerDependenciesMeta: - react-dom: - optional: true - react-scripts@5.0.1: resolution: {integrity: sha512-8VAmEm/ZAwQzJ+GOMLbBsTdDKOpuZh7RPs0UymvBR2vRk4iZWCskjbFnxqjrzoIvlNNRZ3QJFx6/qDSi6zSnaQ==} engines: {node: '>=14.0.0'} @@ -15336,22 +15313,6 @@ snapshots: react-refresh@0.14.2: {} - react-router-dom@7.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - react-router: 7.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - - react-router@7.1.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): - dependencies: - '@types/cookie': 0.6.0 - cookie: 1.0.2 - react: 18.3.1 - set-cookie-parser: 2.7.1 - turbo-stream: 2.4.0 - optionalDependencies: - react-dom: 18.3.1(react@18.3.1) - react-scripts@5.0.1(@babel/plugin-syntax-flow@7.26.0(@babel/core@7.26.0))(@babel/plugin-transform-react-jsx@7.25.9(@babel/core@7.26.0))(@types/babel__core@7.20.5)(eslint@8.57.1)(react@18.3.1)(sass@1.83.0)(type-fest@0.21.3)(typescript@5.3.2): dependencies: '@babel/core': 7.26.0 diff --git a/client/postcss.config.js b/client/postcss.config.js new file mode 100644 index 0000000..2e7af2b --- /dev/null +++ b/client/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/client/src/App.tsx b/client/src/App.tsx index 05dde49..2f2b1e1 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -33,6 +33,8 @@ import { SDK } from "@dojoengine/sdk"; import Settings from "./components/Settings"; import ToolboxPage from "./components/Toolbox"; import { AvatarProvider } from "./context/avatar-context"; +import GamePlay from "./components/GamePlay"; +import { GameProvider } from "./context/game-context-2."; const App = ({ sdk }: { sdk: SDK }) => { @@ -85,8 +87,7 @@ const App = ({ sdk }: { sdk: SDK }) => { if (options.gameIsOngoing) { if (options.winners.length === options.playersLength - 1) { toast( - `The game has ended. Player ${ - chance[options.winners[0]] + `The game has ended. Player ${chance[options.winners[0]] } is the winner` ); setGameOptions({ @@ -127,123 +128,129 @@ const App = ({ sdk }: { sdk: SDK }) => { - - - } - /> - } /> - } /> - -
- - StarkLudo is still in active development{" "} - -
-
-
-
-
-
- - - - - -
-
-
-
-
-
- - {/* */} - - - {activeWindow === "account" ? ( - - setActiveWindow("") - } - title="PROFILE" - subtitle="Your Profile Information" - > - - - ) : null} + + + } + /> + } /> + } /> + + //
+ // + // StarkLudo is still in active development{" "} + // + //
+ //
+ //
+ //
+ //
+ //
+ // + // + // + // + // + //
+ //
+ //
+ //
+ //
+ //
+ // {} + // {/* */} + // + // + // {activeWindow === "account" ? ( + // + // setActiveWindow("") + // } + // title="PROFILE" + // subtitle="Your Profile Information" + // > + // + // + // ) : null} - {activeWindow === "leaderboard" ? ( - - setActiveWindow("") - } - title="LEADERBOARD" - subtitle="Global Player Rankings" - > - - - ) : null} + // {activeWindow === "leaderboard" ? ( + // + // setActiveWindow("") + // } + // title="LEADERBOARD" + // subtitle="Global Player Rankings" + // > + // + // + // ) : null} - {activeWindow === "multiplayer" ? ( - - setActiveWindow("") - } - title="MULTIPLAYER" - subtitle="Choose An Account To Play With" - > - - - ) : null} + // {activeWindow === "multiplayer" ? ( + // + // setActiveWindow("") + // } + // title="MULTIPLAYER" + // subtitle="Choose An Account To Play With" + // > + // + // + // ) : null} - {activeWindow === "toolbox" ? ( - - setActiveWindow("") - } - title="TOOLBOX" - subtitle="Get All Your Items And Settings Done" - > - - - ) : null} + // {activeWindow === "toolbox" ? ( + // + // setActiveWindow("") + // } + // title="TOOLBOX" + // subtitle="Get All Your Items And Settings Done" + // > + // + // + // ) : null} - {activeWindow === "help" && ( - - setActiveWindow("") - } - /> - )} - -
-
-
- -
-
-
-
- - } - /> - - + // {activeWindow === "help" && ( + // + // setActiveWindow("") + // } + // /> + // )} + // + //
+ //
+ //
+ // + //
+ //
+ //
+ //