Skip to content

Commit

Permalink
feat: add brand name
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Feb 24, 2023
1 parent fc84f81 commit 16ab526
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
1 change: 1 addition & 0 deletions web/src/components/Common/LinkButtonNextPrev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const LinkLookingLikeButton = styled(LinkLookingLikeButtonBase)`
padding: 0.2rem 0.3rem;
min-width: 120px;
font-size: 0.8rem;
border-radius: 2px;
`

const ArrowRight = styled(ArrowRightBase)`
Expand Down
47 changes: 33 additions & 14 deletions web/src/components/Layout/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Link } from 'src/components/Link/Link'
import BrandLogoBase from 'src/assets/images/logo.svg'
import { LanguageSwitcher } from 'src/components/Layout/LanguageSwitcher'
import { NavigationBreadcrumb } from 'src/components/Layout/NavigationBreadcrumb'
import { PROJECT_NAME } from 'src/constants'

export const HEIGHT_NAVBAR = 50

Expand Down Expand Up @@ -38,23 +39,10 @@ export const NavWrappable = styled(NavBase)`
}
`

export const BrandLogoSmall = styled(BrandLogoBase)`
height: 30px;
`

const BrandWrapper = styled.div`
margin-right: 2rem;
margin-left: 1rem;
`

export function NavigationBar() {
return (
<Navbar expand="xs" role="navigation">
<BrandWrapper>
<Link href="/">
<BrandLogoSmall />
</Link>
</BrandWrapper>
<Brand />

<NavWrappable navbar>
<NavigationBreadcrumb />
Expand All @@ -66,3 +54,34 @@ export function NavigationBar() {
</Navbar>
)
}

const BrandWrapper = styled.div`
display: flex;
height: 100%;
margin-bottom: 0.1rem;
`
export const BrandLogoSmall = styled(BrandLogoBase)`
flex: 1;
height: 36px;
margin-left: 1rem;
`

const BrandNameStyled = styled.span`
flex: 1;
color: #521717;
font-size: 24px;
font-weight: bold;
margin-left: 1rem;
margin-right: 2rem;
`

export function Brand() {
return (
<Link href="/" className="text-decoration-none">
<BrandWrapper>
<BrandLogoSmall />
<BrandNameStyled>{PROJECT_NAME}</BrandNameStyled>
</BrandWrapper>
</Link>
)
}

1 comment on commit 16ab526

@vercel
Copy link

@vercel vercel bot commented on 16ab526 Feb 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

flu-frequencies – ./

flu-frequencies.vercel.app
flu-frequencies-git-web-neherlab.vercel.app
flu-frequencies-neherlab.vercel.app

Please sign in to comment.