Add /support page

This commit is contained in:
MartinBraquet
2025-09-13 15:12:45 +02:00
parent 58115bfd11
commit 01eb7038dc
3 changed files with 54 additions and 1 deletions

20
web/pages/support.tsx Normal file
View File

@@ -0,0 +1,20 @@
import React from 'react';
import fs from 'fs';
import path from 'path';
import MarkdownPage from "web/components/markdown";
const FILENAME = __filename.split('/').pop()?.split('.').shift();
export async function getStaticProps() {
const filePath = path.join(process.cwd(), 'public', 'md', FILENAME + '.md');
const content = fs.readFileSync(filePath, 'utf8');
return {props: {content}};
}
type Props = { content: string };
export default function Faq({content}: Props) {
if (!FILENAME) throw new Error('Could not determine filename');
return <MarkdownPage content={content} filename={FILENAME}></MarkdownPage>
}

View File

@@ -88,7 +88,7 @@ The [full implementation](https://github.com/CompassMeet/Compass/blob/main/commo
* **Give Feedback**: [Fill out the suggestion form](https://forms.gle/tKnXUMAbEreMK6FC6)
* **Join the Discussion**: [Discord Community](https://discord.gg/8Vd7jzqjun)
* **Contribute to Development**: [View the code on GitHub](https://github.com/CompassMeet/Compass)
* **Donate**: [Support the infrastructure](/about)
* **Donate**: [Support the infrastructure](/support)
* **Spread the Word**: Tell friends and family who value depth and real connection.
### Whats next?

33
web/public/md/support.md Normal file
View File

@@ -0,0 +1,33 @@
# Support Compass
Compass is and will always remain **free, ad-free, and community-owned**.
Your contribution directly helps cover hosting, development, and community growth — ensuring Compass thrives as a gift for everyone.
## Ways to Contribute Financially
- [Patreon](https://patreon.com/CompassMeet) one-time or ongoing monthly support
- [PayPal](https://www.paypal.com/paypalme/MartinBraquet) one-time or flexible contributions
- [GitHub Sponsors](https://github.com/sponsors/MartinBraquet) increased transparency, but requires a GitHub account
## Why Donate?
- **Keep Compass sustainable** cover server and infrastructure costs
- **Protect independence** ensure we never need ads, subscriptions, or data sales
- **Empower contributors** support ongoing development, moderation, and outreach
## Non-Financial Contributions
Donations arent the only way to help. You can also:
- Improve code or documentation
- Suggest features and test new builds
- Spread the word to thoughtful communities
- Help with design, moderation, or translations
Every small action adds up to something bigger.
**Thank you for being part of this mission.**
Together, were building a platform for meaningful human connection — one that will never be captured by profit or advertising.