mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: center name
This commit is contained in:
1 parent
797642a3c3
commit
ea7f40a808
1 file changed
+3
-4
@@ -1,6 +1,5 @@
|
|||||||
import { Checkbox, Flex, Heading, Text } from '@radix-ui/themes';
|
import { Checkbox, Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzkit/tankDefinitions/constants';
|
import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzkit/tankDefinitions/constants';
|
||||||
import { useFullScreen } from '../../../../../../hooks/useFullScreen';
|
|
||||||
import { useWideFormat } from '../../../../../../hooks/useWideFormat';
|
import { useWideFormat } from '../../../../../../hooks/useWideFormat';
|
||||||
import strings from '../../../../../../lang/en-US.json';
|
import strings from '../../../../../../lang/en-US.json';
|
||||||
import { theme } from '../../../../../../stitches.config';
|
import { theme } from '../../../../../../stitches.config';
|
||||||
@@ -14,7 +13,6 @@ import { Options } from './components/Options';
|
|||||||
export function HeroSection() {
|
export function HeroSection() {
|
||||||
const tank = useDuel((state) => state.protagonist!.tank);
|
const tank = useDuel((state) => state.protagonist!.tank);
|
||||||
const mode = useTankopediaPersistent((state) => state.mode);
|
const mode = useTankopediaPersistent((state) => state.mode);
|
||||||
const isFullScreen = useFullScreen();
|
|
||||||
const wideFormat = useWideFormat(880);
|
const wideFormat = useWideFormat(880);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -36,13 +34,13 @@ export function HeroSection() {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex
|
<Flex
|
||||||
direction="column"
|
align="center"
|
||||||
justify="center"
|
justify="center"
|
||||||
gap={wideFormat ? '4' : '2'}
|
|
||||||
style={{
|
style={{
|
||||||
flex: 1,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Flex gap={wideFormat ? '4' : '2'} direction="column">
|
||||||
<Heading size={wideFormat ? '9' : '8'}>{tank.name}</Heading>
|
<Heading size={wideFormat ? '9' : '8'}>{tank.name}</Heading>
|
||||||
<Text color="gray">
|
<Text color="gray">
|
||||||
Tier {TIER_ROMAN_NUMERALS[tank.tier]}{' '}
|
Tier {TIER_ROMAN_NUMERALS[tank.tier]}{' '}
|
||||||
@@ -50,6 +48,7 @@ export function HeroSection() {
|
|||||||
{strings.common.tank_class_short[tank.class]}
|
{strings.common.tank_class_short[tank.class]}
|
||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
</Flex>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in new issue
Block a user