pl-fe: improve logo line spacing
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -7,7 +7,7 @@ interface ILogoText extends Pick<React.HTMLAttributes<HTMLHeadingElement>, 'dir'
|
||||
/** Big text in site colors, for displaying the site name. Resizes itself according to the screen size. */
|
||||
const LogoText: React.FC<ILogoText> = ({ children, dir }) => (
|
||||
<h1
|
||||
className='-my-5 overflow-hidden text-ellipsis bg-gradient-to-br from-accent-500 via-primary-500 to-gradient-end bg-clip-text text-5xl font-extrabold !leading-normal text-transparent lg:text-6xl xl:text-7xl'
|
||||
className='-my-5 overflow-hidden text-ellipsis bg-gradient-to-br from-accent-500 via-primary-500 to-gradient-end bg-clip-text text-5xl font-extrabold !leading-tight text-transparent lg:text-6xl xl:text-7xl'
|
||||
dir={dir}
|
||||
>
|
||||
{children}
|
||||
|
||||
@ -13,16 +13,18 @@ const SiteBanner: React.FC = () => {
|
||||
const description = DOMPurify.sanitize(instance.description);
|
||||
|
||||
return (
|
||||
<Stack space={3}>
|
||||
<Stack space={6}>
|
||||
<LogoText dir={getTextDirection(instance.title)}>
|
||||
{instance.title}
|
||||
</LogoText>
|
||||
|
||||
{instance.description.trim().length > 0 && (
|
||||
<Markup
|
||||
size='lg'
|
||||
dangerouslySetInnerHTML={{ __html: description }}
|
||||
direction={getTextDirection(description)}
|
||||
/>
|
||||
)}
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user