diff --git a/src/app/components/Hero.tsx b/src/app/components/Hero.tsx index d287102b9..4d0f7ef2d 100644 --- a/src/app/components/Hero.tsx +++ b/src/app/components/Hero.tsx @@ -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'; +const BRANCH_NAMES: Record = { + dev: 'Beta', + opentest: 'Opentest', +}; + export function Hero() { + const isBranchNamed = + process.env.NEXT_PUBLIC_ASSET_BRANCH && + BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH]; + return ( - + BlitzKit + {isBranchNamed && ( + <> + {' '} + + {BRANCH_NAMES[process.env.NEXT_PUBLIC_ASSET_BRANCH!]} + + + )} - - Everything World of Tanks Blitz - + + {!isBranchNamed && ( + + Everything World of Tanks Blitz + + )}