feat: remove ads

This commit is contained in:
TrèsAbhi committed 2024-10-18 10:24:39 -05:00
1 parent b1f29a6148
commit aa8bb1c040
21 files changed
+56 -187

No files matched your search

@@ -4,23 +4,24 @@ import { PerformanceInfo } from '../../../components/Performance/PerformanceInfo
import { TankTable } from '../../../components/Performance/Table';
import { TankPerformancePersistent } from '../../../stores/tankPerformancePersistent';
import { TankPerformanceSort } from '../../../stores/tankPerformanceSort';
import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
export function Page() {
export function Page({ skeleton }: MaybeSkeletonComponentProps) {
return (
<TankPerformanceSort.Provider>
<TankPerformancePersistent.Provider>
<Content />
<Content skeleton={skeleton} />
</TankPerformancePersistent.Provider>
</TankPerformanceSort.Provider>
);
}
function Content() {
function Content({ skeleton }: MaybeSkeletonComponentProps) {
return (
<PageWrapper color="jade" noMaxWidth>
<PerformanceInfo />
<PerformanceInfo skeleton={skeleton} />
<Controls />
<TankTable />
<TankTable skeleton={skeleton} />
</PageWrapper>
);
}
@@ -5,5 +5,7 @@ import { Page } from './_index';
---
<ToolLayout tool={performanceTool}>
<Page client:load />
<Page client:only="react">
<Page skeleton slot="fallback" />
</Page>
</ToolLayout>
@@ -3,7 +3,6 @@ import {
fetchProvisionDefinitions,
fetchTankDefinitions,
} from '@blitzkit/core';
import { AdResponsiveHorizontal } from '../../../../components/AdResponsiveHorizontal';
import { PageWrapper } from '../../../../components/PageWrapper';
import { CalloutsSection } from '../../../../components/Tankopedia/CalloutsSection';
import { CharacteristicsSection } from '../../../../components/Tankopedia/CharacteristicsSection';
@@ -48,16 +47,12 @@ export function Page({ id }: PageProps) {
>
<HeroSection />
<ShotDisplaySection />
<AdResponsiveHorizontal id="tankopedia-1" />
<CalloutsSection />
<MetaSection />
<TechTreeSection />
<AdResponsiveHorizontal id="tankopedia-2" />
<CharacteristicsSection />
<AdResponsiveHorizontal id="tankopedia-3" />
<GameModeSection />
<VideoSection />
<AdResponsiveHorizontal id="tankopedia-4" />
<HistorySection />
</PageWrapper>
</Duel.Provider>