From cfc23d7d6dbbabe78b4389469702261a88313a6e Mon Sep 17 00:00:00 2001
From: Fluffy9 <29765579+Fluffy9@users.noreply.github.com>
Date: Thu, 6 Jun 2024 13:39:30 -0400
Subject: [PATCH 1/6] UI elements
---
.../src/components/Stats/HealthPotion.tsx | 13 +++
.../client/src/components/Stats/Inventory.tsx | 30 +++++++
.../client/src/components/Stats/Level.tsx | 14 ++++
.../client/src/components/Stats/Money.tsx | 11 +++
.../src/components/Stats/Navigation.tsx | 81 +++++++++++++++++++
.../client/src/components/Stats/Socials.tsx | 18 +++++
.../client/src/components/Stats/Stats.tsx | 39 +++++++++
.../client/src/components/Stats/TopBar.tsx | 18 +++++
packages/client/src/utils/theme.ts | 11 +++
9 files changed, 235 insertions(+)
create mode 100644 packages/client/src/components/Stats/HealthPotion.tsx
create mode 100644 packages/client/src/components/Stats/Inventory.tsx
create mode 100644 packages/client/src/components/Stats/Level.tsx
create mode 100644 packages/client/src/components/Stats/Money.tsx
create mode 100644 packages/client/src/components/Stats/Navigation.tsx
create mode 100644 packages/client/src/components/Stats/Socials.tsx
create mode 100644 packages/client/src/components/Stats/Stats.tsx
create mode 100644 packages/client/src/components/Stats/TopBar.tsx
diff --git a/packages/client/src/components/Stats/HealthPotion.tsx b/packages/client/src/components/Stats/HealthPotion.tsx
new file mode 100644
index 000000000..ddbd2c0a6
--- /dev/null
+++ b/packages/client/src/components/Stats/HealthPotion.tsx
@@ -0,0 +1,13 @@
+import { Box, Heading, HStack, Spacer, Text } from '@chakra-ui/react';
+
+export const HealthPotion = (): JSX.Element => {
+ return (
+
+
+ Health Potion
+
+ 3θ
+
+
+ );
+};
diff --git a/packages/client/src/components/Stats/Inventory.tsx b/packages/client/src/components/Stats/Inventory.tsx
new file mode 100644
index 000000000..1f49c5949
--- /dev/null
+++ b/packages/client/src/components/Stats/Inventory.tsx
@@ -0,0 +1,30 @@
+import { Box, Heading, HStack, Spacer, Text, VStack } from '@chakra-ui/react';
+
+export const Inventory = (): JSX.Element => {
+ return (
+
+
+
+ Active Items
+
+ 1/3
+
+
+ Rusty Dagger
+
+ ⁂
+
+
+ Empty Slot
+
+ +
+
+
+ Empty Slot
+
+ +
+
+
+
+ );
+};
diff --git a/packages/client/src/components/Stats/Level.tsx b/packages/client/src/components/Stats/Level.tsx
new file mode 100644
index 000000000..c6683ecab
--- /dev/null
+++ b/packages/client/src/components/Stats/Level.tsx
@@ -0,0 +1,14 @@
+import { Box, HStack, Progress, Spacer, Text } from '@chakra-ui/react';
+
+export const Level = (): JSX.Element => {
+ return (
+
+
+
+ Level 1
+
+ Level 2
+
+
+ );
+};
diff --git a/packages/client/src/components/Stats/Money.tsx b/packages/client/src/components/Stats/Money.tsx
new file mode 100644
index 000000000..85099483d
--- /dev/null
+++ b/packages/client/src/components/Stats/Money.tsx
@@ -0,0 +1,11 @@
+import { HStack, Spacer, Text } from '@chakra-ui/react';
+
+export const Money = (): JSX.Element => {
+ return (
+
+ 2,00 $GOLD
+
+ 190/345
+
+ );
+};
diff --git a/packages/client/src/components/Stats/Navigation.tsx b/packages/client/src/components/Stats/Navigation.tsx
new file mode 100644
index 000000000..2ddf8711f
--- /dev/null
+++ b/packages/client/src/components/Stats/Navigation.tsx
@@ -0,0 +1,81 @@
+import { Link, VStack } from '@chakra-ui/react';
+
+export const Navigation = (): JSX.Element => {
+ return (
+
+
+ Auction House
+
+
+ Leader Board
+
+
+ Guild Info
+
+
+ Map Info
+
+
+ Create Map
+
+
+ About
+
+
+ );
+};
diff --git a/packages/client/src/components/Stats/Socials.tsx b/packages/client/src/components/Stats/Socials.tsx
new file mode 100644
index 000000000..cd183d7b2
--- /dev/null
+++ b/packages/client/src/components/Stats/Socials.tsx
@@ -0,0 +1,18 @@
+import { Link, Spacer, Stack } from '@chakra-ui/react';
+import { FaDiscord, FaTwitter } from 'react-icons/fa';
+
+export const Socials = (): JSX.Element => {
+ return (
+
+
+
+
+
+
+
+
+
+ T&C
+
+ );
+};
diff --git a/packages/client/src/components/Stats/Stats.tsx b/packages/client/src/components/Stats/Stats.tsx
new file mode 100644
index 000000000..a8ad97452
--- /dev/null
+++ b/packages/client/src/components/Stats/Stats.tsx
@@ -0,0 +1,39 @@
+import { Box, Grid, GridItem, Text } from '@chakra-ui/react';
+
+export const Stats = (): JSX.Element => {
+ return (
+
+
+
+ HP
+
+
+ 1
+
+
+ STR
+
+
+ 3
+
+
+ AGI
+
+
+ 4
+
+
+ INT
+
+
+ 5
+
+
+
+ );
+};
diff --git a/packages/client/src/components/Stats/TopBar.tsx b/packages/client/src/components/Stats/TopBar.tsx
new file mode 100644
index 000000000..769150b8b
--- /dev/null
+++ b/packages/client/src/components/Stats/TopBar.tsx
@@ -0,0 +1,18 @@
+import { Avatar, Box, Flex, Text } from '@chakra-ui/react';
+import { IoIosArrowForward } from 'react-icons/io';
+
+export const TopBar = (): JSX.Element => {
+ return (
+
+
+
+
+
+ 0lffaa_08 ※
+
+
+
+
+
+ );
+};
diff --git a/packages/client/src/utils/theme.ts b/packages/client/src/utils/theme.ts
index 94af8ce18..896cea98d 100644
--- a/packages/client/src/utils/theme.ts
+++ b/packages/client/src/utils/theme.ts
@@ -11,7 +11,17 @@ export const globalStyles = css`
font-size: 1rem;
}
`;
+const Progress = {
+ baseStyle: {
+ track: {
+ borderRadius: 5,
+ },
+ filledTrack: {
+ bg: 'black',
+ },
+ },
+};
const Button = {
baseStyle: {
borderRadius: 5,
@@ -128,6 +138,7 @@ export const theme = extendTheme({
Button,
Heading,
Input,
+ Progress,
Text,
Textarea,
},
From 20b5a979dc987f2cacb133632253c2e23b4540ce Mon Sep 17 00:00:00 2001
From: Fluffy9 <29765579+Fluffy9@users.noreply.github.com>
Date: Thu, 6 Jun 2024 13:51:27 -0400
Subject: [PATCH 2/6] stats panel ui
---
packages/client/src/pages/GameBoard.tsx | 23 ++++++++++++++++++++---
packages/client/src/utils/theme.ts | 1 -
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/packages/client/src/pages/GameBoard.tsx b/packages/client/src/pages/GameBoard.tsx
index 1143a0a48..a79357ea6 100644
--- a/packages/client/src/pages/GameBoard.tsx
+++ b/packages/client/src/pages/GameBoard.tsx
@@ -1,4 +1,13 @@
-import { Grid, GridItem, Heading } from '@chakra-ui/react';
+import { Grid, GridItem, Heading, VStack } from '@chakra-ui/react';
+
+import { HealthPotion } from '../components/Stats/HealthPotion';
+import { Inventory } from '../components/Stats/Inventory';
+import { Level } from '../components/Stats/Level';
+import { Money } from '../components/Stats/Money';
+import { Navigation } from '../components/Stats/Navigation';
+import { Socials } from '../components/Stats/Socials';
+import { Stats } from '../components/Stats/Stats';
+import { TopBar } from '../components/Stats/TopBar';
export const GameBoard = (): JSX.Element => {
return (
@@ -10,14 +19,22 @@ export const GameBoard = (): JSX.Element => {
templateRows={{ base: 'repeat(13, 1fr)', md: 'repeat(12, 1fr)' }}
>
- StatsPanel
+
+
+
+
+
+
+
+
+
+
Date: Fri, 7 Jun 2024 08:21:06 -0400
Subject: [PATCH 3/6] fixes
---
.../client/src/components/Stats/HealthPotion.tsx | 2 +-
.../client/src/components/Stats/Inventory.tsx | 10 +++++-----
packages/client/src/components/Stats/Level.tsx | 16 ++++++++++++++--
packages/client/src/components/Stats/Money.tsx | 2 +-
.../client/src/components/Stats/Navigation.tsx | 2 +-
packages/client/src/components/Stats/Socials.tsx | 2 +-
packages/client/src/components/Stats/Stats.tsx | 4 ++--
packages/client/src/components/Stats/TopBar.tsx | 2 +-
packages/client/src/pages/GameBoard.tsx | 11 +++++++++--
9 files changed, 35 insertions(+), 16 deletions(-)
diff --git a/packages/client/src/components/Stats/HealthPotion.tsx b/packages/client/src/components/Stats/HealthPotion.tsx
index ddbd2c0a6..41e9c0016 100644
--- a/packages/client/src/components/Stats/HealthPotion.tsx
+++ b/packages/client/src/components/Stats/HealthPotion.tsx
@@ -3,7 +3,7 @@ import { Box, Heading, HStack, Spacer, Text } from '@chakra-ui/react';
export const HealthPotion = (): JSX.Element => {
return (
-
+
Health Potion
3θ
diff --git a/packages/client/src/components/Stats/Inventory.tsx b/packages/client/src/components/Stats/Inventory.tsx
index 1f49c5949..437e0e73e 100644
--- a/packages/client/src/components/Stats/Inventory.tsx
+++ b/packages/client/src/components/Stats/Inventory.tsx
@@ -3,23 +3,23 @@ import { Box, Heading, HStack, Spacer, Text, VStack } from '@chakra-ui/react';
export const Inventory = (): JSX.Element => {
return (
-
-
+
+
Active Items
1/3
-
+
Rusty Dagger
⁂
-
+
Empty Slot
+
-
+
Empty Slot
+
diff --git a/packages/client/src/components/Stats/Level.tsx b/packages/client/src/components/Stats/Level.tsx
index c6683ecab..4d9945845 100644
--- a/packages/client/src/components/Stats/Level.tsx
+++ b/packages/client/src/components/Stats/Level.tsx
@@ -1,9 +1,21 @@
import { Box, HStack, Progress, Spacer, Text } from '@chakra-ui/react';
export const Level = (): JSX.Element => {
+ const percent = 50;
return (
-
-
+
+
+ {percent}
+
+ 90 ? 'none' : 'block'}
+ position="absolute"
+ right="0%"
+ top="-20px"
+ >
+ 100
+
+
Level 1
diff --git a/packages/client/src/components/Stats/Money.tsx b/packages/client/src/components/Stats/Money.tsx
index 85099483d..44bce0cf6 100644
--- a/packages/client/src/components/Stats/Money.tsx
+++ b/packages/client/src/components/Stats/Money.tsx
@@ -2,7 +2,7 @@ import { HStack, Spacer, Text } from '@chakra-ui/react';
export const Money = (): JSX.Element => {
return (
-
+
2,00 $GOLD
190/345
diff --git a/packages/client/src/components/Stats/Navigation.tsx b/packages/client/src/components/Stats/Navigation.tsx
index 2ddf8711f..ad73f9115 100644
--- a/packages/client/src/components/Stats/Navigation.tsx
+++ b/packages/client/src/components/Stats/Navigation.tsx
@@ -4,11 +4,11 @@ export const Navigation = (): JSX.Element => {
return (
{
- T&C
+ T&C
);
};
diff --git a/packages/client/src/components/Stats/Stats.tsx b/packages/client/src/components/Stats/Stats.tsx
index a8ad97452..979b64d45 100644
--- a/packages/client/src/components/Stats/Stats.tsx
+++ b/packages/client/src/components/Stats/Stats.tsx
@@ -2,11 +2,11 @@ import { Box, Grid, GridItem, Text } from '@chakra-ui/react';
export const Stats = (): JSX.Element => {
return (
-
+
diff --git a/packages/client/src/components/Stats/TopBar.tsx b/packages/client/src/components/Stats/TopBar.tsx
index 769150b8b..2bfe9e2e3 100644
--- a/packages/client/src/components/Stats/TopBar.tsx
+++ b/packages/client/src/components/Stats/TopBar.tsx
@@ -3,7 +3,7 @@ import { IoIosArrowForward } from 'react-icons/io';
export const TopBar = (): JSX.Element => {
return (
-
+
diff --git a/packages/client/src/pages/GameBoard.tsx b/packages/client/src/pages/GameBoard.tsx
index a79357ea6..4d4abd798 100644
--- a/packages/client/src/pages/GameBoard.tsx
+++ b/packages/client/src/pages/GameBoard.tsx
@@ -1,4 +1,4 @@
-import { Grid, GridItem, Heading, VStack } from '@chakra-ui/react';
+import { Grid, GridItem, Heading, Spacer, VStack } from '@chakra-ui/react';
import { HealthPotion } from '../components/Stats/HealthPotion';
import { Inventory } from '../components/Stats/Inventory';
@@ -25,14 +25,21 @@ export const GameBoard = (): JSX.Element => {
padding="5px"
rowSpan={{ base: 12, md: 12 }}
>
-
+
+
+
+
+
+
+
+
From 2b8041c072e58067123bf46dde3dc6b800b4519b Mon Sep 17 00:00:00 2001
From: Fluffy9 <29765579+Fluffy9@users.noreply.github.com>
Date: Fri, 7 Jun 2024 08:34:17 -0400
Subject: [PATCH 4/6] forgot some fixes
---
.../src/components/Stats/HealthPotion.tsx | 2 +-
.../client/src/components/Stats/Inventory.tsx | 8 ++---
.../client/src/components/Stats/Level.tsx | 2 +-
.../client/src/components/Stats/Money.tsx | 2 +-
.../client/src/components/Stats/Socials.tsx | 4 +--
.../client/src/components/Stats/TopBar.tsx | 2 +-
packages/client/src/pages/GameBoard.tsx | 30 +++++++++----------
7 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/packages/client/src/components/Stats/HealthPotion.tsx b/packages/client/src/components/Stats/HealthPotion.tsx
index 41e9c0016..ec954eec2 100644
--- a/packages/client/src/components/Stats/HealthPotion.tsx
+++ b/packages/client/src/components/Stats/HealthPotion.tsx
@@ -5,7 +5,7 @@ export const HealthPotion = (): JSX.Element => {
Health Potion
-
+
3θ
diff --git a/packages/client/src/components/Stats/Inventory.tsx b/packages/client/src/components/Stats/Inventory.tsx
index 437e0e73e..8b8f30c42 100644
--- a/packages/client/src/components/Stats/Inventory.tsx
+++ b/packages/client/src/components/Stats/Inventory.tsx
@@ -6,22 +6,22 @@ export const Inventory = (): JSX.Element => {
Active Items
-
+
1/3
Rusty Dagger
-
+
⁂
Empty Slot
-
+
+
Empty Slot
-
+
+
diff --git a/packages/client/src/components/Stats/Level.tsx b/packages/client/src/components/Stats/Level.tsx
index 4d9945845..2695206e6 100644
--- a/packages/client/src/components/Stats/Level.tsx
+++ b/packages/client/src/components/Stats/Level.tsx
@@ -18,7 +18,7 @@ export const Level = (): JSX.Element => {
Level 1
-
+
Level 2
diff --git a/packages/client/src/components/Stats/Money.tsx b/packages/client/src/components/Stats/Money.tsx
index 44bce0cf6..123aa8cbc 100644
--- a/packages/client/src/components/Stats/Money.tsx
+++ b/packages/client/src/components/Stats/Money.tsx
@@ -4,7 +4,7 @@ export const Money = (): JSX.Element => {
return (
2,00 $GOLD
-
+
190/345
);
diff --git a/packages/client/src/components/Stats/Socials.tsx b/packages/client/src/components/Stats/Socials.tsx
index 54b6fb35c..cce7d7418 100644
--- a/packages/client/src/components/Stats/Socials.tsx
+++ b/packages/client/src/components/Stats/Socials.tsx
@@ -7,11 +7,11 @@ export const Socials = (): JSX.Element => {
-
+
-
+
T&C
);
diff --git a/packages/client/src/components/Stats/TopBar.tsx b/packages/client/src/components/Stats/TopBar.tsx
index 2bfe9e2e3..5ae28a6c1 100644
--- a/packages/client/src/components/Stats/TopBar.tsx
+++ b/packages/client/src/components/Stats/TopBar.tsx
@@ -5,7 +5,7 @@ export const TopBar = (): JSX.Element => {
return (
-
+
0lffaa_08 ※
diff --git a/packages/client/src/pages/GameBoard.tsx b/packages/client/src/pages/GameBoard.tsx
index 4d4abd798..682ddc14f 100644
--- a/packages/client/src/pages/GameBoard.tsx
+++ b/packages/client/src/pages/GameBoard.tsx
@@ -26,21 +26,21 @@ export const GameBoard = (): JSX.Element => {
rowSpan={{ base: 12, md: 12 }}
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Date: Fri, 7 Jun 2024 14:12:43 -0400
Subject: [PATCH 5/6] Spacing and size fixes
---
.../client/src/components/Stats/Inventory.tsx | 30 -----------------
.../{Stats => StatsPanel}/HealthPotion.tsx | 4 +--
.../src/components/StatsPanel/Inventory.tsx | 30 +++++++++++++++++
.../{Stats => StatsPanel}/Level.tsx | 16 +++++++---
.../{Stats => StatsPanel}/Money.tsx | 0
.../{Stats => StatsPanel}/Navigation.tsx | 0
.../{Stats => StatsPanel}/Socials.tsx | 4 +--
.../{Stats => StatsPanel}/Stats.tsx | 16 +++++++---
.../{Stats => StatsPanel}/TopBar.tsx | 4 +--
.../src/components/StatsPanel/index.tsx | 32 +++++++++++++++++++
packages/client/src/pages/GameBoard.tsx | 29 ++---------------
packages/client/src/utils/theme.ts | 25 ++++++++-------
12 files changed, 108 insertions(+), 82 deletions(-)
delete mode 100644 packages/client/src/components/Stats/Inventory.tsx
rename packages/client/src/components/{Stats => StatsPanel}/HealthPotion.tsx (66%)
create mode 100644 packages/client/src/components/StatsPanel/Inventory.tsx
rename packages/client/src/components/{Stats => StatsPanel}/Level.tsx (69%)
rename packages/client/src/components/{Stats => StatsPanel}/Money.tsx (100%)
rename packages/client/src/components/{Stats => StatsPanel}/Navigation.tsx (100%)
rename packages/client/src/components/{Stats => StatsPanel}/Socials.tsx (85%)
rename packages/client/src/components/{Stats => StatsPanel}/Stats.tsx (69%)
rename packages/client/src/components/{Stats => StatsPanel}/TopBar.tsx (82%)
create mode 100644 packages/client/src/components/StatsPanel/index.tsx
diff --git a/packages/client/src/components/Stats/Inventory.tsx b/packages/client/src/components/Stats/Inventory.tsx
deleted file mode 100644
index 8b8f30c42..000000000
--- a/packages/client/src/components/Stats/Inventory.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import { Box, Heading, HStack, Spacer, Text, VStack } from '@chakra-ui/react';
-
-export const Inventory = (): JSX.Element => {
- return (
-
-
-
- Active Items
-
- 1/3
-
-
- Rusty Dagger
-
- ⁂
-
-
- Empty Slot
-
- +
-
-
- Empty Slot
-
- +
-
-
-
- );
-};
diff --git a/packages/client/src/components/Stats/HealthPotion.tsx b/packages/client/src/components/StatsPanel/HealthPotion.tsx
similarity index 66%
rename from packages/client/src/components/Stats/HealthPotion.tsx
rename to packages/client/src/components/StatsPanel/HealthPotion.tsx
index ec954eec2..aafaaceae 100644
--- a/packages/client/src/components/Stats/HealthPotion.tsx
+++ b/packages/client/src/components/StatsPanel/HealthPotion.tsx
@@ -1,10 +1,10 @@
-import { Box, Heading, HStack, Spacer, Text } from '@chakra-ui/react';
+import { Box, HStack, Spacer, Text } from '@chakra-ui/react';
export const HealthPotion = (): JSX.Element => {
return (
- Health Potion
+ Health Potion
3θ
diff --git a/packages/client/src/components/StatsPanel/Inventory.tsx b/packages/client/src/components/StatsPanel/Inventory.tsx
new file mode 100644
index 000000000..f22706ed3
--- /dev/null
+++ b/packages/client/src/components/StatsPanel/Inventory.tsx
@@ -0,0 +1,30 @@
+import { Box, Button, HStack, Spacer, Text, VStack } from '@chakra-ui/react';
+
+export const Inventory = (): JSX.Element => {
+ return (
+
+
+
+ Active Items
+
+ 1/3
+
+
+ Rusty Dagger
+
+
+
+
+ Empty Slot
+
+
+
+
+ Empty Slot
+
+
+
+
+
+ );
+};
diff --git a/packages/client/src/components/Stats/Level.tsx b/packages/client/src/components/StatsPanel/Level.tsx
similarity index 69%
rename from packages/client/src/components/Stats/Level.tsx
rename to packages/client/src/components/StatsPanel/Level.tsx
index 2695206e6..3cc0e5869 100644
--- a/packages/client/src/components/Stats/Level.tsx
+++ b/packages/client/src/components/StatsPanel/Level.tsx
@@ -3,23 +3,29 @@ import { Box, HStack, Progress, Spacer, Text } from '@chakra-ui/react';
export const Level = (): JSX.Element => {
const percent = 50;
return (
-
-
+
+
{percent}
90 ? 'none' : 'block'}
position="absolute"
right="0%"
- top="-20px"
+ top="-10px"
>
100
- Level 1
+ Level 1
- Level 2
+ Level 2
);
diff --git a/packages/client/src/components/Stats/Money.tsx b/packages/client/src/components/StatsPanel/Money.tsx
similarity index 100%
rename from packages/client/src/components/Stats/Money.tsx
rename to packages/client/src/components/StatsPanel/Money.tsx
diff --git a/packages/client/src/components/Stats/Navigation.tsx b/packages/client/src/components/StatsPanel/Navigation.tsx
similarity index 100%
rename from packages/client/src/components/Stats/Navigation.tsx
rename to packages/client/src/components/StatsPanel/Navigation.tsx
diff --git a/packages/client/src/components/Stats/Socials.tsx b/packages/client/src/components/StatsPanel/Socials.tsx
similarity index 85%
rename from packages/client/src/components/Stats/Socials.tsx
rename to packages/client/src/components/StatsPanel/Socials.tsx
index cce7d7418..45c367e62 100644
--- a/packages/client/src/components/Stats/Socials.tsx
+++ b/packages/client/src/components/StatsPanel/Socials.tsx
@@ -5,11 +5,11 @@ export const Socials = (): JSX.Element => {
return (
-
+
-
+
T&C
diff --git a/packages/client/src/components/Stats/Stats.tsx b/packages/client/src/components/StatsPanel/Stats.tsx
similarity index 69%
rename from packages/client/src/components/Stats/Stats.tsx
rename to packages/client/src/components/StatsPanel/Stats.tsx
index 979b64d45..9cf470ce6 100644
--- a/packages/client/src/components/Stats/Stats.tsx
+++ b/packages/client/src/components/StatsPanel/Stats.tsx
@@ -10,25 +10,33 @@ export const Stats = (): JSX.Element => {
width="75%"
>
- HP
+
+ HP
+
1
- STR
+
+ STR
+
3
- AGI
+
+ AGI
+
4
- INT
+
+ INT
+
5
diff --git a/packages/client/src/components/Stats/TopBar.tsx b/packages/client/src/components/StatsPanel/TopBar.tsx
similarity index 82%
rename from packages/client/src/components/Stats/TopBar.tsx
rename to packages/client/src/components/StatsPanel/TopBar.tsx
index 5ae28a6c1..3383b1f2e 100644
--- a/packages/client/src/components/Stats/TopBar.tsx
+++ b/packages/client/src/components/StatsPanel/TopBar.tsx
@@ -5,10 +5,10 @@ export const TopBar = (): JSX.Element => {
return (
-
+
- 0lffaa_08 ※
+ 0lffaa_08 ※
diff --git a/packages/client/src/components/StatsPanel/index.tsx b/packages/client/src/components/StatsPanel/index.tsx
new file mode 100644
index 000000000..703916484
--- /dev/null
+++ b/packages/client/src/components/StatsPanel/index.tsx
@@ -0,0 +1,32 @@
+import { Spacer, VStack } from '@chakra-ui/react';
+
+import { HealthPotion } from './HealthPotion';
+import { Inventory } from './Inventory';
+import { Level } from './Level';
+import { Money } from './Money';
+import { Navigation } from './Navigation';
+import { Socials } from './Socials';
+import { Stats } from './Stats';
+import { TopBar } from './TopBar';
+
+export const StatsPanel = (): JSX.Element => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/packages/client/src/pages/GameBoard.tsx b/packages/client/src/pages/GameBoard.tsx
index 682ddc14f..8a90a6aff 100644
--- a/packages/client/src/pages/GameBoard.tsx
+++ b/packages/client/src/pages/GameBoard.tsx
@@ -1,13 +1,6 @@
-import { Grid, GridItem, Heading, Spacer, VStack } from '@chakra-ui/react';
+import { Grid, GridItem, Heading } from '@chakra-ui/react';
-import { HealthPotion } from '../components/Stats/HealthPotion';
-import { Inventory } from '../components/Stats/Inventory';
-import { Level } from '../components/Stats/Level';
-import { Money } from '../components/Stats/Money';
-import { Navigation } from '../components/Stats/Navigation';
-import { Socials } from '../components/Stats/Socials';
-import { Stats } from '../components/Stats/Stats';
-import { TopBar } from '../components/Stats/TopBar';
+import { StatsPanel } from '../components/StatsPanel';
export const GameBoard = (): JSX.Element => {
return (
@@ -25,23 +18,7 @@ export const GameBoard = (): JSX.Element => {
padding="5px"
rowSpan={{ base: 12, md: 12 }}
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Date: Fri, 7 Jun 2024 14:13:29 -0400
Subject: [PATCH 6/6] Text to buttons
---
.../client/src/components/StatsPanel/Inventory.tsx | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/packages/client/src/components/StatsPanel/Inventory.tsx b/packages/client/src/components/StatsPanel/Inventory.tsx
index f22706ed3..35dde5512 100644
--- a/packages/client/src/components/StatsPanel/Inventory.tsx
+++ b/packages/client/src/components/StatsPanel/Inventory.tsx
@@ -12,17 +12,23 @@ export const Inventory = (): JSX.Element => {
Rusty Dagger
-
+
Empty Slot
-
+
Empty Slot
-
+