Skip to content

Commit 737b09d

Browse files
committed
Fix the GitHub Sponsor iFrame
1 parent b31333a commit 737b09d

File tree

2 files changed

+31
-17
lines changed

2 files changed

+31
-17
lines changed

website/src/css/custom.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,20 @@
3838
/*
3939
* cspell:ignore Infima
4040
*/
41+
42+
.githubSponsorFrame {
43+
width: 100%;
44+
}
45+
46+
/** In mobile view, reduce the padding */
47+
@media screen and (max-width: 550px) {
48+
.githubSponsorFrame {
49+
height: 200px;
50+
}
51+
}
52+
53+
@media screen and (max-width: 380px) {
54+
.githubSponsorFrame {
55+
height: 225px;
56+
}
57+
}

website/src/pages/sponsor.mdx

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,26 @@ Let's start with a few questions:
3232
In order to dedicate resources to maintaining and improving the CSpell suite of tools, Street Side Software needs your support.
3333
*/}
3434

35-
### Ways to Sponsor
35+
## Ways to Sponsor
3636

37-
**Direct**
38-
39-
- [One Time Donation USD](https://donate.stripe.com/cN201Z4Nn9mi4Ao8wA)
40-
- [One Time Donation EUR](https://donate.stripe.com/aEUaGDcfP6a6c2Q9AB)
41-
- Individual [€5.00 EUR / month](https://buy.stripe.com/3cs5mj6Vvcyu3wk9AD)
42-
- Small Business [€10.00 EUR / month](https://buy.stripe.com/28ocOLenXdCy1oc6oo)
43-
- Business Subscription [€100.00 EUR / month](https://buy.stripe.com/8wM01Z0x7cyu5Es9AC)
44-
45-
**GitHub Sponsor**
46-
47-
- [![GitHub Sponsor](https://img.shields.io/badge/-black?style=social&logo=githubsponsors&label=GitHub%20Sponsor%3A%20Street%20Side%20Software)](https://github.com/sponsors/streetsidesoftware)
48-
49-
{buttons.map((buyButtonId, key) => <StripeBuyButton key={key} buyButtonId={buyButtonId} />)}
50-
51-
---
37+
### GitHub Sponsor
5238

5339
<iframe
40+
className='githubSponsorFrame'
5441
src="https://github.com/sponsors/streetsidesoftware/card"
5542
title="Sponsor streetsidesoftware"
5643
width="100%"
5744
style={{ border: 0 }}
5845
></iframe>
5946

60-
---
47+
{/* [![GitHub Sponsor](https://img.shields.io/badge/-black?style=social&logo=githubsponsors&label=GitHub%20Sponsor%3A%20Street%20Side%20Software)](https://github.com/sponsors/streetsidesoftware) */}
48+
49+
### Directly to Street Side Software via Stripe
50+
51+
- [One Time Donation USD](https://donate.stripe.com/cN201Z4Nn9mi4Ao8wA)
52+
- [One Time Donation EUR](https://donate.stripe.com/aEUaGDcfP6a6c2Q9AB)
53+
- Individual [€5.00 EUR / month](https://buy.stripe.com/3cs5mj6Vvcyu3wk9AD)
54+
- Small Business [€10.00 EUR / month](https://buy.stripe.com/28ocOLenXdCy1oc6oo)
55+
- Business Subscription [€100.00 EUR / month](https://buy.stripe.com/8wM01Z0x7cyu5Es9AC)
56+
57+
{buttons.map((buyButtonId, key) => <StripeBuyButton key={key} buyButtonId={buyButtonId} />)}

0 commit comments

Comments
 (0)