mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: ot indicator
This commit is contained in:
1 parent
c6106f1b92
commit
5da177e520
1 file changed
+26
-6
@@ -1,7 +1,16 @@
|
|||||||
import { Flex, Heading, Text } from '@radix-ui/themes';
|
import { Code, Flex, Heading, Text } from '@radix-ui/themes';
|
||||||
import { imgur } from '../../core/blitzkit/imgur';
|
import { imgur } from '../../core/blitzkit/imgur';
|
||||||
|
|
||||||
|
const BRANCH_NAMES: Record<string, string> = {
|
||||||
|
dev: 'Beta',
|
||||||
|
opentest: 'Opentest',
|
||||||
|
};
|
||||||
|
|
||||||
export function Hero() {
|
export function Hero() {
|
||||||
|
const isBranchNamed =
|
||||||
|
process.env.NEXT_PUBLIC_ASSET_BRANCH &&
|
||||||
|
BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
align="center"
|
align="center"
|
||||||
@@ -30,19 +39,30 @@ export function Hero() {
|
|||||||
|
|
||||||
<Flex
|
<Flex
|
||||||
direction="column"
|
direction="column"
|
||||||
gap="4"
|
gap="6"
|
||||||
align="center"
|
align="center"
|
||||||
justify="center"
|
justify="center"
|
||||||
position="relative"
|
position="relative"
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
<Flex direction="column" align="center">
|
<Flex direction="column" align="center" gap="1">
|
||||||
<Heading size="9" weight="bold" align="center">
|
<Heading size="9" weight="bold" align="center">
|
||||||
BlitzKit
|
BlitzKit
|
||||||
|
{isBranchNamed && (
|
||||||
|
<>
|
||||||
|
{' '}
|
||||||
|
<Code color="gray" highContrast variant="solid">
|
||||||
|
{BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]}
|
||||||
|
</Code>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Text color="gray" align="center" size="4">
|
|
||||||
Everything World of Tanks Blitz
|
{!isBranchNamed && (
|
||||||
</Text>
|
<Text color="gray" align="center" size="4">
|
||||||
|
Everything World of Tanks Blitz
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|||||||
Reference in new issue
Block a user