diff --git a/pelicanconf.py b/pelicanconf.py index fb966e40f7bd0cfbc2d219f218d2a001f0a765f0..ca17849893c567590019b775eb52cc74041aa7a0 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -8,7 +8,7 @@ SPONSORS = [ ("Python Software-Verband e.V.", "/theme/images/sponsors/pysv.png", "https://www.python-verband.org", date(2021, 7, 31)), ("Proxmox Server Solutions GmbH", "/theme/images/sponsors/proxmox.png", "https://proxmox.com", date(2022, 4, 30)), ] - -SPONSORSTEXTS = { - "de": "Wir bedanken uns bei unseren Sponsoren für die Unterstützung unserer Vereinsarbeit. Außerdem freuen wir uns immer über weitere Sponsoren, die ihr Engagement mit ihrem Logo hier bewerben möchten!", -} +PARTNERS = [ + ("Open Source Initiative", "/theme/images/partners/osi.png", "https://opensource.org"), + ("Free Software Foundation Europe", "/theme/images/partners/fsfe.png", "https://fsfe.orf"), + ] diff --git a/static/css/style.css b/static/css/style.css index 333dcca7d46b3a00cfb4b971f5167ea4acc0f02c..84c3db9e0c410ec41386830c0fc5eccb5606d498 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -59,6 +59,10 @@ footer#sponsoren-footer { padding-bottom: 20px; } +footer#sponsoren-footer div#partners-box{ + border-left: 1px solid var(--teckids-secondary-dark); +} + li.li-column, div.ul-columns li { display: table-cell; } @@ -113,11 +117,6 @@ h2, h3, h4 { clear: both; } -h3#sponsorheading { - text-align: center; - font-weight: bold; -} - #ldaplist-aktive img.media-object { width: 150px; } @@ -127,15 +126,14 @@ div.row video { } img.sponsorslogo { - width: 300px; - padding-left: 20px; - float: left; + max-width: 300px; + max-height: 130px; + padding-left: 20px; + float: left; } -p#sponsortext { - padding-top: 10px; - padding-bottom: 10px; - text-align: center; +.sponsorheading { + margin-bottom: 1em; } time.icon { diff --git a/static/images/partners/fsfe.png b/static/images/partners/fsfe.png new file mode 100644 index 0000000000000000000000000000000000000000..42b119082fb4df8ad694cd6c6853f2fb2f79a5ec Binary files /dev/null and b/static/images/partners/fsfe.png differ diff --git a/static/images/partners/osi.png b/static/images/partners/osi.png new file mode 100644 index 0000000000000000000000000000000000000000..c04084fef6d3152d34809513b43346cdf0f3f8fe Binary files /dev/null and b/static/images/partners/osi.png differ diff --git a/templates/base.html b/templates/base.html index 1ce4eaad166a259aa8bc945efe420578b4815ea1..0fd2f08cf892bfc75427b2f89ec822f73db43db2 100644 --- a/templates/base.html +++ b/templates/base.html @@ -112,21 +112,20 @@ {% block template_content_footer %}{% endblock %} <div class="container"> <div class="row"> - <div class="col s12"> - <h3 id='sponsorheading' class="black-text">Sponsoren</h3> - <p id="sponsortext" class="black-text"> - {% if article is defined %} - {{ SPONSORSTEXTS[article.lang|default(DEFAULT_LANG)] }} - {% elif page is defined %} - {{ SPONSORSTEXTS[DEFAULT_LANG] }} - {% endif %} - </p> + <div class="col s12 m6" id="sponsors-box"> + <h3 class="black-text sponsorheading">Sponsoren</h3> {% for alt, image, url, before in SPONSORS %} {% if before >= TODAY %} <a href="{{ url }}"><img src="{{ image }}" href="{{ url }}" alt="{{ alt }}" title="{{ alt }}" class="sponsorslogo" /></a> {% endif %} {% endfor %} </div> + <div class="col s12 m6" id="partners-box"> + <h3 class="black-text sponsorheading">Netzwerke und Partnerorganisationen</h3> + {% for alt, image, url in PARTNERS %} + <a href="{{ url }}"><img src="{{ image }}" href="{{ url }}" alt="{{ alt }}" title="{{ alt }}" class="sponsorslogo" /></a> + {% endfor %} + </div> </div> </div> </footer>