Merge branch 'main' into dev

This commit is contained in:
TrèsAbhi committed 2024-06-11 19:53:03 -05:00
commit 865c8991b2
4 files changed
+80 -49

No files matched your search

-26
View File
@@ -1,26 +0,0 @@
'use client';
import { Flex, Link } from '@radix-ui/themes';
import { use } from 'react';
import PageWrapper from '../../../../components/PageWrapper';
import { tankDefinitions } from '../../../../core/blitzkit/tankDefinitions';
export default function Page() {
const awaitedTankDefinitions = use(tankDefinitions);
return (
<PageWrapper>
<title>Super duper secret map for SEO</title>
<Flex direction="column" align="center">
{Object.values(awaitedTankDefinitions)
.sort((a, b) => b.tier - a.tier)
.map((tank) => (
<Link href={`./${tank.id}`} key={tank.id}>
{tank.name}
</Link>
))}
</Flex>
</PageWrapper>
);
}
+2 -7
View File
@@ -2,7 +2,6 @@
import { Flex } from '@radix-ui/themes';
import { times } from 'lodash';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import { Ad, AdType } from '../../../components/Ad';
import PageWrapper from '../../../components/PageWrapper';
@@ -20,14 +19,10 @@ export default function Page() {
/>
<Flex justify="center" wrap="wrap">
{times(2, () => (
<Ad type={AdType.TankopediaHorizontal800} />
{times(2, (index) => (
<Ad key={index} type={AdType.MediumRectangleHorizontalPurple} />
))}
</Flex>
<Flex justify="center" mt="4">
<Link href="/tools/tankopedia/map">Super duper secret map</Link>
</Flex>
</PageWrapper>
);
}