From e499030e286cefec7dca3d31798595f6b2849138 Mon Sep 17 00:00:00 2001 From: chris48s Date: Wed, 1 Jan 2025 16:07:58 +0000 Subject: [PATCH] Improve donate Call To Action (#10777) * add a 'donate' page to the site * remove offer to pay expenses * remove suggested amount from repo CTAs --- .github/ISSUE_TEMPLATE/1_Bug_report.yml | 2 +- .../ISSUE_TEMPLATE/2_Failing_service_test.md | 2 +- .github/ISSUE_TEMPLATE/3_Badge_request.yml | 2 +- .github/ISSUE_TEMPLATE/4_Feature_request.md | 2 +- CONTRIBUTING.md | 7 +- frontend/docusaurus.config.cjs | 1 + frontend/src/components/homepage-features.js | 10 +-- frontend/src/css/custom.css | 10 +++ frontend/src/pages/donate.md | 68 +++++++++++++++++++ 9 files changed, 86 insertions(+), 18 deletions(-) create mode 100644 frontend/src/pages/donate.md diff --git a/.github/ISSUE_TEMPLATE/1_Bug_report.yml b/.github/ISSUE_TEMPLATE/1_Bug_report.yml index b2f126dd9a1fe..417bc782df20b 100644 --- a/.github/ISSUE_TEMPLATE/1_Bug_report.yml +++ b/.github/ISSUE_TEMPLATE/1_Bug_report.yml @@ -41,4 +41,4 @@ body: attributes: value: | ## :heart: Love Shields? - Please consider donating $10 to sustain our activities: [https://opencollective.com/shields](https://opencollective.com/shields) + Please consider donating to sustain our activities: [https://opencollective.com/shields](https://opencollective.com/shields) diff --git a/.github/ISSUE_TEMPLATE/2_Failing_service_test.md b/.github/ISSUE_TEMPLATE/2_Failing_service_test.md index 28e62eaa92b9a..df6638e5e4b79 100644 --- a/.github/ISSUE_TEMPLATE/2_Failing_service_test.md +++ b/.github/ISSUE_TEMPLATE/2_Failing_service_test.md @@ -28,5 +28,5 @@ labels: 'keep-service-tests-green' - diff --git a/.github/ISSUE_TEMPLATE/3_Badge_request.yml b/.github/ISSUE_TEMPLATE/3_Badge_request.yml index c8424fe52d16b..d141abd05a51e 100644 --- a/.github/ISSUE_TEMPLATE/3_Badge_request.yml +++ b/.github/ISSUE_TEMPLATE/3_Badge_request.yml @@ -59,4 +59,4 @@ body: attributes: value: | ## :heart: Love Shields? - Please consider donating $10 to sustain our activities: [https://opencollective.com/shields](https://opencollective.com/shields) + Please consider donating to sustain our activities: [https://opencollective.com/shields](https://opencollective.com/shields) diff --git a/.github/ISSUE_TEMPLATE/4_Feature_request.md b/.github/ISSUE_TEMPLATE/4_Feature_request.md index 64f5f734b59a6..d285358ebf665 100644 --- a/.github/ISSUE_TEMPLATE/4_Feature_request.md +++ b/.github/ISSUE_TEMPLATE/4_Feature_request.md @@ -7,5 +7,5 @@ about: Ideas for other new features or improvements - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ba775febd263b..1a81adec007bd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,10 +8,7 @@ financial contributions, issues, and pull requests! ### Financial contributions We welcome financial contributions in full transparency on our -[open collective](https://opencollective.com/shields). Anyone can file an -expense. If the expense makes sense for the development of the community, it -will be "merged" into the ledger of our open collective by the core -contributors and the person who filed the expense will be reimbursed. +[open collective](https://opencollective.com/shields). ### Contributing code @@ -90,7 +87,7 @@ encourage you to contribute logos there. Please review their Feel free to star the repository. This will help increase the visibility of the project, therefore attracting more users and contributors to Shields! -We're also asking for [one-time \$10 donations](https://opencollective.com/shields) from developers who use and love Shields, please spread the word! +We're also asking for [donations](https://opencollective.com/shields) from developers who use and love Shields, please spread the word! ## Getting help diff --git a/frontend/docusaurus.config.cjs b/frontend/docusaurus.config.cjs index ca165d1854490..ff29572916933 100644 --- a/frontend/docusaurus.config.cjs +++ b/frontend/docusaurus.config.cjs @@ -77,6 +77,7 @@ const config = { label: 'Documentation', position: 'left', }, + { to: '/donate', label: 'Donate', position: 'left' }, { to: '/community', label: 'Community', position: 'left' }, { to: '/blog', label: 'Blog', position: 'left' }, { diff --git a/frontend/src/components/homepage-features.js b/frontend/src/components/homepage-features.js index 92b463476be8c..7e925932c64fd 100644 --- a/frontend/src/components/homepage-features.js +++ b/frontend/src/components/homepage-features.js @@ -68,15 +68,7 @@ const FeatureList = [ title: 'Love Shields?', description: ( <> - Please consider{' '} - - donating - {' '} - to sustain our activities + Please consider donating to sustain our activities ), }, diff --git a/frontend/src/css/custom.css b/frontend/src/css/custom.css index 9dfd61416b455..1f4a458f95f8f 100644 --- a/frontend/src/css/custom.css +++ b/frontend/src/css/custom.css @@ -30,3 +30,13 @@ html[data-theme="dark"] .docusaurus-highlight-code-line { .opencollective-image { color-scheme: initial; } + +.flex-column-container { + display: flex; + flex-direction: column; + height: 100%; +} + +.align-bottom { + margin-top: auto; +} diff --git a/frontend/src/pages/donate.md b/frontend/src/pages/donate.md new file mode 100644 index 0000000000000..40f7cb0a8d8c8 --- /dev/null +++ b/frontend/src/pages/donate.md @@ -0,0 +1,68 @@ +# Donate + +You can donate to Shields.io via [OpenCollective](https://opencollective.com/shields). + +## How the money is spent + +Shields.io is a non-profit project run by unpaid volunteers. We use your donations to pay for our hosting costs. + +Shields badges are everywhere. Shields badges appear on GitHub, NPM, PyPI, Ruby Gems, Rust Crates... If people build software there, shields badges are on it. Our userbase scales with the size of the software development community as a whole. This means we serve a lot of traffic. While the majority of image impressions are served from downstream proxies, we serve over 1.6 billion requests per month from our own infrastructure and transfer over 3Tb of outbound bandwidth each month. + +Those are big numbers, and servers cost money. So does bandwidth. We cover our hosting costs with donations from the community. + +## Donation tiers + +While we accept donations of any size, we do have some suggested tiers. + +
+
+
+
+
+

Sponsor

+

Recommended for **companies**: With a monthly donation of $35, you can help to sustain our activities. Your company logo and a link to your website will feature at the top of our [community page](https://shields.io/community).

+

Become a Sponsor

+
+
+ +
+
+

Monthly Backer

+

Recommended for **individuals**: With a monthly donation of $3, you can help to sustain our activities on an ongoing basis.

+

Become a Monthly Backer

+
+
+ +
+
+

Backer

+

If you would prefer not to commit to a monthly donation, but you think shields.io has provided some value [over the last 10+ years](https://github.com/badges/shields/discussions/8867), consider making a one-time donation of $10.

+

Become a Backer

+
+
+ +
+
+

Something Else

+

Make a custom one-time or recurring donation of any amount.

+

Make a custom Donation

+
+
+
+ +
+
+ +## FAQ + +### Can I donate using another platform? + +Currently we only accept donations via [OpenCollective](https://opencollective.com/shields). OpenCollective should be convenient for most users as it allows you to donate using credit card, bank transfer, or PayPal and is available in most countries. + +### I donated as a sponsor. How do I change my company logo or URL? + +We pull the logo and URL from your Open Collective profile. You can update these at any time from within Open Collective and those changes will be reflected on the community page within 24 hours. + +### Can I see exactly how the money is being used? + +Using OpenCollective means our finances are completely transparent. All transactions are publicly visible on https://opencollective.com/shields