mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: super duper secret map
This commit is contained in:
1 parent
dd88d42884
commit
23d8c54366
2 files changed
+26
No files matched your search
@@ -0,0 +1,20 @@
|
|||||||
|
import { Flex, Link } from '@radix-ui/themes';
|
||||||
|
import { use } from 'react';
|
||||||
|
import PageWrapper from '../../../../components/PageWrapper';
|
||||||
|
import { tankDefinitions } from '../../../../core/blitzkrieg/tankDefinitions';
|
||||||
|
|
||||||
|
export default function Page() {
|
||||||
|
const awaitedTankDefinitions = use(tankDefinitions);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<PageWrapper>
|
||||||
|
<Flex direction="column" align="center">
|
||||||
|
{Object.values(awaitedTankDefinitions)
|
||||||
|
.sort((a, b) => b.tier - a.tier)
|
||||||
|
.map((tank) => (
|
||||||
|
<Link href={`./${tank.id}`}>{tank.name}</Link>
|
||||||
|
))}
|
||||||
|
</Flex>
|
||||||
|
</PageWrapper>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
|
import { Flex } from '@radix-ui/themes';
|
||||||
|
import Link from 'next/link';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
import PageWrapper from '../../../components/PageWrapper';
|
import PageWrapper from '../../../components/PageWrapper';
|
||||||
import { TankSearch } from './components/TankSearch';
|
import { TankSearch } from './components/TankSearch';
|
||||||
@@ -14,6 +16,10 @@ export default function Page() {
|
|||||||
router.push(`./tankopedia/${tank.id}`);
|
router.push(`./tankopedia/${tank.id}`);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Flex justify="center" mt="4">
|
||||||
|
<Link href="/tools/tankopedia/map">Super duper secret map</Link>
|
||||||
|
</Flex>
|
||||||
</PageWrapper>
|
</PageWrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user