diff --git a/public/icon/earth.webp b/public/icon/earth.webp new file mode 100644 index 0000000..07297e1 Binary files /dev/null and b/public/icon/earth.webp differ diff --git a/public/icon/fire.webp b/public/icon/fire.webp new file mode 100644 index 0000000..ab71a29 Binary files /dev/null and b/public/icon/fire.webp differ diff --git a/public/icon/water.webp b/public/icon/water.webp new file mode 100644 index 0000000..db3693b Binary files /dev/null and b/public/icon/water.webp differ diff --git a/public/icon/wind.webp b/public/icon/wind.webp new file mode 100644 index 0000000..a31b18d Binary files /dev/null and b/public/icon/wind.webp differ diff --git a/src/components/organisms/GameBoard/Footer/Counters/index.tsx b/src/components/organisms/GameBoard/Footer/Counters/index.tsx new file mode 100644 index 0000000..8323f29 --- /dev/null +++ b/src/components/organisms/GameBoard/Footer/Counters/index.tsx @@ -0,0 +1,84 @@ +import { useState } from "react"; +import { cva } from "styled-system/css/cva.mjs"; +import { Flex, Grid, HStack, VStack } from "styled-system/jsx"; +import { button } from "styled-system/recipes"; + +export const CountersTray = () => { + return ( + + {(["earth", "fire", "water", "wind"] as const).map((type) => ( + + ))} + + ); +}; + +const Resource = (props: { type: "fire" | "water" | "wind" | "earth" }) => { + const [amount, setAmount] = useState(0); + function increment() { + setAmount((prev) => prev + 1); + } + + function decrement() { + setAmount((prev) => (prev === 0 ? prev : prev - 1)); + } + + return ( + + + fire +

{amount}

+
+ + + + + +
+ ); +}; + +const iconStyle = cva({ + base: { + width: "25px", + }, +}); diff --git a/src/components/organisms/GameBoard/Footer/Decks/index.tsx b/src/components/organisms/GameBoard/Footer/Decks/index.tsx index 979cbf5..0e71a9f 100644 --- a/src/components/organisms/GameBoard/Footer/Decks/index.tsx +++ b/src/components/organisms/GameBoard/Footer/Decks/index.tsx @@ -54,7 +54,7 @@ export const DecksTray = (props: GameStateActions) => { /> { overflowX: "auto", }} > - + + {