mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
feat: better branch label
This commit is contained in:
1 parent
84cd18d1d5
commit
dc60f3c970
2 files changed
+16
-14
No files matched your search
@@ -43,15 +43,18 @@ export function Hero() {
|
||||
>
|
||||
<Flex direction="column" align="center" gap="1">
|
||||
<Heading size="9" weight="bold" align="center">
|
||||
BlitzKit
|
||||
{isBranchNamed && (
|
||||
<>
|
||||
{' '}
|
||||
<Code color="gray" highContrast variant="solid">
|
||||
<Flex
|
||||
align="center"
|
||||
gap={{ initial: '1', xs: '4' }}
|
||||
direction={{ initial: 'column', xs: 'row' }}
|
||||
>
|
||||
BlitzKit
|
||||
{isBranchNamed && (
|
||||
<Code size="8" color="gray" highContrast variant="outline">
|
||||
{BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]}
|
||||
</Code>
|
||||
</>
|
||||
)}
|
||||
)}
|
||||
</Flex>
|
||||
</Heading>
|
||||
|
||||
{!isBranchNamed && (
|
||||
|
||||
@@ -78,15 +78,14 @@ export default function Navbar() {
|
||||
weight="bold"
|
||||
onClick={() => setShowHamburgerMenu(false)}
|
||||
>
|
||||
BlitzKit
|
||||
{isBranchNamed && (
|
||||
<>
|
||||
{' '}
|
||||
<Code color="gray" highContrast variant="solid">
|
||||
<Flex align="center" gap="1">
|
||||
BlitzKit
|
||||
{isBranchNamed && (
|
||||
<Code color="gray" size="1" highContrast variant="outline">
|
||||
{BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]}
|
||||
</Code>
|
||||
</>
|
||||
)}
|
||||
)}
|
||||
</Flex>
|
||||
</Link>
|
||||
</Flex>
|
||||
|
||||
|
||||
Reference in new issue
Block a user