mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
refactor: use tabs instead of spaces
This commit is contained in:
@@ -5,50 +5,50 @@ import { useTranslation } from 'react-i18next';
|
||||
import Quotes from '~/components/quotes';
|
||||
|
||||
const HeroStyle = styled.header(({ theme }) => ({
|
||||
height: '250px',
|
||||
minHeight: '250px',
|
||||
width: '100%',
|
||||
backgroundColor: theme.colors.secondary,
|
||||
marginTop: '0.5em',
|
||||
borderRadius: theme.border.radius,
|
||||
padding: '1em',
|
||||
display: 'flex',
|
||||
gap: '1em',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
flexDirection: 'column',
|
||||
height: '250px',
|
||||
minHeight: '250px',
|
||||
width: '100%',
|
||||
backgroundColor: theme.colors.secondary,
|
||||
marginTop: '0.5em',
|
||||
borderRadius: theme.border.radius,
|
||||
padding: '1em',
|
||||
display: 'flex',
|
||||
gap: '1em',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
flexDirection: 'column',
|
||||
|
||||
'& *': {
|
||||
textAlign: 'center',
|
||||
},
|
||||
'& *': {
|
||||
textAlign: 'center',
|
||||
},
|
||||
}));
|
||||
|
||||
const HeroTitle = styled.h1({
|
||||
fontSize: '32px',
|
||||
fontSize: '32px',
|
||||
});
|
||||
|
||||
const HeroQuote = styled(Quotes)({
|
||||
fontSize: '20px',
|
||||
fontSize: '20px',
|
||||
});
|
||||
|
||||
const LinkButton = styled(Link)(({ theme }) => ({
|
||||
fontSize: '1rem',
|
||||
width: 'fit-content',
|
||||
color: theme.colors.white,
|
||||
backgroundColor: theme.colors.primary,
|
||||
borderRadius: '5rem',
|
||||
padding: '0.5em 1.5em',
|
||||
fontSize: '1rem',
|
||||
width: 'fit-content',
|
||||
color: theme.colors.white,
|
||||
backgroundColor: theme.colors.primary,
|
||||
borderRadius: '5rem',
|
||||
padding: '0.5em 1.5em',
|
||||
}));
|
||||
|
||||
export default function HeroHeader() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<HeroStyle>
|
||||
<HeroTitle>{t('about:hero.title')}</HeroTitle>
|
||||
<HeroQuote>{t('common:slogan')}</HeroQuote>
|
||||
<LinkButton href={route('dashboard').url}>
|
||||
{t('about:hero.cta')}
|
||||
</LinkButton>
|
||||
</HeroStyle>
|
||||
);
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<HeroStyle>
|
||||
<HeroTitle>{t('about:hero.title')}</HeroTitle>
|
||||
<HeroQuote>{t('common:slogan')}</HeroQuote>
|
||||
<LinkButton href={route('dashboard').url}>
|
||||
{t('about:hero.cta')}
|
||||
</LinkButton>
|
||||
</HeroStyle>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user