diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json index c5bc8b85f..937d63369 100644 --- a/packages/i18n/strings/en.json +++ b/packages/i18n/strings/en.json @@ -1109,6 +1109,10 @@ "configuration": { "title": "Configuration", + "equalizer": { + "title": "Equalizer", + "equalize": "Equalize" + }, "modules": { "title": "Modules", "stock": "Stock", diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/ConfigurationChildWrapper.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/ConfigurationChildWrapper.tsx index ecdee158d..5b161ebb7 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/ConfigurationChildWrapper.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/ConfigurationChildWrapper.tsx @@ -1,5 +1,5 @@ -import { type FlexProps, Flex } from '@radix-ui/themes'; -import type { ReactNode } from 'react'; +import { type FlexProps, Flex } from "@radix-ui/themes"; +import type { ReactNode } from "react"; type ConfigurationChildWrapperProps = FlexProps & { children: ReactNode; @@ -7,13 +7,15 @@ type ConfigurationChildWrapperProps = FlexProps & { export function ConfigurationChildWrapper({ children, + style, ...props }: ConfigurationChildWrapperProps) { return ( {children} diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Equalizer.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Equalizer.tsx new file mode 100644 index 000000000..ffd05c76e --- /dev/null +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Equalizer.tsx @@ -0,0 +1,43 @@ +import { asset } from "@blitzkit/core"; +import { Box, Flex, Heading, Switch, Text } from "@radix-ui/themes"; +import { useLocale } from "../../../../hooks/useLocale"; +import { ConfigurationChildWrapper } from "./ConfigurationChildWrapper"; + +export function Equalizer() { + const { strings } = useLocale(); + + return ( + + + {strings.website.tools.tankopedia.configuration.equalizer.title} + + + + + + {strings.website.tools.tankopedia.configuration.equalizer.equalize} + + + + + + ); +} diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx index 9f73f4a1e..c304e4522 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx @@ -1,14 +1,15 @@ -import { Flex } from '@radix-ui/themes'; -import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps'; -import { Characteristics } from './components/Characteristics'; -import { CompareOptions } from './components/Characteristics/components/CompareOptions'; -import { StatSearch } from './components/Characteristics/components/StatSearch'; -import { Consumables } from './components/Consumables'; -import { Equipment } from './components/Equipment'; -import { Miscellaneous } from './components/Miscellaneous'; -import { Modules } from './components/Modules'; -import { Provisions } from './components/Provisions'; -import { Skills } from './components/Skills'; +import { Flex } from "@radix-ui/themes"; +import type { MaybeSkeletonComponentProps } from "../../../types/maybeSkeletonComponentProps"; +import { Characteristics } from "./components/Characteristics"; +import { CompareOptions } from "./components/Characteristics/components/CompareOptions"; +import { StatSearch } from "./components/Characteristics/components/StatSearch"; +import { Consumables } from "./components/Consumables"; +import { Equalizer } from "./components/Equalizer"; +import { Equipment } from "./components/Equipment"; +import { Miscellaneous } from "./components/Miscellaneous"; +import { Modules } from "./components/Modules"; +import { Provisions } from "./components/Provisions"; +import { Skills } from "./components/Skills"; export function CharacteristicsSection({ skeleton, @@ -16,34 +17,35 @@ export function CharacteristicsSection({ return ( - + + @@ -52,11 +54,11 @@ export function CharacteristicsSection({