⚗️(frontend) add Beta badge to header

We add a beta badge to the header to indicate
that the app is in beta.
This commit is contained in:
Anthony LC
2024-07-02 10:42:50 +02:00
committed by Anthony LC
parent 43ba36af61
commit b7bd7b7772
2 changed files with 23 additions and 4 deletions

View File

@@ -50,9 +50,28 @@ export const Header = () => {
}}
/>
<StyledLink href="/">
<Box $align="center" $gap="0.8rem" $direction="row">
<Box
$align="center"
$gap="0.8rem"
$direction="row"
$position="relative"
>
<Image priority src={IconDocs} alt={t('Docs Logo')} width={38} />
<Text $margin="none" as="h2" $theme="primary">
<Text
$padding="3px 5px"
$size="8px"
$background="#368bd6"
$color="white"
$position="absolute"
$radius="5px"
$css={`
top: 9px;
right: -21px;
`}
>
BETA
</Text>
<Text $margin="none" as="h2" $theme="primary" $zIndex={1}>
{t('Docs')}
</Text>
</Box>