feat: search page

This commit is contained in:
TrèsAbhi committed 2024-09-21 20:26:58 -05:00
1 parent 408b561b75
commit ffa1395b50
70 files changed
+492 -468

No files matched your search

@@ -0,0 +1,17 @@
---
import { tankDefinitions } from '@blitzkit/core';
import type { GetStaticPaths } from 'astro';
import { Page } from './index';
export const getStaticPaths = (async () => {
const awaitedTankDefinitions = await tankDefinitions;
return Object.values(awaitedTankDefinitions).map((tank) => ({
params: { id: tank.id },
}));
}) satisfies GetStaticPaths;
const { id } = Astro.params;
---
<Page id={id} client:load />
@@ -0,0 +1,25 @@
import { PageWrapper } from '../../../../components/PageWrapper';
import { HeroSection } from '../../../../components/Tankopedia/HeroSection';
interface PageProps {
id: number;
}
export function Page({ id }: PageProps) {
return (
<PageWrapper p="0" noMaxWidth color="purple" size={1600} gap="9">
<HeroSection id={id} />
{/* <ShotDisplaySection />
<MetaSection />
<TechTreeSection />
{!exempt && <AdMidSectionResponsive />}
<CalloutsSection />
<CharacteristicsSection />
{!exempt && <AdMidSectionResponsive />}
<GameModeSection />
<VideoSection />
<HistorySection />
{!exempt && <AdMidSectionResponsive mb="6" />} */}
</PageWrapper>
);
}