-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
200 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,12 @@ | ||
import { Icon, IconProps } from ".."; | ||
|
||
export const Reputation = (props: IconProps) => { | ||
return ( | ||
<Icon viewBox="0 0 24 24" {...props}> | ||
<path | ||
d="M11 3V4H10V6H9V8H8V9H3V10H2V11H3V12H4V13H5V14H6V16H5V19H4V22H7V21H9V20H11V19H13V20H15V21H17V22H20V19H19V16H18V14H19V13H20V12H21V11H22V10H21V9H16V8H15V6H14V4H13V3H11Z" | ||
fill="currentColor" | ||
/> | ||
</Icon> | ||
); | ||
}; |
This file contains 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,14 @@ | ||
import { Icon, IconProps } from ".."; | ||
|
||
export const Shoes2 = (props: IconProps) => { | ||
return ( | ||
<Icon viewBox="0 0 24 24" {...props}> | ||
<> | ||
<path | ||
d="M14.3684 5H19.1053V5.94737H15.3158V6.89474H19.1053V5.94737H20.0526V6.89474H21V14.4737H20.0526V15.4211H19.1053V16.3684H14.3684V17.3158H12.4737V18.2632H4.89474V17.3158H3.94737V16.3684H3V12.5789H3.94737V11.6316H6.78947V12.5789H7.73684V13.5263H8.68421V16.3684H9.63158V13.5263H8.68421V12.5789H7.73684V11.6316H6.78947V10.6842H8.68421V9.73684H11.5263V8.78947H12.4737V9.73684H13.4211V10.6842H14.3684V11.6316H16.2632V10.6842H14.3684V9.73684H13.4211V8.78947H12.4737V6.89474H13.4211V5.94737H14.3684V5Z" | ||
fill="currentColor" | ||
/> | ||
</> | ||
</Icon> | ||
); | ||
}; |
This file contains 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 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,46 @@ | ||
import { useDojoContext, useRouterContext } from "@/dojo/hooks"; | ||
import { | ||
Button, | ||
HStack, | ||
Modal, | ||
ModalBody, | ||
ModalContent, | ||
ModalHeader, | ||
ModalOverlay, | ||
VStack | ||
} from "@chakra-ui/react"; | ||
import { observer } from "mobx-react-lite"; | ||
|
||
export const RefreshGameModal = observer(() => { | ||
const { router, gameId } = useRouterContext(); | ||
const { uiStore } = useDojoContext(); | ||
|
||
return ( | ||
<Modal motionPreset="slideInBottom" isCentered isOpen={uiStore.modals.refreshGame !== undefined} onClose={() => {}}> | ||
<ModalOverlay /> | ||
<ModalContent bg="bg.dark" maxW="360px"> | ||
<ModalHeader textAlign="center">Im lost</ModalHeader> | ||
<ModalBody p={6}> | ||
<VStack w="full" gap={6}> | ||
<HStack w="full" justifyContent="center"> | ||
<Button | ||
onClick={() => { | ||
uiStore.closeRefreshGame(); | ||
|
||
if (gameId) { | ||
router.push(`/${gameId}`); | ||
} else { | ||
router.push("/"); | ||
} | ||
}} | ||
> | ||
REFRESH PLZ | ||
</Button> | ||
<Button onClick={() => uiStore.closeRefreshGame()}>CANCEL</Button> | ||
</HStack> | ||
</VStack> | ||
</ModalBody> | ||
</ModalContent> | ||
</Modal> | ||
); | ||
}); |
This file contains 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 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 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,27 @@ | ||
import { HealthIndicator } from "@/components/player"; | ||
import { useGameStore } from "@/dojo/hooks"; | ||
import { Divider, HStack, Text } from "@chakra-ui/react"; | ||
import { observer } from "mobx-react-lite"; | ||
|
||
export const HustlerStats = observer(() => { | ||
const { game } = useGameStore(); | ||
|
||
if(!game) return null | ||
return ( | ||
<HStack flexDirection="row" w="full" px="10px" py="6px" justifyContent="center"> | ||
<Text display="flex" flex="1"> | ||
{game?.items.attack.icon({})} {game?.items.attack.tier.stat} | ||
</Text> | ||
<Divider h="26px" orientation="vertical" borderWidth="1px" borderColor="neon.600" /> | ||
<Text display="flex" flex="1"> | ||
{game?.items.defense.icon({})} {game?.items.defense.tier.stat} | ||
</Text> | ||
<Divider h="26px" orientation="vertical" borderWidth="1px" borderColor="neon.600" /> | ||
<Text display="flex" flex="1"> | ||
{game?.items.speed.icon({})} {game?.items.speed.tier.stat} | ||
</Text> | ||
<Divider h="26px" orientation="vertical" borderWidth="1px" borderColor="neon.600" /> | ||
<HealthIndicator health={game?.player.health} maxHealth={100} flex="1" /> | ||
</HStack> | ||
); | ||
}); |
This file contains 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 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 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 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
Oops, something went wrong.