Files
blitzkit/packages/website/src/components/Tankopedia/CharacteristicsSection/index.tsx
T

78 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-03-31 17:01:47 -05:00
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";
2024-05-03 17:07:27 -05:00
2025-08-10 14:03:13 -05:00
export function CharacteristicsSection({
skeleton,
}: MaybeSkeletonComponentProps) {
2024-05-03 17:07:27 -05:00
return (
2025-04-17 13:00:53 -05:00
<Flex direction="column" gap="3">
2025-04-24 22:04:33 -05:00
<Flex
2026-03-31 17:01:47 -05:00
display={{ initial: "none", sm: "flex" }}
direction={{ initial: "column", md: "row" }}
2025-04-24 22:04:33 -05:00
align="center"
justify="center"
mb="8"
2026-03-31 17:01:47 -05:00
gap={{ initial: "4", md: "8" }}
2025-04-24 22:04:33 -05:00
>
<CompareOptions />
<StatSearch />
</Flex>
2025-04-17 13:00:53 -05:00
2026-03-31 17:01:47 -05:00
<Flex mt="4" px="4" style={{ boxSizing: "border-box" }} gap="6">
2024-05-03 19:10:51 -05:00
<Flex
2024-06-13 13:26:12 -05:00
flexGrow="1"
2025-04-17 13:00:53 -05:00
gap="9"
justify="center"
2026-03-31 17:01:47 -05:00
align={{ initial: "center", sm: "start" }}
direction={{ initial: "column", sm: "row" }}
2024-05-03 19:10:51 -05:00
>
2025-04-17 13:00:53 -05:00
<Flex
direction="column"
gap="6"
2025-04-24 20:24:12 -05:00
maxWidth="19rem"
2026-03-31 17:01:47 -05:00
align={{ initial: "center", sm: "start" }}
2025-04-17 13:00:53 -05:00
>
<Modules />
<Equipment />
<Provisions />
2026-03-31 17:01:47 -05:00
<Equalizer />
2025-04-17 13:00:53 -05:00
<Consumables />
<Skills />
<Miscellaneous />
</Flex>
2025-04-24 20:54:24 -05:00
<Flex
direction="column"
gap="6"
2026-03-31 17:01:47 -05:00
align={{ initial: "stretch", sm: "center" }}
width={{ initial: "100%", sm: "auto" }}
2025-04-24 20:54:24 -05:00
>
2025-04-24 22:04:33 -05:00
<Flex
2026-03-31 17:01:47 -05:00
display={{ initial: "flex", sm: "none" }}
2025-04-24 22:04:33 -05:00
direction="column"
align="center"
justify="center"
mb="8"
gap="8"
>
<StatSearch />
<CompareOptions />
</Flex>
2025-08-10 14:03:13 -05:00
<Characteristics skeleton={skeleton} />
2025-04-17 13:00:53 -05:00
</Flex>
2024-05-03 17:22:36 -05:00
</Flex>
2024-05-03 17:07:27 -05:00
</Flex>
2024-05-04 16:19:27 -05:00
</Flex>
2024-05-03 17:07:27 -05:00
);
}