feat: link

This commit is contained in:
TrèsAbhi committed 2024-05-01 17:29:40 -05:00
1 parent d56be26db2
commit aafba7b6c8
1 file changed
+18 -5
+18 -5
View File
@@ -32,6 +32,7 @@ import searchPlayersAcrossRegions, {
} from '../../../core/blitz/searchPlayersAcrossRegions'; } from '../../../core/blitz/searchPlayersAcrossRegions';
import { tankDefinitions } from '../../../core/blitzkit/tankDefinitions'; import { tankDefinitions } from '../../../core/blitzkit/tankDefinitions';
import { tankIcon } from '../../../core/blitzkit/tankIcon'; import { tankIcon } from '../../../core/blitzkit/tankIcon';
import { theme } from '../../../stitches.config';
import { useApp } from '../../../stores/app'; import { useApp } from '../../../stores/app';
import mutateSession, { import mutateSession, {
SessionTracking, SessionTracking,
@@ -270,8 +271,12 @@ export default function Page() {
{session.tracking && ( {session.tracking && (
<Flex mt="2" mb="2" direction="column" align="center" gap="2"> <Flex mt="2" mb="2" direction="column" align="center" gap="2">
<Flex gap="4" align="center" justify="center">
<Heading size="5">Tracking {accountInfo?.nickname}</Heading> <Heading size="5">Tracking {accountInfo?.nickname}</Heading>
<Text color="gray">
Since {new Date(session.player.since).toLocaleString()}
</Text>
<Flex gap="4" align="center" justify="center">
<Button <Button
color="red" color="red"
variant="ghost" variant="ghost"
@@ -283,11 +288,16 @@ export default function Page() {
> >
Stop Stop
</Button> </Button>
<Button
color="red"
variant="ghost"
onClick={() => {
// TODO: add functionality
}}
>
Reset
</Button>
</Flex> </Flex>
<Text color="gray">
Since {new Date(session.player.since).toLocaleString()}
</Text>
</Flex> </Flex>
)} )}
@@ -322,6 +332,7 @@ export default function Page() {
overflowY: 'hidden', overflowY: 'hidden',
}} }}
> >
<Link href={`/tools/tankopedia/${tank.id}`}>
<img <img
draggable={false} draggable={false}
src={tankIcon(tank.id)} src={tankIcon(tank.id)}
@@ -352,6 +363,7 @@ export default function Page() {
<Text <Text
style={{ style={{
color: theme.colors.textHighContrast,
position: 'relative', position: 'relative',
textWrap: 'nowrap', textWrap: 'nowrap',
textShadow: 'black 0 0 4px', textShadow: 'black 0 0 4px',
@@ -359,6 +371,7 @@ export default function Page() {
> >
{tank.name} {tank.name}
</Text> </Text>
</Link>
</Table.RowHeaderCell> </Table.RowHeaderCell>
<Table.Cell align="right">{stat.all.battles}</Table.Cell> <Table.Cell align="right">{stat.all.battles}</Table.Cell>
<Table.Cell align="right"> <Table.Cell align="right">