feat: ads

This commit is contained in:
TrèsAbhi committed 2024-06-10 13:52:25 -05:00
1 parent e370a53473
commit 626eb7e2d6
5 files changed
+28 -25

No files matched your search

+5
View File
@@ -3,6 +3,7 @@
import { Flex } from '@radix-ui/themes';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import { Ad, AdType } from '../../../components/Ad';
import PageWrapper from '../../../components/PageWrapper';
import { TankSearch } from './components/TankSearch';
@@ -11,6 +12,10 @@ export default function Page() {
return (
<PageWrapper size={1200} color="purple">
<Flex justify="center">
<Ad type={AdType.TankopediaHorizontal800} style={{ flex: 1 }} />
</Flex>
<TankSearch
onSelect={(tank) => {
router.push(`./tankopedia/${tank.id}`);