Skip to content

Commit d139fd7

Browse files
fix: added buy me a coffee
1 parent f564b69 commit d139fd7

4 files changed

Lines changed: 36 additions & 2 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,16 @@ Contributions are welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup in
310310

311311
---
312312

313+
## ☕ Support
314+
315+
If you find CortexUI useful, you can support the project:
316+
317+
👉 https://buymeacoffee.com/nishchya
318+
319+
It helps keep the project alive and growing.
320+
321+
---
322+
313323
## License
314324

315325
MIT — see [LICENSE](./LICENSE).

apps/docs/app/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Link from "next/link";
2+
import { Footer } from "@/components/footer";
23
import { Header } from "@/components/header";
34

45
export default function HomePage() {
@@ -108,6 +109,8 @@ export default function HomePage() {
108109
</div>
109110
</div>
110111
</section>
112+
113+
<Footer />
111114
</div>
112115
);
113116
}

apps/docs/components/docs-layout-client.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"use client";
22

33
import { useState } from "react";
4+
import { Footer } from "./footer";
45
import { Header } from "./header";
56
import { Sidebar } from "./sidebar";
67
import { TableOfContents } from "./toc";
@@ -14,12 +15,13 @@ export function DocsLayoutClient({ children }: { children: React.ReactNode }) {
1415
<Header onMenuClick={() => setSidebarOpen(true)} />
1516
<div className="flex">
1617
<Sidebar isOpen={sidebarOpen} onClose={() => setSidebarOpen(false)} />
17-
<main className="flex-1 min-w-0 lg:pl-[272px] xl:pr-[224px]">
18+
<div className="flex-1 min-w-0 lg:pl-[272px] xl:pr-[224px]">
1819
<article className="min-h-screen max-w-3xl mx-auto px-6 py-10">
1920
<DocsCortexSurface />
2021
{children}
2122
</article>
22-
</main>
23+
<Footer />
24+
</div>
2325
<TableOfContents />
2426
</div>
2527
</div>

apps/docs/components/footer.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
export function Footer(): JSX.Element {
2+
return (
3+
<footer className="border-t border-slate-200/80 bg-white/70 px-6 py-5 text-sm text-slate-500 backdrop-blur-sm dark:border-slate-800 dark:bg-slate-950/70 dark:text-slate-400">
4+
<div className="mx-auto flex max-w-5xl items-center justify-center">
5+
<a
6+
href="https://buymeacoffee.com/nishchya"
7+
target="_blank"
8+
rel="noopener noreferrer"
9+
className="inline-flex items-center gap-2 rounded-full px-3 py-1.5 transition-colors hover:bg-brand-50 hover:text-brand-700 dark:hover:bg-brand-900/20 dark:hover:text-brand-400"
10+
>
11+
<span aria-hidden="true"></span>
12+
<span>Support CortexUI</span>
13+
<span aria-hidden="true"></span>
14+
<span>Buy me a coffee</span>
15+
</a>
16+
</div>
17+
</footer>
18+
);
19+
}

0 commit comments

Comments
 (0)