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
+10 -8

No files matched your search

+7 -4
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">
<Flex
align="center"
gap={{ initial: '1', xs: '4' }}
direction={{ initial: 'column', xs: 'row' }}
>
BlitzKit BlitzKit
{isBranchNamed && ( {isBranchNamed && (
<> <Code size="8" color="gray" 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>
</Heading> </Heading>
{!isBranchNamed && ( {!isBranchNamed && (
+3 -4
View File
@@ -78,15 +78,14 @@ export default function Navbar() {
weight="bold" weight="bold"
onClick={() => setShowHamburgerMenu(false)} onClick={() => setShowHamburgerMenu(false)}
> >
<Flex align="center" gap="1">
BlitzKit BlitzKit
{isBranchNamed && ( {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>