Skip to content

Commit a49afd0

Browse files
committed
chore: add sponsorship funding config and demo/README support links
1 parent d9ef288 commit a49afd0

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/FUNDING.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# These are supported funding model platforms
2+
# Verify the handles/URLs below match your actual accounts.
3+
4+
github: [khaledalam]
5+
buy_me_a_coffee: khaledalam
6+
custom:
7+
- https://paypal.me/khaledalam

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,17 @@ setup and development workflow, and please review our
225225
[SECURITY.md](./SECURITY.md).
226226
227227
228+
## 💖 Support
229+
230+
If Avatoon is useful to you, consider supporting its development — it helps a lot
231+
and keeps the project maintained:
232+
233+
- ⭐ **Star the repo** — the easiest way to help
234+
- 💛 [**Sponsor on GitHub**](https://github.com/sponsors/khaledalam)
235+
- ☕ [**Buy Me a Coffee**](https://www.buymeacoffee.com/khaledalam)
236+
- 💵 [**PayPal**](https://paypal.me/khaledalam)
237+
238+
228239
## 📄 License
229240
230241
[MIT](./LICENSE) © [Khaled Alam](https://khaledalam.net/)

example/src/App.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ body {
118118
border-color: transparent;
119119
}
120120

121+
.btn--sponsor {
122+
border-color: #ea4aaa;
123+
color: #ea4aaa;
124+
}
125+
126+
.btn--sponsor:hover {
127+
background: #ea4aaa;
128+
color: #ffffff;
129+
}
130+
121131
/* ---------- Demo cards ---------- */
122132
.demos {
123133
display: grid;

example/src/App.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const avatarUrl = `${import.meta.env.BASE_URL}avatar.glb`;
99

1010
const GITHUB_URL = 'https://github.com/khaledalam/avatoon';
1111
const NPM_URL = 'https://www.npmjs.com/package/avatoon';
12+
const SPONSOR_URL = 'https://github.com/sponsors/khaledalam';
1213

1314
const GOALS: AvatoonGoal[] = ['Normal', 'Muscle', 'Sleep'];
1415

@@ -46,6 +47,9 @@ function App() {
4647
<a className="btn" href={NPM_URL} target="_blank" rel="noreferrer">
4748
📦 View on npm
4849
</a>
50+
<a className="btn btn--sponsor" href={SPONSOR_URL} target="_blank" rel="noreferrer">
51+
💖 Sponsor
52+
</a>
4953
</div>
5054
</header>
5155

@@ -111,6 +115,10 @@ function App() {
111115
npm
112116
</a>
113117
<span className="dot">·</span>
118+
<a href={SPONSOR_URL} target="_blank" rel="noreferrer">
119+
Sponsor 💖
120+
</a>
121+
<span className="dot">·</span>
114122
<span>MIT License</span>
115123
</footer>
116124
</div>

0 commit comments

Comments
 (0)