Skip to content

Commit

Permalink
Merge pull request #169 from l3vels/feat/betaTag
Browse files Browse the repository at this point in the history
feat: Beta Tag on Header
  • Loading branch information
Chkhikvadze authored Sep 26, 2023
2 parents 2313245 + 6503033 commit bd166c9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
16 changes: 15 additions & 1 deletion apps/ui/src/components/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import ArrowNavigation from 'pages/Navigation/ArrowNavigation'
import Breadcrumbs from 'components/BreadCrumbs/BreadCrumbs'
import HeaderShare from 'components/HeaderShare/HeaderShare'
import HeaderButtons from 'components/HeaderButtons'
import Tags from '@l3-lib/ui-core/dist/Tags'

import styled from 'styled-components'

interface HeaderTypes {
Expand All @@ -27,7 +29,8 @@ const Header = ({ expandMode = false, isPublicRoute }: HeaderTypes) => {
</StyledNavigationColumn>
{!expandMode && (
<StyledLogoWrapper to='/'>
<img src={logo} alt='Logo' />
<StyledLogo src={logo} alt='Logo' />
<StyledTags label='BETA' readOnly color={'gradient_yellow'} size={'small'} noAnimation />
</StyledLogoWrapper>
)}
{!expandMode && (
Expand All @@ -46,3 +49,14 @@ export default Header
const StyledHeaderButtonWrapper = styled.div`
margin-left: auto;
`
const StyledLogo = styled.img`
width: 48px;
height: 48px;
`

const StyledTags = styled(Tags)`
div {
font-size: x-small !important;
padding: 0px 2px !important;
}
`
6 changes: 4 additions & 2 deletions apps/ui/src/components/Layout/LayoutStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ const StyledNavigationColumn = styled.div`
`

const StyledLogoWrapper = styled(Link)`
width: 48px;
height: 48px;
display: flex;
/* align-items: center; */
text-decoration: none;
`

export {
Expand Down

0 comments on commit bd166c9

Please sign in to comment.