diff --git a/packages/website/src/components/Ad.tsx b/packages/website/src/components/Ad.tsx index ae0bedc97..c17c4ae59 100644 --- a/packages/website/src/components/Ad.tsx +++ b/packages/website/src/components/Ad.tsx @@ -1,14 +1,13 @@ import { Box, type BoxProps } from '@radix-ui/themes'; -import { uniqueId } from 'lodash-es'; -import { useEffect, useRef } from 'react'; +import { useEffect } from 'react'; -type AdProps = BoxProps & {}; - -export function Ad({ ...props }: AdProps) { - const id = useRef(uniqueId('ad-')); +type AdProps = BoxProps & { + id: string; +}; +export function Ad({ id, ...props }: AdProps) { useEffect(() => { - (window as any).nitroAds.createAd(id.current, { + (window as any).nitroAds.createAd(id, { refreshTime: 30, demo: import.meta.env.MODE === 'development', renderVisibleOnly: true, @@ -22,5 +21,5 @@ export function Ad({ ...props }: AdProps) { }); }, []); - return ; + return ; } diff --git a/packages/website/src/components/HomeHero.astro b/packages/website/src/components/HomeHero.astro index bcc19b6ae..91e4aff47 100644 --- a/packages/website/src/components/HomeHero.astro +++ b/packages/website/src/components/HomeHero.astro @@ -47,7 +47,7 @@ const isBranchNamed = position="relative" width="100%" > - + - Everything World of Tanks Blitz + By TrèsAbhi ❤️ ) } diff --git a/packages/website/src/components/TankSearch/index.tsx b/packages/website/src/components/TankSearch/index.tsx index b9a3f94ce..1539da3b6 100644 --- a/packages/website/src/components/TankSearch/index.tsx +++ b/packages/website/src/components/TankSearch/index.tsx @@ -10,7 +10,14 @@ import { type TankDefinition, } from '@blitzkit/core'; import { useStore } from '@nanostores/react'; -import { Callout, Flex, Link, Text, type FlexProps } from '@radix-ui/themes'; +import { + Box, + Callout, + Flex, + Link, + Text, + type FlexProps, +} from '@radix-ui/themes'; import fuzzysort from 'fuzzysort'; import { times } from 'lodash-es'; import { Fragment, memo, useEffect, useMemo, useState } from 'react'; @@ -23,7 +30,7 @@ import { SORT_UNITS, } from '../../stores/tankopediaPersistent/constants'; import { $tankopediaSort } from '../../stores/tankopediaSort'; -import { AdMidSectionResponsive } from '../AdMidSectionResponsive'; +import { Ad } from '../Ad'; import { ExperimentIcon } from '../ExperimentIcon'; import { FilterControl } from './components/FilterControl'; import { NoResults } from './components/NoResults'; @@ -471,7 +478,9 @@ export const TankSearch = memo( !compact && (index + 16) % 32 === 0 && index !== tanks.length - 1 && ( - + + + )} ))} diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx index 1fca58158..fed37b918 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx @@ -31,7 +31,6 @@ import { useEquipment } from '../../../../../hooks/useEquipment'; import { useTankModelDefinition } from '../../../../../hooks/useTankModelDefinition'; import { Duel } from '../../../../../stores/duel'; import { TankopediaEphemeral } from '../../../../../stores/tankopediaEphemeral'; -import { Ad, AdType } from '../../../../Ad'; import { Info } from './components/Info'; import { InfoWithDelta } from './components/InfoWithDelta'; @@ -504,7 +503,8 @@ export function Characteristics() { - {!exempt && ( + {/* AD TODO: */} + {/* {!exempt && ( - )} + )} */} diff --git a/packages/website/src/pages/index.astro b/packages/website/src/pages/index.astro index bfb85763e..3ff63775d 100644 --- a/packages/website/src/pages/index.astro +++ b/packages/website/src/pages/index.astro @@ -24,13 +24,7 @@ import RootLayout from '../layouts/RootLayout.astro'; - { - ( - - - - ) - } + {/* */} @@ -41,34 +35,20 @@ import RootLayout from '../layouts/RootLayout.astro'; {/* */} - + {/* */} - + - + Other cool projects - Other cool projects - - +