Skip to content

Commit 672869b

Browse files
committed
style(TableOfContentsExtra): improve layout and spacing
1 parent 633a774 commit 672869b

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/components/docs/TableOfContentsExtra.astro

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,20 @@ import { Icon } from "astro-icon/components";
44
---
55

66
<section
7-
class="rounded-lg bg-linear-to-br from-blue-500 to-cyan-400 p-6 overflow-y-auto h-[calc((100vh-5.25rem)*0.33)] flex flex-col justify-center items-center text-center gap-4"
7+
class="rounded-lg bg-linear-to-br from-blue-500 to-cyan-400 p-6 overflow-y-hidden h-[calc((100vh-5.25rem)*0.33)]"
88
>
9-
<Icon name="github" class="size-8 text-background" />
10-
11-
<div class="space-y-2">
12-
<p class="font-bold text-lg text-background">Love this project?</p>
13-
<p class="text-sm font-medium text-background/90">
9+
<div class="flex flex-col justify-evenly items-center gap-2 h-full">
10+
<Icon name="github" class="size-8 text-background" />
11+
<p class="m-0 font-bold text-lg text-background">Love this project?</p>
12+
<p class="m-0 text-sm font-medium text-background/90 text-center">
1413
Support CelestialDocs and help me keep building.
1514
</p>
15+
<a
16+
href="https://github.com/sponsors/HYP3R00T"
17+
target="_blank"
18+
rel="noopener noreferrer"
19+
>
20+
<Button variant="secondary" size="lg">Sponsor</Button>
21+
</a>
1622
</div>
17-
18-
<a
19-
href="https://github.com/sponsors/HYP3R00T"
20-
target="_blank"
21-
rel="noopener noreferrer"
22-
>
23-
<Button variant="secondary" size="lg">Sponsor</Button>
24-
</a>
2523
</section>

0 commit comments

Comments
 (0)