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
103 changes: 34 additions & 69 deletions website/content/donate.njk
Original file line number Diff line number Diff line change
Expand Up @@ -62,92 +62,57 @@ title: Donate
</div>
</div>
</section>

<section class="container-xxl mb-5">
<h1 id="patreons" class="fw-bold"><a href="#patreons">Monthly Sponsors</a></h1>
<p>
The following is a list of individuals and studios that support us through <a href="https://www.patreon.com/bePatron?u=3142012">Patreon</a>.
</p>
<br/>
<div class="container">
{% set tiers = [
{ name: "EnvironmentMapEffect", url: "https://www.patreon.com/checkout/MonoGame?rid=9142452" },
{ name: "Model.Draw", url: "https://www.patreon.com/checkout/MonoGame?rid=9142450" },
{ name: "DrawUserPrimitives", url: "https://www.patreon.com/checkout/MonoGame?rid=1916865" },
{ name: "SpriteBatch", url: "https://www.patreon.com/checkout/MonoGame?rid=1867475" },
{ name: "Cornflower Blue", url: "https://www.patreon.com/checkout/MonoGame?rid=1867471" }
] %}
<div class="row">
{% for tier in tiers %}
<div class="col-sm">
<b>{{tier.name}}</b>
<br />
<br />
</div>
{% endfor %}
</div>
<div class="row">
{% for tier in tiers %}
<div class="col-sm">
{% for patreon in patreons %}
{% if patreon.tier == tier.name and patreon.active %}
{% if patreon.url %}<a href="{{patreon.url}}">{% endif %}
{{patreon.name}}
{% if patreon.url %}</a>{% endif %}
<br />
{% endif %}
{% endfor %}
</div>
{% endfor%}
</div>
</div>
</section>
<section class="container-xxl mb-5">
<h1 id="patreons" class="fw-bold"><a href="#patreons">Past Monthly Sponsors</a></h1>
<p>
The following is a list of individuals and studios that have supported us through <a href="https://www.patreon.com/bePatron?u=3142012">Patreon</a> in the past.
</p>
<br/>
<div class="container">
<br/>
<div class="credits">
{% set tiers = [
{ name: "EnvironmentMapEffect", url: "https://www.patreon.com/checkout/MonoGame?rid=9142452" },
{ name: "Model.Draw", url: "https://www.patreon.com/checkout/MonoGame?rid=9142450" },
{ name: "DrawUserPrimitives", url: "https://www.patreon.com/checkout/MonoGame?rid=1916865" },
{ name: "SpriteBatch", url: "https://www.patreon.com/checkout/MonoGame?rid=1867475" },
{ name: "Cornflower Blue", url: "https://www.patreon.com/checkout/MonoGame?rid=1867471" }
{ name: "EnvironmentMapEffect", url: "https://www.patreon.com/checkout/MonoGame?rid=9142452", size: "fs-3" },
{ name: "Model.Draw", url: "https://www.patreon.com/checkout/MonoGame?rid=9142450", size: "fs-4" },
{ name: "DrawUserPrimitives", url: "https://www.patreon.com/checkout/MonoGame?rid=1916865", size: "fs-5" },
{ name: "SpriteBatch", url: "https://www.patreon.com/checkout/MonoGame?rid=1867475", size: "fs-6" },
{ name: "Cornflower Blue", url: "https://www.patreon.com/checkout/MonoGame?rid=1867471", size: "fs-6" }
] %}
<div class="row">
{% for tier in tiers %}
<div class="col-sm">
<b>{{tier.name}}</b>
<br />
<br />
</div>
{% endfor %}
</div>
<div class="row">
{% for tier in tiers %}
<div class="col-sm">
{% for patreon in patreons %}
{% if patreon.tier == tier.name and not patreon.active %}
{% if patreon.url %}<a href="{{patreon.url}}">{% endif %}
{{patreon.name}}
{% if patreon.url %}</a>{% endif %}
<br />
{% endif %}
{% endfor %}
</div>
<div class="row justify-content-center">
<hr class="mx-auto" style="width:300px; height:2px; background:#FFF; border:0; opacity: 0.25; margin: 2rem auto;"/>
<h3 class="fw-bold text-center"><a href="#{{tier.name}}">{{tier.name}}</a></h3>
<br />
<br />
<ul class="donationList list-unstyled">
{% for patreon in patreons %}
{% if patreon.tier == tier.name and patreon.active %}
<li class="{{tier.size}}">{% if patreon.url %}<a href="{{patreon.url}}">{% endif %}{{patreon.name}}{% if patreon.url %}</a>{% endif %}</li>
{% endif %}
{% endfor %}
{% for patreon in patreons %}
{% if patreon.tier == tier.name and not patreon.active %}
<li class="{{tier.size}} text-secondary">{{patreon.name}}</li>
{% endif %}
{% endfor %}
</ul>
<br />
<br />
<br />
<br />
</div>

{% endfor%}
</div>
</div>
</div>
</section>

<section class="container-xxl mb-5">
<h1 id="donations" class="fw-bold"><a href="#donations">Donations</a></h1>
<p>
The following is a preserved list of individuals and studios that generously donated in the past to help run the project.
</p>
<div class="row">
{% for donor in donations | sort(true, false, 'amount') %}
<div class="col-lg-3 mb-3 text-center">
<div class="col-6 col-md-3 mb-3 text-center">
{% if donor.url %}<a href="{{donor.url}}">{% endif %}
{{donor.name}}
{% if donor.url %}</a>{% endif %}
Expand Down
31 changes: 31 additions & 0 deletions website/content/public/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -869,3 +869,34 @@ blockquote {
.mg-two-column-list li {
margin-left: 1.5rem; /* Adjusts indentation for list items */
}


/*******************************************************************************
*** Section: Donations
*** Styles for donations page
*******************************************************************************/

.donationList {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
column-gap: 0px;
}

.donationList li {
width: fit-content;
white-space: nowrap;
text-align: center;
}

.donationList li:not(:last-child)::after {
content: '\00B7';
margin: 0 0.5em;
opacity: 0.6;
}

.credits {
width: clamp(320px, 80%, 1200px);
margin-inline: auto;
}