feat: cooler header

This commit is contained in:
TrèsAbhi committed 2024-10-20 01:01:54 -05:00
1 parent 61d53936b2
commit 236271d279
3 files changed
+74 -39

No files matched your search

+23 -17
View File
@@ -12,6 +12,13 @@ export function Plugs() {
}
function Content() {
const promoteOpentest =
assertSecret(import.meta.env.PUBLIC_PROMOTE_OPENTEST) === 'true' &&
assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) !== 'opentest';
const promotions = [promoteOpentest];
if (promotions.every((promotion) => !promotion)) return null;
return (
<Flex
align="center"
@@ -21,24 +28,23 @@ function Content() {
py="8"
gap="6"
>
{assertSecret(import.meta.env.PUBLIC_PROMOTE_OPENTEST) === 'true' &&
assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) !== 'opentest' && (
<Flex direction="column" gap="3" align="center">
<Text size="5">
BlitzKit{' '}
<Code variant="outline" size="4" color="gray" highContrast>
opentest
</Code>{' '}
is available now{' '}
</Text>
{promoteOpentest && (
<Flex direction="column" gap="3" align="center">
<Text size="5">
BlitzKit{' '}
<Code variant="outline" size="4" color="gray" highContrast>
opentest
</Code>{' '}
is available now{' '}
</Text>
<Link href="https://opentest.blitzkit.app/" target="_blank">
<Button color="green">
BlitzKit opentest <ArrowRightIcon />
</Button>
</Link>
</Flex>
)}
<Link href="https://opentest.blitzkit.app/" target="_blank">
<Button color="green">
BlitzKit opentest <ArrowRightIcon />
</Button>
</Link>
</Flex>
)}
</Flex>
);
}