mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +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">
|
<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 && (
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user