Skip to content

Commit 547fdbc

Browse files
authored
feat(docs): add sponsor page, site footer, and header sponsor link (#22)
- Add /sponsor page with hero, metallic plaque sponsor tiers, stargazers wall, and CTA - Stargazers fetched from GitHub API at build time (1hr revalidation) - Hatch pattern strips flanking content with grid background outside - Add shared SiteFooter component with logo, project links, Discord, and GitHub - Add ♡ Sponsor button to docs header - Footer used on both docs layout and sponsor page Co-authored-by: Justin Levine <[email protected]>
1 parent 362291f commit 547fdbc

File tree

3 files changed

+511
-0
lines changed

3 files changed

+511
-0
lines changed

apps/docs/app/docs/layout.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { ReactNode } from "react"
22
import Link from "next/link"
3+
import { Heart } from "lucide-react"
34
import { FumadocsSidebar } from "@/components/docs/fumadocs-sidebar"
45
import { MobileNav } from "@/components/docs/mobile-nav"
56
import { ThemeSwitcher } from "@/components/docs/theme-switcher"
@@ -8,6 +9,7 @@ import { source } from "@/lib/source"
89

910
import { JalcoLogo } from "@/components/icons/jalco-logo"
1011
import { GitHubStarsButton } from "@/registry/github-stars-button/github-stars-button"
12+
import { SiteFooter } from "@/components/docs/footer"
1113

1214

1315
export default function DocsLayout({ children }: { children: ReactNode }) {
@@ -50,6 +52,12 @@ export default function DocsLayout({ children }: { children: ReactNode }) {
5052
</nav>
5153

5254
<div className="ml-auto flex items-center gap-1.5">
55+
<Button variant="ghost" size="sm" asChild className="hidden sm:inline-flex">
56+
<Link href="/sponsor">
57+
<Heart className="size-3.5" />
58+
Sponsor
59+
</Link>
60+
</Button>
5361
<GitHubStarsButton
5462
owner="jal-co"
5563
repo="ui"
@@ -74,6 +82,8 @@ export default function DocsLayout({ children }: { children: ReactNode }) {
7482
</div>
7583
</main>
7684
</div>
85+
86+
<SiteFooter />
7787
</div>
7888
</div>
7989
)

0 commit comments

Comments
 (0)