-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/27 tile details panel #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d262efb
Tile detail UI elements
Fluffy9 807c0a8
Fixes
Fluffy9 029f8f6
stats panel ui
Fluffy9 e28e4b2
fixes
Fluffy9 f2a2251
forgot some fixes
Fluffy9 3ee99de
Spacing and size fixes
Fluffy9 3b301bf
Text to buttons
Fluffy9 ee035e9
Tile detail UI elements
Fluffy9 9838f9a
Spacing and size fixes
Fluffy9 bd7ba4c
Tile detail UI elements
Fluffy9 db7b531
stats panel ui
Fluffy9 a499ad8
Tile detail UI elements
Fluffy9 500630d
fixes
Fluffy9 0fff7c6
Merge branch 'feat/26-stats-panel' into feat/27-tile-details-panel
Fluffy9 f839cce
fix font weights
Fluffy9 dd70ad8
Addressed fixes
Fluffy9 7d9857e
Minor grid tweak
ECWireless File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
packages/client/src/components/TileDetailsPanel/Monsters.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import { Box, HStack, Spacer, Text } from '@chakra-ui/react'; | ||
|
|
||
| export const Monsters = (): JSX.Element => { | ||
| return ( | ||
| <Box> | ||
| <Text fontWeight="bold" p="10px" size="lg"> | ||
| Monsters | ||
| </Text> | ||
| <Box mt={4}> | ||
| <HStack p="5px 10px" w="100%"> | ||
| <Text color="yellow">Kobold</Text> | ||
| <Spacer /> | ||
| <Text fontWeight="bold">Level 2</Text> | ||
| </HStack> | ||
| <Spacer /> | ||
| <HStack bg="grey300" p="5px 10px"> | ||
| <Text color="green">Green Slime</Text> | ||
|
ECWireless marked this conversation as resolved.
|
||
| <Spacer /> | ||
| <Text fontWeight="bold">Level 2</Text> | ||
| </HStack> | ||
| <Spacer /> | ||
| <HStack p="5px 10px"> | ||
| <Text color="red">Cave Bandit</Text> | ||
|
ECWireless marked this conversation as resolved.
|
||
| <Spacer /> | ||
| <Text fontWeight="bold">Level 2</Text> | ||
| </HStack> | ||
| </Box> | ||
| </Box> | ||
| ); | ||
| }; | ||
18 changes: 18 additions & 0 deletions
18
packages/client/src/components/TileDetailsPanel/Players.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import { Box, Text, VStack } from '@chakra-ui/react'; | ||
|
|
||
| export const Players = (): JSX.Element => { | ||
| return ( | ||
| <Box> | ||
| <Text fontWeight="bold" p="10px" size="lg"> | ||
| Players | ||
| </Text> | ||
| <VStack alignItems="start" mt={4} p="0 10px"> | ||
| <Text>Mon-o 🧙♂️</Text> | ||
| <Text>GUATY 🎭</Text> | ||
| <Text>Wolf R ※</Text> | ||
| <Text>GUATY 🎭</Text> | ||
| <Text>Wolf R ※</Text> | ||
| </VStack> | ||
| </Box> | ||
| ); | ||
| }; |
34 changes: 34 additions & 0 deletions
34
packages/client/src/components/TileDetailsPanel/SafeZone.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import { Box, HStack, Text, VStack } from '@chakra-ui/react'; | ||
| import { IoIosArrowForward } from 'react-icons/io'; | ||
|
|
||
| export const SafeZone = (): JSX.Element => { | ||
| return ( | ||
| <Box> | ||
| <Text p="10px" size="sm"> | ||
| Safe Zone | ||
| </Text> | ||
| <VStack alignItems="start" mt={4} p="0 10px" gap={4}> | ||
| <HStack fontWeight="bold"> | ||
| <Text size="sm">Level 1</Text> | ||
| <IoIosArrowForward /> | ||
| </HStack> | ||
| <HStack fontWeight="bold"> | ||
| <Text size="sm">Level 2</Text> | ||
| <IoIosArrowForward /> | ||
| </HStack> | ||
| <HStack fontWeight="bold"> | ||
| <Text size="sm">Level 1</Text> | ||
| <IoIosArrowForward /> | ||
| </HStack> | ||
| <HStack fontWeight="bold"> | ||
| <Text size="sm">Level 2</Text> | ||
| <IoIosArrowForward /> | ||
| </HStack> | ||
| <HStack fontWeight="bold"> | ||
| <Text size="sm">Level 1</Text> | ||
| <IoIosArrowForward /> | ||
| </HStack> | ||
| </VStack> | ||
| </Box> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import { Grid, GridItem } from '@chakra-ui/react'; | ||
|
|
||
| import { Monsters } from './Monsters'; | ||
| import { Players } from './Players'; | ||
| import { SafeZone } from './SafeZone'; | ||
|
|
||
| export const TileDetailsPanel = (): JSX.Element => { | ||
| return ( | ||
| <Grid h="100%" p={3} templateColumns="repeat(4, 1fr)" gap={5}> | ||
| <GridItem colSpan={2}> | ||
| <Monsters /> | ||
| </GridItem> | ||
| <GridItem colSpan={1}> | ||
| <Players /> | ||
| </GridItem> | ||
| <GridItem colSpan={1}> | ||
| <SafeZone /> | ||
| </GridItem> | ||
| </Grid> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.