Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions docs/sponsor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Sponsor D2

<p className="hero__subtitle sponsorSubtitle margin-bottom--lg">
{
"D2 is fiscally sponsored by Hack Club (501(c)(3)). All donations are tax-deductible in the United States."
}
</p>

<div className="sponsorActions margin-top--lg margin-bottom--lg">
<a
className="button button--primary button--lg"
href="https://hcb.hackclub.com/donations/start/d2"
>
<span>Donate to D2</span>
</a>
<a
className="button button--primary button--outline button--lg"
href="https://hcb.hackclub.com/d2"
>
<span>View fund</span>
</a>
</div>

## Where the money goes

D2 is free and open source.

Donations support:

- Keeping d2lang.com, the Playground, icons, and other public tools online.
- Maintaining build, package, and distribution infrastructure.
- Supporting open-source projects that D2 depends on.

Fund usage is transparent. D2 was created by Alexander Wang and Anmol Sethi,
and Alexander is currently the maintainer. It was originally developed as part
of our work in a for-profit company, Terrastruct, but is now split into its own
independent project, funded purely through donations. Nothing will go towards
either of us; I work on D2 out of passion, not as a source of income.

Hack Club charges a 7% fee for maintaining the nonprofit organization. They do
wonderful work providing community, programs, and events for teenagers to
participate in real world tech.

## How the fund works

The [D2 fund](https://hcb.hackclub.com/d2) is public: you can see its balance and every
transaction. Hack Club handles the fund and nonprofit administration.

Sponsoring D2 does not affect its roadmap, governance, or license. D2 remains open source
under the
[Mozilla Public License 2.0](https://github.com/d2lang/d2/blob/master/LICENSE.txt), and
development happens in public on [GitHub](https://github.com/d2lang/d2).

## Companies

If your company uses D2, it can donate through the same fund. Want to make a larger
donation or contribute infrastructure or services? Email me at
[alex@d2lang.com](mailto:alex@d2lang.com).
5 changes: 5 additions & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ const sidebars: SidebarsConfig = {
"tour/faq",
"tour/troubleshoot",
"tour/help",
{
type: "doc",
id: "sponsor",
label: "Sponsor D2",
},
],
releasesSidebar: [
{
Expand Down
38 changes: 38 additions & 0 deletions src/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,44 @@ img {
border: 1px solid var(--border);
}

.sponsorSubtitle {
max-width: 46rem;
color: var(--ifm-color-emphasis-700);
line-height: 1.4;
}

.sponsorActions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;

.button {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 1 11rem;
min-width: 11rem;
}
}

@media (max-width: 576px) {
.sponsorSubtitle {
font-size: 1.25rem;
}

.sponsorActions {
display: grid;
grid-template-columns: 1fr;

.button {
width: 100%;
min-width: 0;
white-space: normal;
}
}
}

// Alerts
:root {
.alert--success {
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Footer() {
.
</span>
<div className="Footer__Links">
<a className="Footer__Link" href="https://hcb.hackclub.com/donations/start/d2">
<a className="Footer__Link" href="/sponsor/">
Donate
</a>
<a className="Footer__Link" href="https://github.com/d2lang/d2">
Expand Down
Loading