Skip to content

Commit 9e97fb5

Browse files
committed
Library hero styles
1 parent b306a1e commit 9e97fb5

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

src/components/LibraryHero.tsx

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,27 @@ export function LibraryHero({ project, cta, actions }: LibraryHeroProps) {
2121
<div className="flex flex-col items-center gap-8 text-center px-4">
2222
<h1 className="font-black flex gap-x-3 gap-y-0 items-center text-5xl md:text-6xl lg:text-7xl xl:text-8xl uppercase [letter-spacing:-.05em] flex-wrap justify-center leading-none">
2323
<span>TanStack</span>
24-
<span className={twMerge(gradientText)}>{resolvedName}</span>
24+
<span className={twMerge(gradientText, 'relative')}>
25+
{resolvedName}
26+
{project.badge ? (
27+
<div
28+
className={twMerge(
29+
'absolute bottom-0 right-0 translate-y-full',
30+
'[letter-spacing:0] text-sm md:text-base font-black lg:text-lg align-super text-white animate-bounce uppercase',
31+
'dark:text-black bg-black dark:bg-white shadow-black/30 px-2 py-1 rounded-md',
32+
'leading-none whitespace-nowrap'
33+
)}
34+
>
35+
{String(project.badge).toUpperCase().trim()}
36+
</div>
37+
) : null}
38+
</span>
2539
</h1>
26-
{project.badge ? (
27-
<div
28-
className={twMerge(
29-
'text-sm md:text-base font-black lg:text-lg align-super text-white animate-bounce uppercase',
30-
'dark:text-black bg-black dark:bg-white shadow-xl shadow-black/30 px-2 py-1 rounded-md',
31-
'leading-none whitespace-nowrap'
32-
)}
33-
>
34-
{String(project.badge).toUpperCase()}
35-
</div>
36-
) : null}
37-
<h2 className="font-bold text-2xl max-w-md md:max-w-lg md:text-4xl lg:max-w-4xl text-balance">
40+
<h2 className="font-bold text-2xl md:text-4xl max-w-xl xl:max-w-4xl text-balance [letter-spacing:-0.03em]">
3841
{project.tagline}
3942
</h2>
4043
{project.description ? (
41-
<p className="text opacity-90 max-w-sm lg:text-xl lg:max-w-2xl">
44+
<p className="text opacity-90 max-w-lg xl:max-w-2xl lg:text-base text-balance">
4245
{project.description}
4346
</p>
4447
) : null}

0 commit comments

Comments
 (0)