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