Russian language

This commit is contained in:
Ben Grant 2021-05-26 20:18:30 +10:00
parent acc25a1a66
commit bb4b6468b4
10 changed files with 264 additions and 2 deletions

View file

@ -152,7 +152,7 @@ const Home = ({ offline }) => {
<Center>
<Logo src={logo} alt="" />
</Center>
<TitleSmall>{t('home:create')}</TitleSmall>
<TitleSmall altChars={/[A-Z]/g.test(t('home:create'))}>{t('home:create')}</TitleSmall>
<TitleLarge>CRAB FIT</TitleLarge>
<Links>
<a href="#about">{t('home:nav.about')}</a> / <a href="#donate">{t('home:nav.donate')}</a>

View file

@ -20,6 +20,13 @@ export const TitleSmall = styled.span`
color: ${props => props.theme.primaryDark};
line-height: 1em;
text-transform: uppercase;
${props => !props.altChars && `
font-size: 2rem;
font-weight: 600;
line-height: 1.2em;
padding-top: .3em;
`}
`;
export const TitleLarge = styled.h1`