mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-29 13:39:50 +01:00
feat: controls
This commit is contained in:
1 parent
c069d132c1
commit
c9cfb16469
1 file changed
+21
-6
@@ -1,4 +1,4 @@
|
|||||||
import { CaretRightIcon } from '@radix-ui/react-icons';
|
import { ChevronLeftIcon, MixIcon } from '@radix-ui/react-icons';
|
||||||
import { Button, Flex, Heading, Text } from '@radix-ui/themes';
|
import { Button, Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzkit/tankDefinitions/constants';
|
import { TIER_ROMAN_NUMERALS } from '../../../../../../core/blitzkit/tankDefinitions/constants';
|
||||||
@@ -48,10 +48,15 @@ export function HeroSection() {
|
|||||||
direction="column"
|
direction="column"
|
||||||
ml={wideFormat ? '8' : undefined}
|
ml={wideFormat ? '8' : undefined}
|
||||||
align={wideFormat ? undefined : 'center'}
|
align={wideFormat ? undefined : 'center'}
|
||||||
|
justify="center"
|
||||||
|
style={{
|
||||||
|
height: '100%',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Heading size={wideFormat ? '9' : '8'}>
|
<Heading size={wideFormat ? '9' : '8'}>
|
||||||
{protagonistTank.name}
|
{protagonistTank.name}
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|
||||||
<Text color="gray">
|
<Text color="gray">
|
||||||
Tier {TIER_ROMAN_NUMERALS[protagonistTank.tier]}{' '}
|
Tier {TIER_ROMAN_NUMERALS[protagonistTank.tier]}{' '}
|
||||||
{
|
{
|
||||||
@@ -62,11 +67,21 @@ export function HeroSection() {
|
|||||||
{strings.common.tank_class_short[protagonistTank.class]}
|
{strings.common.tank_class_short[protagonistTank.class]}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Link href={`/tools/compare?tanks=${compareTanks.join('%2C')}`}>
|
<Flex gap="4" mt="-1">
|
||||||
<Button variant="ghost">
|
<Link href="/tools/tankopedia">
|
||||||
Compare <CaretRightIcon />
|
<Button variant="ghost" size="1" ml="-1">
|
||||||
</Button>
|
<ChevronLeftIcon />
|
||||||
</Link>
|
Back
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link href={`/tools/compare?tanks=${compareTanks.join('%2C')}`}>
|
||||||
|
<Button variant="ghost" size="1">
|
||||||
|
<MixIcon />
|
||||||
|
Compare
|
||||||
|
</Button>
|
||||||
|
</Link>
|
||||||
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user