feat: better hero padding

This commit is contained in:
TrèsAbhi committed 2024-07-09 21:01:09 -05:00
1 parent 2ba00f3477
commit 6a2631ea72
1 file changed
+5 -5
@@ -41,7 +41,7 @@ export function HeroSection() {
gap={{ initial: '2', md: '4' }} gap={{ initial: '2', md: '4' }}
direction="column" direction="column"
ml={{ initial: '0', md: '8' }} ml={{ initial: '0', md: '8' }}
align={{ initial: 'center', md: undefined }} align={{ initial: 'center', md: 'start' }}
justify="center" justify="center"
style={{ style={{
height: '100%', height: '100%',
@@ -49,7 +49,7 @@ export function HeroSection() {
> >
<Heading <Heading
size={{ initial: '8', md: '9' }} size={{ initial: '8', md: '9' }}
align={{ initial: 'center', md: undefined }} align={{ initial: 'center', md: 'left' }}
color={ color={
protagonist.treeType === 'collector' protagonist.treeType === 'collector'
? 'blue' ? 'blue'
@@ -59,10 +59,10 @@ export function HeroSection() {
} }
> >
<Icon style={{ width: '0.75em', height: '0.75em' }} />{' '} <Icon style={{ width: '0.75em', height: '0.75em' }} />{' '}
{protagonist.nameFull ?? protagonist.name} {protagonist.name}
</Heading> </Heading>
<Text color="gray"> <Text color="gray" ml={{ initial: '0', md: '9' }}>
Tier {TIER_ROMAN_NUMERALS[protagonist.tier]}{' '} Tier {TIER_ROMAN_NUMERALS[protagonist.tier]}{' '}
{ {
(strings.common.nations_adjectives as Record<string, string>)[ (strings.common.nations_adjectives as Record<string, string>)[
@@ -72,7 +72,7 @@ export function HeroSection() {
{strings.common.tank_class_short[protagonist.class]} {strings.common.tank_class_short[protagonist.class]}
</Text> </Text>
<Flex gap="4" mt="-1"> <Flex gap="4" ml={{ initial: '0', md: '9' }} mt="-1">
<Link href="/tools/tankopedia"> <Link href="/tools/tankopedia">
<Button variant="ghost" size="1" ml="-1"> <Button variant="ghost" size="1" ml="-1">
<ChevronLeftIcon /> <ChevronLeftIcon />