Fix title style

This commit is contained in:
Ben Grant 2021-09-11 03:37:50 +10:00
parent 02f8685d68
commit c6cfb50bea
2 changed files with 2 additions and 1 deletions

View file

@ -162,7 +162,7 @@ const Home = ({ offline }) => {
<Center>
<Logo src={logo} alt="" />
</Center>
<TitleSmall altChars={/[A-Z]/g.test(t('home:create'))}>{t('home:create')}</TitleSmall>
<TitleSmall altChars={/^[A-Za-z ]+$/.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

@ -22,6 +22,7 @@ export const TitleSmall = styled.span`
text-transform: uppercase;
${props => !props.altChars && `
font-family: sans-serif;
font-size: 2rem;
font-weight: 600;
line-height: 1.2em;