Skip to content

Commit b7907bc

Browse files
committed
Add Stipe donations to the website and polish other pages
1 parent 5aedda0 commit b7907bc

File tree

12 files changed

+280
-96
lines changed

12 files changed

+280
-96
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ Learn more from the [website](https://graphite.rs/), subscribe to the [newslette
6060

6161
## Screenshots
6262

63-
[!["Painted Dreams" vector artwork](https://static.graphite.rs/content/index/gui-demo-painted-dreams__2.png)](https://editor.graphite.rs/#demo/painted-dreams)
63+
[!["Painted Dreams" vector artwork](https://static.graphite.rs/content/index/gui-demo-painted-dreams__3.png)](https://editor.graphite.rs/#demo/painted-dreams)
6464

65-
![Magazine spread](https://static.graphite.rs/content/index/magazine-page-layout.png)
65+
![Magazine spread](https://static.graphite.rs/content/index/magazine-page-layout__2.png)
6666

67-
[!["Valley of Spires" vector artwork](https://static.graphite.rs/content/index/gui-demo-node-graph-valley-of-spires__2.png)](https://editor.graphite.rs/#demo/valley-of-spires)
67+
[!["Isometric Fountain" vector artwork](https://static.graphite.rs/content/index/gui-demo-node-graph-isometric-fountain.png)](https://editor.graphite.rs/#demo/isometric-fountain)
6868

69-
!["Marbled Mandelbrot" fractal raster artwork](https://static.graphite.rs/content/index/gui-demo-fractal__2.png)
69+
!["Marbled Mandelbrot" fractal raster artwork](https://static.graphite.rs/content/index/gui-demo-fractal__3.png)
7070

7171
## Contributing/building the code
7272

website/content/_index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ meta_description = "Open source free software. A vector graphics creativity suit
8181
<section id="screenshots" class="carousel window-size-1" data-carousel data-carousel-jostle-hint>
8282

8383
<div class="carousel-slide" data-carousel-slide>
84-
<img src="https://static.graphite.rs/content/index/gui-mockup-nodes__7.avif" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image />
84+
<img src="https://static.graphite.rs/content/index/gui-mockup-nodes__8.avif" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image />
8585
<!-- Above is a copy of the last -->
86-
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-demo-painted-dreams__2.avif" />
87-
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/magazine-page-layout.avif" />
88-
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-demo-node-graph-valley-of-spires__2.avif" />
89-
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-demo-fractal__2.avif" />
90-
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-mockup-nodes__7.avif" />
86+
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-demo-painted-dreams__3.avif" />
87+
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/magazine-page-layout__2.avif" />
88+
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-demo-node-graph-isometric-fountain.avif" />
89+
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-demo-fractal__3.avif" />
90+
<img onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image width="1920" height="1080" loading="lazy" src="https://static.graphite.rs/content/index/gui-mockup-nodes__8.avif" />
9191
<!-- Below is a copy of the first -->
92-
<img src="https://static.graphite.rs/content/index/gui-demo-painted-dreams__2.avif" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image />
92+
<img src="https://static.graphite.rs/content/index/gui-demo-painted-dreams__3.avif" onerror="this.onerror = null; this.src = this.src.replace('.avif', '.png')" alt="" style="transform: translateX(-100%)" data-carousel-image />
9393
</div>
9494

9595
<div class="carousel-slide torn left" data-carousel-slide-torn-left></div>
@@ -135,13 +135,13 @@ meta_description = "Open source free software. A vector graphics creativity suit
135135
Design for a magazine spread, a preview of the upcoming focus on desktop publishing
136136
</p>
137137
<p data-carousel-description>
138-
<a href="https://editor.graphite.rs/#demo/valley-of-spires"><em>Valley of Spires</em></a> — All layer stacks are represented, under the hood, by a node graph
138+
<a href="https://editor.graphite.rs/#demo/isometric-fountain"><em>Isometric Fountain</em></a> — All layer stacks are represented, under the hood, by a nondestructive node graph
139139
</p>
140140
<p data-carousel-description>
141141
Mandelbrot fractal filled with a noise pattern, procedurally generated and infinitely scalable
142142
</p>
143143
<p data-carousel-description>
144-
Coming soon: mockup for the actively in-development raster workflow with new nodes for photo editing
144+
Coming soon: this user interface mockup shows the raster image editing features planned for 2025
145145
</p>
146146

147147
</div>

website/content/donate.md

Lines changed: 170 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,206 @@
22
title = "Donate"
33

44
[extra]
5-
# css = ["/page/donate.css", "/component/feature-box.css", "/layout/balance-text.css"]
5+
css = ["/page/donate.css", "/component/feature-box.css"]
66
# js = ["/js/fundraising.js"]
77
# linked_js = ["https://static.graphite.rs/text-balancer/text-balancer.js"]
88
+++
99

1010
<section>
1111
<div class="block">
1212

13-
# Donate
13+
# Support Graphite
1414

15-
**Safeguard the sustainable, independent future of Graphite.**
15+
**Safeguard the sustainable, independent future of quality open source creative software.**
1616

17-
Your monthly support (or one-off contribution) helps provide the resources needed to grow Graphite into the ultimate 2D creative tool.
17+
Graphite is entirely built and funded by the community. Your contributions directly help us level up the scope and speed of the project's development. Resources are put towards infrastructure, legal costs, swag to keep contributors happy and motivated, and outreach like exhibiting at conventions and traveling to conferences to foster industry relationships. Hiring full-time developers is the next big goal as support grows.
1818

19-
<a href="https://github.com/sponsors/GraphiteEditor" class="button arrow">&hearts; Give now</a>
19+
*Additionally, boosting the [Graphite Discord server](https://discord.graphite.rs) is another helpful way to contribute if you have Nitro boosts to spare.*
2020

21-
<br />
21+
*Live donation statistics are coming soon.*
2222

23-
(Additionally, boosting the [Graphite Discord server](https://discord.graphite.rs) is helpful if you already have spare Nitro boosts.)
23+
</div>
24+
</section>
25+
26+
<section id="github-sponsors" class="feature-box-outer">
27+
<div class="feature-box-inner">
28+
29+
<div class="block">
30+
31+
<h1 class="feature-box-header">Donate without fees</h1>
32+
33+
---
34+
35+
To ensure **100% of your contribution benefits Graphite**, or to pick a **custom** monthly donation, please support through **GitHub Sponsors**:
36+
37+
<a href="https://github.com/sponsors/GraphiteEditor" target="_blank" class="button arrow">Sponsor through GitHub</a>
38+
39+
</div>
2440

2541
</div>
2642
</section>
2743

28-
<!-- <section id="fundraising" class="feature-box-outer">
44+
<section id="supporter-memberships" class="feature-box-outer">
2945
<div class="feature-box-inner">
30-
<div>
3146

3247
<div class="block">
3348

34-
# Support the mission
49+
<h1 class="feature-box-header">Supporter memberships</h1>
3550

36-
<p class="balance-text">
37-
You can help realize Graphite's ambitious vision of building the ultimate 2D creative tool.
38-
Graphite is built by a small, dedicated crew of volunteers in need of resources to grow.
39-
</p>
51+
---
4052

41-
### Summer 2023 fundraising goal:
53+
Or click a membership level below to pay directly (no account needed). A small fee (2.9% + 30¢ / month) reduces what we receive.
54+
55+
</div>
56+
57+
<div class="triptych">
58+
59+
<a href="https://buy.stripe.com/6oE2btfCK9863vybII" target="_blank" class="block feature-box-narrow">
60+
61+
<h1 class="feature-box-header">⭕ &ldquo;Quark&rdquo; &raquo;</h1>
62+
63+
**$5 / month**
64+
65+
- Your GitHub profile unlocks a shiny achievement acknowledging your contribution *(through GitHub Sponsors only)*
66+
67+
</a>
68+
<a href="https://buy.stripe.com/00gdUb62aesq9TW7st" target="_blank" class="block feature-box-narrow">
69+
70+
<h1 class="feature-box-header">➕ &ldquo;Proton&rdquo; &raquo;</h1>
71+
72+
**$10 / month**
73+
74+
- Get a **"Member" role** and accompanying **gold-colored nametag on Discord**
75+
- *Plus the lower-tier rewards*
76+
77+
</a>
78+
<a href="https://buy.stripe.com/5kAbM38aiacaeac28a" target="_blank" class="block feature-box-narrow">
79+
80+
<h1 class="feature-box-header">⚛️ &ldquo;Carbon&rdquo; &raquo;</h1>
81+
82+
**$15 / month**
83+
84+
- Your name/handle listed in the end-of-year **retrospective blog post** thank-you section
85+
- *Plus the lower-tier rewards*
86+
87+
</a>
88+
89+
</div>
90+
<div class="triptych">
91+
92+
<a href="https://buy.stripe.com/28o4jB62a0BA5DGbIL" target="_blank" class="block feature-box-narrow">
93+
94+
<h1 class="feature-box-header">🧬 &ldquo;DNA&rdquo; &raquo;</h1>
95+
96+
**$25 / month**
97+
98+
- Your **personal name** (or handle) **on the Graphite website and GitHub readme**
99+
- Option to be mailed a personal **thank-you card with Graphite stickers** (US addresses only)
100+
- *Plus the lower-tier rewards*
101+
102+
</a>
103+
<a href="https://buy.stripe.com/28o03laiq0BA8PS6os" target="_blank" class="block feature-box-narrow">
104+
105+
<h1 class="feature-box-header">🌱 &ldquo;Organism&rdquo; &raquo;</h1>
106+
107+
**$50 / month**
108+
109+
- Option to be given a public **shout-out of appreciation** from @GraphiteEditor on your choice of social media sites
110+
- *Plus the lower-tier rewards*
111+
112+
</a>
113+
<a href="https://buy.stripe.com/fZedUbduCfwu2ru7sx" target="_blank" class="block feature-box-narrow">
114+
115+
<h1 class="feature-box-header">🌄 &ldquo;Biosphere&rdquo; &raquo;</h1>
116+
117+
**$75 / month**
118+
119+
- Your personal name (or handle) may be a **hyperlink** to your personal site or social media profile
120+
- *Plus the lower-tier rewards*
121+
122+
</a>
123+
124+
</div>
125+
126+
<div class="block one-time-donation">
127+
128+
<a href="https://donate.stripe.com/fZeg2j0HQ5VU6HK14d" target="_blank" class="button arrow">Or make a one-time donation</a>
42129

43-
<div class="fundraising loading" data-fundraising>
44-
<div class="fundraising-bar" data-fundraising-bar style="--fundraising-percent: 0%">
45-
<div class="fundraising-bar-progress"></div>
46-
</div>
47-
<div class="goal-metrics">
48-
<span data-fundraising-percent>Progress: <span data-dynamic>0</span>%</span>
49-
<span data-fundraising-goal>Goal: $<span data-dynamic>0</span>/month</span>
50-
</div>
51130
</div>
131+
<div class="block manage-membership">
52132

53-
[Become a monthly supporter](https://github.com/sponsors/GraphiteEditor) this summer to collect an exclusive 💚 badge. Each season you support, a new heart design is yours to keep. In the future, they'll be shown on Graphite account profiles and community areas like forums and in-app collaboration.
133+
[Manage your ongoing membership](https://billing.stripe.com/p/login/aEU9EzctSfe3cfK5kk)
54134

55-
<a href="https://github.com/sponsors/GraphiteEditor" class="button arrow">Donate</a>
135+
</div>
56136

57137
</div>
138+
</section>
139+
140+
<section id="corporate-sponsorships" class="feature-box-outer">
141+
<div class="feature-box-inner">
142+
143+
<div class="block">
144+
145+
<h1 class="feature-box-header">Corporate sponsorships</h1>
146+
147+
---
148+
149+
These higher tiers are also available to individuals who want to make a larger impact.
150+
151+
Please [get in touch](/contact) if you'd like a custom arrangement or want to pay by invoice or ACH to help avoid processing fees.
152+
153+
</div>
154+
155+
<div class="triptych">
156+
157+
<a href="https://buy.stripe.com/7sI6rJ1LU5VUaY05kq" target="_blank" class="block feature-box-narrow">
158+
159+
<h1 class="feature-box-header">🪨 &ldquo;Charcoal&rdquo; &raquo;</h1>
160+
161+
**$100 / month**
162+
163+
- Your **company name** may be shown **on the Graphite website and GitHub readme** starting at this tier level
164+
- *Plus the lower-tier rewards for members*
165+
166+
</a>
167+
<a href="https://buy.stripe.com/3cs8zR8ai0BA8PSaEL" target="_blank" class="block feature-box-narrow">
168+
169+
<h1 class="feature-box-header">🛡️ &ldquo;Carbide&rdquo; &raquo;</h1>
170+
171+
**$250 / month**
172+
173+
- Your name on the website and readme may be a **hyperlink** to your company/personal site
174+
- *Plus the lower-tier rewards for members*
175+
176+
</a>
177+
<a href="https://buy.stripe.com/fZeaHZ76e0BAeaccMU" target="_blank" class="block feature-box-narrow">
178+
179+
<h1 class="feature-box-header">💎 &ldquo;Diamond&rdquo; &raquo;</h1>
180+
181+
**$500 / month**
182+
183+
- Your name and link on the website and readme may instead be a **hyperlinked logo**
184+
- *Plus the lower-tier rewards for members*
185+
186+
</a>
58187

59-
<div class="graphic">
60-
<a href="https://github.com/sponsors/GraphiteEditor"><img src="https://files.keavon.com/-/OtherDroopyBoto/Spring_Heart.png" /></a>
61188
</div>
62189

190+
<div class="block manage-membership">
191+
192+
[Manage your ongoing membership](https://billing.stripe.com/p/login/aEU9EzctSfe3cfK5kk)
193+
63194
</div>
195+
64196
</div>
65-
</section> -->
197+
</section>
198+
199+
<!-- <div class="fundraising loading" data-fundraising>
200+
<div class="fundraising-bar" data-fundraising-bar style="--fundraising-percent: 0%">
201+
<div class="fundraising-bar-progress"></div>
202+
</div>
203+
<div class="goal-metrics">
204+
<span data-fundraising-percent>Progress: <span data-dynamic>0</span>%</span>
205+
<span data-fundraising-goal>Goal: $<span data-dynamic>0</span>/month</span>
206+
</div>
207+
</div> -->

website/content/volunteer/guide/starting-a-task/code-quality-guidelines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ Always use the style `42.` instead of `42.0` for whole-number floats to maintain
2727

2828
## Comments
2929

30-
For consistency, please try to write comments in *Sentence case* (starting with a capital letter). End with a period only if multiple sentences are used in the same comment. For doc comments (`///`), always write in full sentences ending with a period. There should always be one space after the `//` or `///` comment markers, and `/* */` style comments shouldn't be used.
30+
For consistency, please try to write comments (`//`) in *Sentence case* (with a capital first letter) and don't end with a period unless multiple sentences are used in the same comment. For doc comments (`///`), always end your sentences with a period. There should always be one space after the `//` or `///` comment markers, and `/* */` style comments should be avoided.
3131

3232
Avoid including commented-out code, unless you have a compelling reason to keep it around for future adaption, in your PRs that are open for code review.
3333

34-
Comments should usually be placed on a separate line above the code they are referring to, not at the end of the code line.
34+
Comments should usually be placed on a separate line above the code they are referring to, not at the end of the same code line.
3535

3636
## Blank lines
3737

38-
Please make a habit of grouping together related lines of codes in blocks separated by blank lines. If you have dozens of lines comprising a single unbroken block of logic, you are likely not splitting it apart enough to aid readability. Find sensible places to partition the logic and insert blank lines between each. Roughly 10% of the code you write should ideally be blank lines, otherwise you are likely underutilizing them at the expense of readability.
38+
Please make a habit of grouping together related lines of code in blocks separated by blank lines. If you have dozens of lines comprising a single unbroken block of logic, you are likely not splitting it apart enough to aid readability. Find sensible places to partition the logic and insert blank lines between each. Roughly 10% of the code you write should ideally be blank lines, otherwise you are likely underutilizing them at the expense of readability.
3939

4040
## Imports
4141

website/sass/base.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
--variable-px: Min(1px, 0.15vw);
3232
--page-edge-padding: 40px;
3333
--border-thickness: 2px;
34+
--feature-box-padding: 80;
3435
--font-size-link: calc(1rem * 4 / 3);
3536
}
3637

@@ -53,6 +54,7 @@ body {
5354
--font-size-link: calc(1rem * 4 / 3);
5455
--page-edge-padding: 28px;
5556
--border-thickness: 1px;
57+
--feature-box-padding: 40;
5658
}
5759

5860
html,

website/sass/component/carousel.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.carousel {
1+
.carousel.carousel {
22
margin-top: calc(80 * var(--variable-px));
33
transform: translate(0);
44

website/sass/component/feature-box.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
.feature-box-narrow,
66
.feature-box-outer {
7-
padding: calc(80 * var(--variable-px));
7+
padding: calc(var(--feature-box-padding) * var(--variable-px));
88
background-image: url("https://static.graphite.rs/textures/noise.png");
99
background-blend-mode: overlay;
1010
background-position: center;
@@ -15,11 +15,11 @@
1515
}
1616

1717
.feature-box-full-image {
18-
width: calc(100% + 2 * 80 * var(--variable-px));
18+
width: calc(100% + 2 * var(--feature-box-padding) * var(--variable-px));
1919
height: auto;
20-
margin-left: calc(-80 * var(--variable-px));
21-
margin-top: calc(-80 * var(--variable-px));
22-
margin-bottom: calc(40 * var(--variable-px));
20+
margin-left: calc(-1 * var(--feature-box-padding) * var(--variable-px));
21+
margin-top: calc(-1 * var(--feature-box-padding) * var(--variable-px));
22+
margin-bottom: calc(var(--feature-box-padding) / 2 * var(--variable-px));
2323
display: block;
2424
}
2525

@@ -71,7 +71,7 @@ h1.feature-box-header.feature-box-header {
7171
.triptych {
7272
display: flex;
7373
flex-wrap: wrap;
74-
gap: calc(80 * var(--variable-px));
74+
gap: calc(var(--feature-box-padding) * var(--variable-px));
7575

7676
.block {
7777
flex: 1 1 0;

0 commit comments

Comments
 (0)