Skip to content

Commit 8547b46

Browse files
authored
Sponsor styles (#4)
1 parent 8aca2f9 commit 8547b46

7 files changed

Lines changed: 95 additions & 28 deletions

File tree

content/pages/sponsorship.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
Title: Sponsor aio-libs
1+
Title: Sponsor us
22

3-
# Gold
4-
{% sponsors gold %}
3+
Asyncio would not be possible without our amazing sponsors. Please consider joining them to help fund our work. Our finances are entirely transparent and managed by [Open Collective](https://opencollective.com/aio-libs).
54

6-
# Silver
5+
{% sponsors gold %}
76
{% sponsors silver %}
8-
9-
# Bronze
107
{% sponsors bronze %}

pelicanconf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ def sponsors(preprocessor: Preprocessor, tag: str, markup: str) -> str:
5151
)
5252
_SPONSORS_SILVER = (
5353
("Test silver sponsor", "https://aiohttp.org/"),
54+
("Another Silver", "https://aiohttp.org/"),
5455
)
5556
_SPONSORS_BRONZE = ("thanks.dev", "dmTECH")
57+
5658
SPONSORS = {
5759
"gold": tuple({"name": s[0], "img": sponsor_img(s[0]), "url": s[1]} for s in _SPONSORS_GOLD),
5860
"silver": tuple({"name": s[0], "url": s[1]} for s in _SPONSORS_SILVER),

theme/static/css/main.css

Lines changed: 74 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme/templates/base.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
{% endif %}
5656
{% endif %}
5757

58-
<div id="sponsor-sidebar"></div>
58+
<div id="sponsor-sidebar" class="aio-sponsor-sidebar"></div>
5959
{% endblock nav %}
6060
</section>
6161
<section class="aio-content">
@@ -68,8 +68,8 @@
6868
<footer></footer>
6969

7070
<template id="template-sponsor-sidebar" data-sponsors='{{ SPONSORS["gold"]|tojson }}'>
71-
<h2>Featured Sponsor</h2>
72-
<a><img /></a>
71+
<p>Featured Sponsor:</p>
72+
<a class="aio-sponsor"><img /></a>
7373
</template>
7474
{% endblock footer %}
7575
{% endblock body %}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
{% for sponsor in SPONSORS %}
2-
{{ sponsor.name }}
3-
{% endfor %}
1+
<section>
2+
<h3>Bronze Tier Sponsors</h3>
3+
<ul>{% for sponsor in SPONSORS %}<li>{{ sponsor.name }}</li>{% endfor %}</ul>
4+
</section>
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
{% for sponsor in SPONSORS %}
2-
<a href="{{ sponsor.url }}"><img src={{ sponsor.img }} alt="{{ sponsor.name }}" /></a>
3-
{% endfor %}
1+
<section>
2+
<h3>Gold Tier Sponsors</h3>
3+
<p>Huge thanks to those generously supporting us at the Gold tier:</p>
4+
<ul class="aio-sponsors-list">{% for sponsor in SPONSORS %}<li class="aio-sponsors-list__item"><a href="{{ sponsor.url }}"><img src={{ sponsor.img }} alt="{{ sponsor.name }}" /></a></li>{% endfor %}</ul>
5+
</section>
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
{% for sponsor in SPONSORS %}
2-
<a href="{{ sponsor.url }}">{{ sponsor.name }}</a>
3-
{% endfor %}
1+
<section>
2+
<h3>Silver Tier Sponsors</h3>
3+
<ul>{% for sponsor in SPONSORS %}<li><a href="{{ sponsor.url }}">{{ sponsor.name }}</a></li>{% endfor %}</ul>
4+
</section>

0 commit comments

Comments
 (0)