From f935adb70e1dd3868eaeccf7a2a267fe2ce09e37 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 11 Oct 2026 16:27:53 -0500 Subject: [PATCH] start of port --- .../index.module.css | 4 - .../TankopediaCharacteristics/index.tsx | 21 +- .../src/components/TankopediaToys/index.tsx | 229 ++++++++++++++++++ packages/website/src/config/toys.ts | 11 + packages/website/src/types/characteristics.ts | 5 +- 5 files changed, 260 insertions(+), 10 deletions(-) create mode 100644 packages/website/src/components/TankopediaToys/index.tsx create mode 100644 packages/website/src/config/toys.ts diff --git a/packages/website/src/components/TankopediaCharacteristics/index.module.css b/packages/website/src/components/TankopediaCharacteristics/index.module.css index 3a25ee318..4f13ede57 100644 --- a/packages/website/src/components/TankopediaCharacteristics/index.module.css +++ b/packages/website/src/components/TankopediaCharacteristics/index.module.css @@ -135,10 +135,6 @@ width: 100%; height: 100%; - display: flex; - align-items: center; - justify-content: center; - background-color: var(--gray-2); outline: var(--gray-5) solid var(--space-1); border-radius: var(--space-3); diff --git a/packages/website/src/components/TankopediaCharacteristics/index.tsx b/packages/website/src/components/TankopediaCharacteristics/index.tsx index 8d0147d5c..0e8df4ea6 100644 --- a/packages/website/src/components/TankopediaCharacteristics/index.tsx +++ b/packages/website/src/components/TankopediaCharacteristics/index.tsx @@ -2,6 +2,7 @@ import { TIER_ROMAN_NUMERALS } from "@blitzkit/core"; import { literals } from "@blitzkit/i18n/src/literals"; import { useRef } from "react"; import { characteristicsGroups } from "../../config/characteristicsGroups"; +import { toys } from "../../config/toys"; import { useCharacteristicRenderer } from "../../hooks/useCharacteristicRenderer"; import { DuelModule, useDuel } from "../../hooks/useDuel"; import { useRankings } from "../../hooks/useRankings"; @@ -14,6 +15,7 @@ import type { CharacteristicReturnType, CharacteristicsGroup, ComputedCharacteristics, + ToyName, } from "../../types/characteristics"; import { Heading } from "../Heading"; import { SegmentedControl } from "../SegmentedControl"; @@ -107,7 +109,9 @@ function Group({ group, characteristics, rankings }: GroupProps) { > {group.order.map((item) => ( <> - {"toy" in item && } + {"toy" in item && ( + + )} {"label" in item &&