feat: better branch label

This commit is contained in:
TrèsAbhi committed 2024-08-28 17:38:23 -05:00
1 parent 84cd18d1d5
commit dc60f3c970
2 files changed
+16 -14

No files matched your search

+10 -7
View File
@@ -43,15 +43,18 @@ export function Hero() {
> >
<Flex direction="column" align="center" gap="1"> <Flex direction="column" align="center" gap="1">
<Heading size="9" weight="bold" align="center"> <Heading size="9" weight="bold" align="center">
BlitzKit <Flex
{isBranchNamed && ( align="center"
<> gap={{ initial: '1', xs: '4' }}
{' '} direction={{ initial: 'column', xs: 'row' }}
<Code color="gray" highContrast variant="solid"> >
BlitzKit
{isBranchNamed && (
<Code size="8" color="gray" highContrast variant="outline">
{BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]} {BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]}
</Code> </Code>
</> )}
)} </Flex>
</Heading> </Heading>
{!isBranchNamed && ( {!isBranchNamed && (
+6 -7
View File
@@ -78,15 +78,14 @@ export default function Navbar() {
weight="bold" weight="bold"
onClick={() => setShowHamburgerMenu(false)} onClick={() => setShowHamburgerMenu(false)}
> >
BlitzKit <Flex align="center" gap="1">
{isBranchNamed && ( BlitzKit
<> {isBranchNamed && (
{' '} <Code color="gray" size="1" highContrast variant="outline">
<Code color="gray" highContrast variant="solid">
{BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]} {BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]}
</Code> </Code>
</> )}
)} </Flex>
</Link> </Link>
</Flex> </Flex>