Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add donations #110

Merged
merged 4 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [WhyAsh5114]
buymeacoffee: [WhyAsh5114]
3 changes: 2 additions & 1 deletion src/routes/(components)/layout/NavLinks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
{ text: 'Workouts', href: '/workouts' },
{ text: 'Mesocycles', href: '/mesocycles' },
{ text: 'Exercise splits', href: '/exercise-splits' },
{ text: 'Privacy policy', href: '/privacy-policy' }
{ text: 'Privacy policy', href: '/privacy-policy' },
{ text: 'Donations', href: '/donations' }
];
</script>

Expand Down
1 change: 1 addition & 0 deletions src/routes/donations/+page.server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true;
43 changes: 43 additions & 0 deletions src/routes/donations/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<div class="prose prose-neutral max-w-none dark:prose-invert lg:prose-lg">
<h1>Donations</h1>

<div class="grid grid-cols-2 items-center">
<span class="font-bold">GitHub Sponsors</span>
<span class="font-bold">Buy Me A Coffee</span>
<iframe src="https://github.com/sponsors/WhyAsh5114/button" class="h-8 w-32" title="Sponsor WhyAsh5114"></iframe>
<a href="https://www.buymeacoffee.com/WhyAsh5114" aria-label="Buy me a coffee">
<img
alt="buy me a coffee link"
class="!m-0"
src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=☕&slug=WhyAsh5114&button_colour=5F7FFF&font_colour=ffffff&font_family=Inter&outline_colour=000000&coffee_colour=FFDD00"
/>
</a>
</div>

<h2>How MyFit started</h2>
<p>
I'm just a college student who started MyFit as a fun side project. I never thought I'd actually get users 😅. My
original intention was just to have an app for personal use and as a resume project to help me get a software
engineering job. Over time, this project grew and gained a handful of users, which made me unreasonably happy.
</p>

<h2>Why you shouldn't donate</h2>
<p>
Please don't feel obliged to donate. I know how it feels to not have, or not feel like spending, over $20 for a
simple workout tracking app. To be honest, I don't think I'll even need donations soon, as the free tiers offered by
my hosting providers are really generous and the user base is still small. You simply using the app, logging
workouts, giving feedback, or perhaps starring this repository on GitHub is more than enough for me 😊.
</p>

<h2>Why you should donate</h2>
<p>
If you've used the app for quite some time, you genuinely enjoyed it, and feel like I deserve a free diet coke!
You'll get some extra benefits such as: issue prioritization and early access to features.
</p>

<h2>How donations will be used</h2>
<p>
The primary way donations to MyFit will be used is for hosting the project (Vercel) and its database (CockroachDB).
If any are left over, it'll simply motivate me to work on this project further and improve it in every way possible.
</p>
</div>
Loading