Skip to content

Commit

Permalink
Merge pull request #1351 from nextstrain/feat/web-sib-addon-logo
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov authored Dec 20, 2023
2 parents df21391 + 7af0573 commit a2a1a4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages_rs/nextclade-web/src/assets/img/sib.addon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions packages_rs/nextclade-web/src/components/Main/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react'
import { LinkSmart } from 'src/components/Link/LinkSmart'
import { useTranslationSafe } from 'src/helpers/useTranslationSafe'

import styled from 'styled-components'
import SibAddon from 'src/assets/img/sib.addon.svg'

import { TITLE_COLORS } from 'src/constants'

Expand Down Expand Up @@ -50,7 +48,6 @@ const LetterSpan = styled.span<{ pos: number }>`
`

export function Title() {
const { t } = useTranslationSafe()
return (
<span className="d-inline-flex">
<TitleH1>
Expand All @@ -64,7 +61,7 @@ export function Title() {

<div className="d-flex h-auto flex-row">
<span className="flex-1 d-flex h-auto flex-column mb-2 mt-2">
<span className="mb-auto">{<AboutLink href="/about">{t('What is this?')}</AboutLink>}</span>
<span className="mb-auto mr-auto">{<SibAddonLogo />}</span>
<span className="mt-auto">
{PACKAGE_VERSION && <VersionNumberBadge color="secondary">{`v${PACKAGE_VERSION}`}</VersionNumberBadge>}
</span>
Expand All @@ -74,8 +71,9 @@ export function Title() {
)
}

const AboutLink = styled(LinkSmart)`
margin-bottom: auto;
const SibAddonLogo = styled(SibAddon)`
height: 25px;
margin-right: auto;
`

export const Subtitle = styled.h2`
Expand Down

0 comments on commit a2a1a4d

Please sign in to comment.