From 5da177e520eebdb9cad7eba30f077a2c2b9676e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:25:22 -0500 Subject: [PATCH] feat: ot indicator --- src/app/components/Hero.tsx | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) 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 + + )}