Skip to content

Commit 59bb319

Browse files
committed
Fix website donation page to work with responsive design
1 parent 2d62d01 commit 59bb319

File tree

4 files changed

+60
-14
lines changed

4 files changed

+60
-14
lines changed

website/content/blog/2025-01-16-year-in-review-2024-highlights-and-a-peek-at-2025.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,21 @@ In a world where the notion of software ownership seems headed towards extinctio
2323

2424
Graphite is and will always remain yours to keep, whether that's by running the lightweight, client-side [web app](https://editor.graphite.rs) (no signup, no cloud), <a href="https://support.google.com/chrome/answer/9658361" target="_blank">installing the PWA</a> on your desktop, self-hosting the <a href="https://github.com/GraphiteEditor/Graphite/releases/tag/latest-stable" target="_blank">builds</a>, or downloading the soon-to-be-ready native app for your OS of choice (more news on that later in the post).
2525

26-
| | |
27-
|-|-|
28-
| <p>Join me—Keavon Chambers, founder and designer of Graphite—to see where the past year has brought us on this quest. And let me take this moment to thank our growing community for sharing my vision and showing support, both [financially](/donate) and by boosting the GitHub project page over the 10,000 star milestone just in time to celebrate the end of a productive 2024.</p> | <a href="https://github.com/GraphiteEditor/Graphite"><img src="https://static.graphite.rs/content/blog/2025-01-16-year-in-review-2024-highlights-and-a-peek-at-2025/10k-stars.avif" style="max-width: unset; margin-top: 0.5em" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="Screenshot of 10,000 stars" /></a> |
26+
<style class="float-image">
27+
.float-image + p {
28+
text-align: left;
29+
}
30+
.float-image + p > a {
31+
float: right;
32+
margin-left: 1.5em;
33+
margin-bottom: 1em;
34+
}
35+
</style>
36+
37+
<p>
38+
<a href="https://github.com/GraphiteEditor/Graphite"><img src="https://static.graphite.rs/content/blog/2025-01-16-year-in-review-2024-highlights-and-a-peek-at-2025/10k-stars.avif" style="max-width: unset; margin-top: 0.5em" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="Screenshot of 10,000 stars" /></a>
39+
<span>Join me, founder and designer of Graphite, to see where the past year has brought us on this quest. And let me take this moment to thank our growing community for sharing my vision and showing support, both <a href="/donate">financially</a> and by boosting the GitHub project page over the 10,000 star milestone just in time to celebrate the end of a productive 2024.</span>
40+
</p>
2941

3042
## 2024 development progress report
3143

website/content/donate.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ css = ["/page/donate.css", "/component/feature-box.css", "/component/feature-ico
1212

1313
**Own your tools. Own your art.** Invest in the sustainable, independent future of high-quality creative software that's free, and always will be.
1414

15-
<p class="call-to-action">
15+
<div class="call-to-action">
1616

1717
<span>
1818
<a href="https://github.com/sponsors/GraphiteEditor" target="_blank" class="button arrow">Donate: GitHub Sponsors</a>
@@ -24,9 +24,9 @@ css = ["/page/donate.css", "/component/feature-box.css", "/component/feature-ico
2424
<em>Start to finish in several seconds</em>
2525
</span>
2626

27-
</p>
27+
</div>
2828

29-
<div class="feature-icons four-wide statistics" data-statistics>
29+
<div class="feature-icons three-wide statistics" data-statistics>
3030
<div class="feature-icon">
3131
<img class="atlas" style="--atlas-index: 34" src="https://static.graphite.rs/icons/icon-atlas-roadmap__3.png" alt="" />
3232
<span data-statistics-dollars></span>
@@ -117,9 +117,6 @@ A small fee of 3.6% + 30¢ reduces what we receive each month. If convenient, co
117117

118118
</a>
119119

120-
</div>
121-
<div class="triptych">
122-
123120
<a href="https://buy.stripe.com/28o4jB62a0BA5DGbIL" target="_blank" class="block feature-box-narrow">
124121

125122
<h1 class="feature-box-header">🧬 &ldquo;DNA&rdquo; &raquo;</h1>
@@ -154,9 +151,9 @@ A small fee of 3.6% + 30¢ reduces what we receive each month. If convenient, co
154151

155152
</div>
156153

157-
<div class="block">
154+
<div class="block action-buttons">
158155

159-
<a href="https://donate.stripe.com/fZeg2j0HQ5VU6HK14d" target="_blank" class="button arrow">Or make a one-time donation</a>
156+
<a href="https://donate.stripe.com/6oU8wP6m0c2kb2AermbQY0a" target="_blank" class="button arrow">Or make a one-time donation</a>
160157

161158
[Manage your ongoing membership](https://billing.stripe.com/p/login/aEU9EzctSfe3cfK5kk)
162159

@@ -213,9 +210,9 @@ Also available to individuals wanting to make a larger impact. [Reach out](/cont
213210

214211
</div>
215212

216-
<div class="block">
213+
<div class="block action-buttons">
217214

218-
<a href="https://donate.stripe.com/fZeg2j0HQ5VU6HK14d" target="_blank" class="button arrow">Or make a one-time donation</a>
215+
<a href="https://donate.stripe.com/6oU8wP6m0c2kb2AermbQY0a" target="_blank" class="button arrow">Or make a one-time donation</a>
219216

220217
[Manage your ongoing membership](https://billing.stripe.com/p/login/aEU9EzctSfe3cfK5kk)
221218

website/sass/component/feature-icons.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
}
5656
}
5757

58+
&.three-wide .feature-icon {
59+
flex: 1 0 calc((100% / 3) - (16px * 4) - (16px / 4));
60+
61+
@media screen and (max-width: 800px) {
62+
// Quarter width, minus own padding on both sides
63+
flex: 1 0 calc(100% - (16px * 2));
64+
}
65+
}
66+
5867
&.stacked {
5968
justify-content: space-between;
6069
margin: 0 -10px;

website/sass/page/donate.scss

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
flex-wrap: wrap;
44
flex-direction: row;
55
gap: calc(var(--font-size-link) * 0.8);
6-
margin-top: calc(40 * var(--variable-px));
6+
margin: calc(40 * var(--variable-px)) 0;
77

88
span {
99
display: flex;
@@ -30,6 +30,10 @@
3030
.triptych {
3131
gap: 10px;
3232
margin-top: 10px;
33+
34+
a {
35+
flex-basis: calc(100% / 3 - 10px - (var(--feature-box-padding) * var(--variable-px)));
36+
}
3337
}
3438

3539
.triptych + .block,
@@ -44,6 +48,30 @@
4448
justify-content: space-between;
4549
}
4650

51+
.action-buttons {
52+
gap: calc(var(--feature-box-padding) / 4 * var(--variable-px)) calc(var(--feature-box-padding) * var(--variable-px));
53+
flex-wrap: wrap;
54+
55+
p {
56+
text-align: left;
57+
text-justify: auto;
58+
white-space: nowrap;
59+
}
60+
}
61+
62+
@media screen and (max-width: 1280px) {
63+
.triptych a {
64+
// Half width, minus own padding on both sides, minus the gap
65+
flex-basis: calc(50% - (var(--feature-box-padding) * var(--variable-px)) - 10px);
66+
}
67+
}
68+
69+
@media screen and (max-width: 640px) {
70+
.triptych a {
71+
flex-basis: 100%;
72+
}
73+
}
74+
4775
.feature-box-narrow {
4876
min-width: 0;
4977
background-color: var(--color-fog);

0 commit comments

Comments
 (0)