Skip to content

Commit 79ba2a2

Browse files
committed
docs: add sponsor page
1 parent 780989c commit 79ba2a2

4 files changed

Lines changed: 102 additions & 1 deletion

File tree

docs/sponsor.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Sponsor D2
2+
3+
<p className="hero__subtitle sponsorSubtitle margin-bottom--lg">
4+
{
5+
"D2 is fiscally sponsored by Hack Club (501(c)(3)). All donations are tax-deductible in the United States."
6+
}
7+
</p>
8+
9+
<div className="sponsorActions margin-top--lg margin-bottom--lg">
10+
<a
11+
className="button button--primary button--lg"
12+
href="https://hcb.hackclub.com/donations/start/d2"
13+
>
14+
<span>Donate to D2</span>
15+
</a>
16+
<a
17+
className="button button--primary button--outline button--lg"
18+
href="https://hcb.hackclub.com/d2"
19+
>
20+
<span>View fund</span>
21+
</a>
22+
</div>
23+
24+
## Where the money goes
25+
26+
D2 is free and open source.
27+
28+
Donations support:
29+
30+
- Keeping d2lang.com, the Playground, icons, and other public tools online.
31+
- Maintaining build, package, and distribution infrastructure.
32+
- Supporting open-source projects that D2 depends on.
33+
34+
Fund usage is transparent. D2 was created by Alexander Wang and Anmol Sethi,
35+
and Alexander is currently the maintainer. It was originally developed as part
36+
of our work in a for-profit company, Terrastruct, but is now split into its own
37+
independent project, funded purely through donations. Nothing will go towards
38+
either of us; I work on D2 out of passion, not as a source of income.
39+
40+
Hack Club charges a 7% fee for maintaining the nonprofit organization. They do
41+
wonderful work providing community, programs, and events for teenagers to
42+
participate in real world tech.
43+
44+
## How the fund works
45+
46+
The [D2 fund](https://hcb.hackclub.com/d2) is public: you can see its balance and every
47+
transaction. Hack Club handles the fund and nonprofit administration.
48+
49+
Sponsoring D2 does not affect its roadmap, governance, or license. D2 remains open source
50+
under the
51+
[Mozilla Public License 2.0](https://github.com/d2lang/d2/blob/master/LICENSE.txt), and
52+
development happens in public on [GitHub](https://github.com/d2lang/d2).
53+
54+
## Companies
55+
56+
If your company uses D2, it can donate through the same fund. Want to make a larger
57+
donation or contribute infrastructure or services? Email me at
58+
[alex@d2lang.com](mailto:alex@d2lang.com).

sidebars.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ const sidebars: SidebarsConfig = {
157157
"tour/faq",
158158
"tour/troubleshoot",
159159
"tour/help",
160+
{
161+
type: "doc",
162+
id: "sponsor",
163+
label: "Sponsor D2",
164+
},
160165
],
161166
releasesSidebar: [
162167
{

src/styles/custom.scss

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,44 @@ img {
105105
border: 1px solid var(--border);
106106
}
107107

108+
.sponsorSubtitle {
109+
max-width: 46rem;
110+
color: var(--ifm-color-emphasis-700);
111+
line-height: 1.4;
112+
}
113+
114+
.sponsorActions {
115+
display: flex;
116+
flex-wrap: wrap;
117+
align-items: center;
118+
gap: 0.75rem;
119+
120+
.button {
121+
display: inline-flex;
122+
align-items: center;
123+
justify-content: center;
124+
flex: 0 1 11rem;
125+
min-width: 11rem;
126+
}
127+
}
128+
129+
@media (max-width: 576px) {
130+
.sponsorSubtitle {
131+
font-size: 1.25rem;
132+
}
133+
134+
.sponsorActions {
135+
display: grid;
136+
grid-template-columns: 1fr;
137+
138+
.button {
139+
width: 100%;
140+
min-width: 0;
141+
white-space: normal;
142+
}
143+
}
144+
}
145+
108146
// Alerts
109147
:root {
110148
.alert--success {

src/theme/Footer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Footer() {
3434
.
3535
</span>
3636
<div className="Footer__Links">
37-
<a className="Footer__Link" href="https://hcb.hackclub.com/donations/start/d2">
37+
<a className="Footer__Link" href="/sponsor/">
3838
Donate
3939
</a>
4040
<a className="Footer__Link" href="https://github.com/d2lang/d2">

0 commit comments

Comments
 (0)