From 01eb7038dc234c424c50385c633e82950c39cf88 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sat, 13 Sep 2025 15:12:45 +0200 Subject: [PATCH] Add /support page --- web/pages/support.tsx | 20 ++++++++++++++++++++ web/public/md/faq.md | 2 +- web/public/md/support.md | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 web/pages/support.tsx create mode 100644 web/public/md/support.md diff --git a/web/pages/support.tsx b/web/pages/support.tsx new file mode 100644 index 00000000..5aea3e02 --- /dev/null +++ b/web/pages/support.tsx @@ -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 +} diff --git a/web/public/md/faq.md b/web/public/md/faq.md index 29bf98f9..32708fcf 100644 --- a/web/public/md/faq.md +++ b/web/public/md/faq.md @@ -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. ### What’s next? diff --git a/web/public/md/support.md b/web/public/md/support.md new file mode 100644 index 00000000..bbe782d0 --- /dev/null +++ b/web/public/md/support.md @@ -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 aren’t 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, we’re building a platform for meaningful human connection — one that will never be captured by profit or advertising.