mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-21 04:43:31 +01:00
feat: separator
This commit is contained in:
1 parent
551e562109
commit
9ecf9ed406
9 files changed
+99
-59
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { Flex, Heading } from '@radix-ui/themes';
|
||||
import PageWrapper from '../../../../../../components/PageWrapper';
|
||||
import { useWideFormat } from '../../../../../../hooks/useWideFormat';
|
||||
import { Characteristics } from '../Characteristics';
|
||||
import { Consumables } from '../Characteristics/components/Consumables';
|
||||
@@ -12,9 +13,9 @@ export function CharacteristicsSection() {
|
||||
const wideFormat = useWideFormat(720);
|
||||
|
||||
return (
|
||||
<Flex justify="center" mt="4" direction={wideFormat ? 'row' : 'column'}>
|
||||
<Flex gap="4">
|
||||
<Flex style={{ flex: 1, maxWidth: 320 }} direction="column" gap="4">
|
||||
<PageWrapper>
|
||||
<Flex gap="4" style={{ width: '100%' }}>
|
||||
<Flex style={{ flex: 1 }} direction="column" gap="4">
|
||||
<Heading>Configure</Heading>
|
||||
<Modules />
|
||||
<Equipment />
|
||||
@@ -24,11 +25,11 @@ export function CharacteristicsSection() {
|
||||
<Miscellaneous />
|
||||
</Flex>
|
||||
|
||||
<Flex direction="column" gap="4">
|
||||
<Flex style={{ flex: 1 }} direction="column" gap="4">
|
||||
<Heading>Characteristics</Heading>
|
||||
<Characteristics />
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Flex>
|
||||
</PageWrapper>
|
||||
);
|
||||
}
|
||||
@@ -36,8 +36,13 @@ export function HeroSection() {
|
||||
flex: 1,
|
||||
}}
|
||||
>
|
||||
<Flex gap={wideFormat ? '4' : '2'} direction="column">
|
||||
<Heading size={wideFormat ? '9' : '8'}>{tank.name}</Heading>
|
||||
<Flex
|
||||
gap={wideFormat ? '4' : '2'}
|
||||
direction="column"
|
||||
ml="8"
|
||||
align={wideFormat ? undefined : 'center'}
|
||||
>
|
||||
<Heading size="9">{tank.name}</Heading>
|
||||
<Text color="gray">
|
||||
Tier {TIER_ROMAN_NUMERALS[tank.tier]}{' '}
|
||||
{
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Heading, Text } from '@radix-ui/themes';
|
||||
import PageWrapper from '../../../../../../components/PageWrapper';
|
||||
import { useDuel } from '../../../../../../stores/duel';
|
||||
|
||||
export function HistoricalSection() {
|
||||
const tank = useDuel((state) => state.protagonist!.tank);
|
||||
|
||||
if (!tank.description) return null;
|
||||
|
||||
return (
|
||||
<PageWrapper>
|
||||
<Heading>History of the {tank.name}</Heading>
|
||||
<Text>{tank.description}</Text>
|
||||
</PageWrapper>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { Flex, Link, Text } from '@radix-ui/themes';
|
||||
import PageWrapper from '../../../../../../components/PageWrapper';
|
||||
import { PatreonIcon } from '../../../../../../icons/Patreon';
|
||||
|
||||
export function TankopediaPlug() {
|
||||
return (
|
||||
<PageWrapper>
|
||||
<Flex justify="center">
|
||||
<Text>
|
||||
Liking BlitzKit? Consider donating on{' '}
|
||||
<Link href="https://www.patreon.com/tresabhi" target="_blank">
|
||||
<PatreonIcon
|
||||
style={{
|
||||
width: '1em',
|
||||
height: '1em',
|
||||
transform: 'translateY(12.5%)',
|
||||
}}
|
||||
/>{' '}
|
||||
Patreon
|
||||
</Link>
|
||||
.
|
||||
</Text>
|
||||
</Flex>
|
||||
</PageWrapper>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user