Skip to content

Commit 437abe9

Browse files
authored
adjust ui for visonary sponsors on downloads page (#2939)
1 parent 7d86d4c commit 437abe9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

apps/sponsors/templates/sponsors/partials/sponsors-list.html

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66
{% if logo_place == "download" %}
77
{% comment %}cache for 1 day{% endcomment %}
88
{% cache 86400 CACHED_DOWNLOAD_SPONSORS_LIST %}
9-
<h2 class="widget-title">Sponsors</h2>
10-
<p>Visionary sponsors help to host Python downloads.</p>
9+
<h2 class="widget-title" style="text-align: center;">Sponsors</h2>
10+
<p style="text-align: center;">Visionary sponsors help to host Python downloads.</p>
11+
<div style="display: grid; grid-gap: 2em; grid-template-columns: repeat(auto-fit, minmax(150px, 0fr)); align-items: center; justify-content: center; margin-top: 1.5em;">
1112
{% for sponsorship in sponsorships %}
12-
{% thumbnail sponsorship.sponsor.web_logo "x200" format="PNG" quality=100 as im %}
13-
<img src="{{ im.url }}" alt="{{ sponsorship.sponsor.name }} logo" style="max-height:200px;max-width:200px;height:auto;width:auto;">
13+
{% thumbnail sponsorship.sponsor.web_logo "x150" format="PNG" quality=100 as im %}
14+
<div style="text-align: center;">
15+
<a href="{{ sponsorship.sponsor.landing_page_url }}" rel="sponsored noopener" target="_blank" style="border-bottom: 0;">
16+
<img src="{{ im.url }}" alt="{{ sponsorship.sponsor.name }} logo" style="max-height:150px;max-width:150px;height:auto;width:auto;">
17+
</a>
18+
<p style="margin-top: 0.5em; margin-bottom: 0; font-size: 0.875em; color: #4d4d4d;">{{ sponsorship.sponsor.name }}</p>
19+
</div>
1420
{% endthumbnail %}
1521
{% endfor %}
22+
</div>
1623
{% endcache CACHED_DOWNLOAD_SPONSORS_LIST %}
1724

1825
{% elif logo_place == "jobs" %}

0 commit comments

Comments
 (0)