diff options
| author | bndw <ben@bdw.to> | 2023-04-27 08:19:33 -0700 |
|---|---|---|
| committer | bndw <ben@bdw.to> | 2023-04-27 08:19:33 -0700 |
| commit | 633b20d90efc46d16591ee2118683106e27297c0 (patch) | |
| tree | 1de6282454f498e168bba01211dd90094589e40a /app | |
| parent | ad4ea380406451145ca3a9b7f0f59fda9c12caef (diff) | |
feat: donations
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/donate.module.css | 3 | ||||
| -rw-r--r-- | app/components/donate.tsx | 17 | ||||
| -rw-r--r-- | app/page.tsx | 4 |
3 files changed, 23 insertions, 1 deletions
diff --git a/app/components/donate.module.css b/app/components/donate.module.css new file mode 100644 index 0000000..2c62925 --- /dev/null +++ b/app/components/donate.module.css | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | .href { | ||
| 2 | border-bottom: solid 1px #ddd; | ||
| 3 | } | ||
diff --git a/app/components/donate.tsx b/app/components/donate.tsx new file mode 100644 index 0000000..639d4c3 --- /dev/null +++ b/app/components/donate.tsx | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | "use client"; | ||
| 2 | |||
| 3 | import styles from "./donate.module.css"; | ||
| 4 | |||
| 5 | export const Donate = () => { | ||
| 6 | return ( | ||
| 7 | <div> | ||
| 8 | <a | ||
| 9 | className={styles.href} | ||
| 10 | target="_blank" | ||
| 11 | href="https://nodeless.io/donate/satscalc" | ||
| 12 | > | ||
| 13 | Donate | ||
| 14 | </a> | ||
| 15 | </div> | ||
| 16 | ); | ||
| 17 | }; | ||
diff --git a/app/page.tsx b/app/page.tsx index d0ac564..0310af0 100644 --- a/app/page.tsx +++ b/app/page.tsx | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | import { BitcoinPrice } from "./components/bitcoin-price"; | 1 | import { BitcoinPrice } from "./components/bitcoin-price"; |
| 2 | import { Calculator } from "./components/calculator"; | 2 | import { Calculator } from "./components/calculator"; |
| 3 | import { Donate } from "./components/donate"; | ||
| 3 | 4 | ||
| 4 | export default function Home() { | 5 | export default function Home() { |
| 5 | return ( | 6 | return ( |
| 6 | <main className="h-screen" style={{ margin: "15px" }}> | 7 | <main className="h-screen" style={{ margin: "15px" }}> |
| 7 | <div className="flex justify-end"> | 8 | <div className="flex justify-end space-x-4 "> |
| 9 | <Donate /> | ||
| 8 | <BitcoinPrice /> | 10 | <BitcoinPrice /> |
| 9 | </div> | 11 | </div> |
| 10 | <div className="flex justify-center items-center h-screen"> | 12 | <div className="flex justify-center items-center h-screen"> |
