Skip to content

Commit 0612020

Browse files
davidagustinclaude
andcommitted
fix: move donation below footer as a subtle strip
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1e3c2d8 commit 0612020

File tree

2 files changed

+31
-47
lines changed

2 files changed

+31
-47
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ const App: React.FC = () => {
4242
<Hero />
4343
<About />
4444
<Projects />
45-
<Donation />
4645
<Contact />
4746
</main>
47+
<Donation />
4848
<Footer />
4949
</div>
5050
);

src/components/Donation.tsx

Lines changed: 30 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { motion } from 'framer-motion';
21
import type React from 'react';
32
import { useState } from 'react';
43
import { FaBitcoin, FaEthereum } from 'react-icons/fa';
@@ -17,63 +16,48 @@ const Donation: React.FC = () => {
1716
};
1817

1918
return (
20-
<section className="py-24 bg-white">
21-
<div className="container">
22-
<motion.div
23-
initial={{ opacity: 0, y: 30 }}
24-
whileInView={{ opacity: 1, y: 0 }}
25-
transition={{ duration: 0.5 }}
26-
viewport={{ once: true }}
27-
className="max-w-2xl mx-auto text-center"
28-
>
29-
<h2 className="section-title mx-auto text-center">Support My Work</h2>
30-
<p className="text-surface-500 mb-10">
31-
If you find my projects helpful, consider supporting continued development.
19+
<div className="bg-surface-950 border-b border-surface-800">
20+
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-6">
21+
<div className="flex flex-col sm:flex-row items-center justify-between gap-4">
22+
<p className="text-xs text-surface-500">
23+
Support this project
3224
</p>
3325

34-
<div className="space-y-4">
26+
<div className="flex flex-wrap items-center gap-3">
3527
<a
3628
href="https://buy.stripe.com/fZucN5epreyuchqdtZfnO00"
3729
target="_blank"
3830
rel="noopener noreferrer"
39-
className="block w-full py-3 px-6 bg-surface-900 text-white text-sm font-semibold rounded-lg hover:bg-surface-800 transition-colors"
31+
className="text-xs text-surface-400 hover:text-white transition-colors"
4032
>
41-
Donate via Stripe
33+
Stripe
4234
</a>
4335

44-
<div className="grid sm:grid-cols-2 gap-4">
45-
<button
46-
type="button"
47-
onClick={() => copyToClipboard(btcAddress, 'BTC')}
48-
className="flex items-center gap-3 p-4 border border-surface-200 rounded-lg hover:border-surface-300 transition-colors text-left group"
49-
>
50-
<FaBitcoin className="text-lg text-surface-400 group-hover:text-[#f7931a] transition-colors flex-shrink-0" />
51-
<div className="min-w-0">
52-
<div className="text-xs font-semibold text-surface-900 mb-0.5">Bitcoin</div>
53-
<div className="text-[11px] text-surface-400 truncate font-mono">
54-
{copiedAddress === 'BTC' ? 'Copied!' : btcAddress}
55-
</div>
56-
</div>
57-
</button>
36+
<span className="text-surface-700">|</span>
5837

59-
<button
60-
type="button"
61-
onClick={() => copyToClipboard(ethAddress, 'ETH')}
62-
className="flex items-center gap-3 p-4 border border-surface-200 rounded-lg hover:border-surface-300 transition-colors text-left group"
63-
>
64-
<FaEthereum className="text-lg text-surface-400 group-hover:text-[#627eea] transition-colors flex-shrink-0" />
65-
<div className="min-w-0">
66-
<div className="text-xs font-semibold text-surface-900 mb-0.5">Ethereum</div>
67-
<div className="text-[11px] text-surface-400 truncate font-mono">
68-
{copiedAddress === 'ETH' ? 'Copied!' : ethAddress}
69-
</div>
70-
</div>
71-
</button>
72-
</div>
38+
<button
39+
type="button"
40+
onClick={() => copyToClipboard(btcAddress, 'BTC')}
41+
className="flex items-center gap-1.5 text-xs text-surface-400 hover:text-white transition-colors"
42+
>
43+
<FaBitcoin className="text-xs" />
44+
{copiedAddress === 'BTC' ? 'Copied!' : 'BTC'}
45+
</button>
46+
47+
<span className="text-surface-700">|</span>
48+
49+
<button
50+
type="button"
51+
onClick={() => copyToClipboard(ethAddress, 'ETH')}
52+
className="flex items-center gap-1.5 text-xs text-surface-400 hover:text-white transition-colors"
53+
>
54+
<FaEthereum className="text-xs" />
55+
{copiedAddress === 'ETH' ? 'Copied!' : 'ETH'}
56+
</button>
7357
</div>
74-
</motion.div>
58+
</div>
7559
</div>
76-
</section>
60+
</div>
7761
);
7862
};
7963

0 commit comments

Comments
 (0)