2024-05-03 17:07:27 -05:00
|
|
|
import { Flex, Heading } from '@radix-ui/themes';
|
2024-06-13 13:26:12 -05:00
|
|
|
import { Ad, AdType } from '../../../../../../components/Ad';
|
2024-06-15 13:24:53 -05:00
|
|
|
import { useAdExempt } from '../../../../../../hooks/useAdExempt';
|
2024-05-03 17:07:27 -05:00
|
|
|
import { Characteristics } from '../Characteristics';
|
|
|
|
|
import { Consumables } from '../Characteristics/components/Consumables';
|
2024-05-03 17:22:36 -05:00
|
|
|
import { Equipment } from '../Characteristics/components/Equipment';
|
|
|
|
|
import { Miscellaneous } from '../Characteristics/components/Miscellaneous';
|
2024-05-03 17:07:27 -05:00
|
|
|
import { Modules } from '../Characteristics/components/Modules';
|
2024-05-03 17:22:36 -05:00
|
|
|
import { Provisions } from '../Characteristics/components/Provisions';
|
|
|
|
|
import { Skills } from '../Characteristics/components/Skills';
|
2024-05-03 17:07:27 -05:00
|
|
|
|
|
|
|
|
export function CharacteristicsSection() {
|
2024-06-15 13:24:53 -05:00
|
|
|
const exempt = useAdExempt();
|
|
|
|
|
|
2024-05-03 17:07:27 -05:00
|
|
|
return (
|
2024-05-04 16:19:27 -05:00
|
|
|
<Flex
|
2024-06-15 13:24:53 -05:00
|
|
|
mt={exempt ? '4' : '0'}
|
2024-06-13 13:26:12 -05:00
|
|
|
// align="center"
|
2024-05-04 16:19:27 -05:00
|
|
|
px="4"
|
|
|
|
|
style={{
|
|
|
|
|
boxSizing: 'border-box',
|
|
|
|
|
}}
|
2024-06-13 13:26:12 -05:00
|
|
|
gap="6"
|
2024-05-04 16:19:27 -05:00
|
|
|
>
|
2024-06-15 13:24:53 -05:00
|
|
|
{!exempt && (
|
|
|
|
|
<Flex
|
|
|
|
|
direction="column"
|
|
|
|
|
gap="4"
|
|
|
|
|
display={{
|
|
|
|
|
initial: 'none',
|
|
|
|
|
lg: 'flex',
|
|
|
|
|
}}
|
|
|
|
|
pt={{
|
|
|
|
|
initial: '9',
|
|
|
|
|
md: '0',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Ad type={AdType.WideSkyscraperVerticalPurple} />
|
|
|
|
|
<Ad type={AdType.WideSkyscraperVerticalPurple} />
|
|
|
|
|
</Flex>
|
|
|
|
|
)}
|
2024-06-13 13:26:12 -05:00
|
|
|
|
|
|
|
|
<Flex
|
|
|
|
|
flexGrow="1"
|
2024-05-04 13:46:57 -05:00
|
|
|
gap="6"
|
2024-05-04 16:19:27 -05:00
|
|
|
justify="center"
|
2024-06-13 13:26:12 -05:00
|
|
|
direction={{
|
|
|
|
|
initial: 'column',
|
|
|
|
|
sm: 'row',
|
|
|
|
|
}}
|
2024-05-03 19:10:51 -05:00
|
|
|
>
|
2024-05-04 17:42:32 -05:00
|
|
|
<Flex direction="column" gap="4">
|
2024-05-05 14:24:39 -05:00
|
|
|
<Heading>Configuration</Heading>
|
2024-05-03 17:07:27 -05:00
|
|
|
<Modules />
|
2024-05-03 17:22:36 -05:00
|
|
|
<Equipment />
|
|
|
|
|
<Provisions />
|
2024-05-03 17:07:27 -05:00
|
|
|
<Consumables />
|
2024-05-03 17:22:36 -05:00
|
|
|
<Skills />
|
|
|
|
|
<Miscellaneous />
|
2024-05-03 17:07:27 -05:00
|
|
|
</Flex>
|
|
|
|
|
|
2024-05-03 19:10:51 -05:00
|
|
|
<Flex
|
2024-06-13 13:26:12 -05:00
|
|
|
flexGrow="1"
|
|
|
|
|
maxWidth={{
|
|
|
|
|
initial: 'unset',
|
2024-06-15 13:24:53 -05:00
|
|
|
xs: exempt ? undefined : '320px',
|
2024-06-13 13:26:12 -05:00
|
|
|
md: '640px',
|
2024-05-04 16:19:27 -05:00
|
|
|
}}
|
2024-05-03 19:10:51 -05:00
|
|
|
direction="column"
|
|
|
|
|
gap="4"
|
|
|
|
|
>
|
2024-05-03 17:22:36 -05:00
|
|
|
<Heading>Characteristics</Heading>
|
|
|
|
|
<Characteristics />
|
|
|
|
|
</Flex>
|
2024-05-03 17:07:27 -05:00
|
|
|
</Flex>
|
2024-06-13 13:26:12 -05:00
|
|
|
|
2024-06-15 13:24:53 -05:00
|
|
|
{!exempt && (
|
|
|
|
|
<Flex
|
|
|
|
|
direction="column"
|
|
|
|
|
gap="4"
|
|
|
|
|
height="100%"
|
|
|
|
|
display={{
|
|
|
|
|
initial: 'none',
|
|
|
|
|
xs: 'flex',
|
|
|
|
|
}}
|
|
|
|
|
pt={{
|
|
|
|
|
initial: '9',
|
|
|
|
|
md: '0',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Ad type={AdType.WideSkyscraperVerticalPurple} />
|
|
|
|
|
<Ad type={AdType.WideSkyscraperVerticalPurple} />
|
|
|
|
|
</Flex>
|
|
|
|
|
)}
|
2024-05-04 16:19:27 -05:00
|
|
|
</Flex>
|
2024-05-03 17:07:27 -05:00
|
|
|
);
|
|
|
|
|
}
|