Skip to content

Commit 2b70deb

Browse files
committed
Some more donation layout tweaks.
1 parent a6f9a42 commit 2b70deb

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed

website/content/donate.njk

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ title: Donate
6262
</div>
6363
</div>
6464
</section>
65+
6566
<section class="container-xxl mb-5">
6667
<h1 id="patreons" class="fw-bold"><a href="#patreons">Monthly Sponsors</a></h1>
6768
<p>
6869
The following is a list of individuals and studios that support us through <a href="https://www.patreon.com/bePatron?u=3142012">Patreon</a>.
6970
</p>
7071
<br/>
72+
<div class="credits">
7173
{% set tiers = [
7274
{ name: "EnvironmentMapEffect", url: "https://www.patreon.com/checkout/MonoGame?rid=9142452", size: "fs-3" },
7375
{ name: "Model.Draw", url: "https://www.patreon.com/checkout/MonoGame?rid=9142450", size: "fs-4" },
@@ -81,30 +83,26 @@ title: Donate
8183
<h3 class="fw-bold text-center"><a href="#{{tier.name}}">{{tier.name}}</a></h3>
8284
<br />
8385
<br />
86+
<ul class="donationList list-unstyled">
8487
{% for patreon in patreons %}
8588
{% if patreon.tier == tier.name and patreon.active %}
86-
<div class="col-6 col-md-4 mb-1 text-center {{tier.size}}" >
87-
{% if patreon.url %}<a href="{{patreon.url}}">{% endif %}{{patreon.name}}{% if patreon.url %}</a>{% endif %}
88-
<br />
89-
</div>
89+
<li class="{{tier.size}}">{% if patreon.url %}<a href="{{patreon.url}}">{% endif %}{{patreon.name}}{% if patreon.url %}</a>{% endif %}</li>
9090
{% endif %}
9191
{% endfor %}
9292
{% for patreon in patreons %}
9393
{% if patreon.tier == tier.name and not patreon.active %}
94-
<div class="col-6 col-md-4 mb-1 text-center text-secondary {{tier.size}}">
95-
{{patreon.name}}
96-
<br />
97-
</div>
94+
<li class="{{tier.size}} text-secondary">{{patreon.name}}</li>
9895
{% endif %}
9996
{% endfor %}
97+
</ul>
10098
<br />
10199
<br />
102100
<br />
103101
<br />
104102
</div>
105103

106104
{% endfor%}
107-
105+
</div>
108106
</section>
109107

110108
<section class="container-xxl mb-5">

website/content/public/css/main.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,3 +869,34 @@ blockquote {
869869
.mg-two-column-list li {
870870
margin-left: 1.5rem; /* Adjusts indentation for list items */
871871
}
872+
873+
874+
/*******************************************************************************
875+
*** Section: Donations
876+
*** Styles for donations page
877+
*******************************************************************************/
878+
879+
.donationList {
880+
display: flex;
881+
flex-wrap: wrap;
882+
gap: 1rem;
883+
justify-content: center;
884+
column-gap: 0px;
885+
}
886+
887+
.donationList li {
888+
width: fit-content;
889+
white-space: nowrap;
890+
text-align: center;
891+
}
892+
893+
.donationList li:not(:last-child)::after {
894+
content: '\00B7';
895+
margin: 0 0.5em;
896+
opacity: 0.6;
897+
}
898+
899+
.credits {
900+
width: clamp(320px, 80%, 1200px);
901+
margin-inline: auto;
902+
}

0 commit comments

Comments
 (0)