Negate the bottom margin below sponsor sections

This commit is contained in:
Oliver Davies 2019-05-30 19:30:04 +01:00
parent c6560bf8d7
commit bed84ea1e6

View file

@ -7,25 +7,26 @@ title: Sponsors
<p>If you'd like to get involved with sponsorship, head over to our <a href="/sponsorship">Sponsorship</a> page. We'll be on the lookout for new sponsors up until the day of the event.</p> <p>If you'd like to get involved with sponsorship, head over to our <a href="/sponsorship">Sponsorship</a> page. We'll be on the lookout for new sponsors up until the day of the event.</p>
</div> </div>
{% for level in site.sponsorship_levels %} <div class="tw--mb-20">
{% for level in site.sponsorship_levels %}
{% set sponsors = getSponsors(site.sponsors, level) %} {% set sponsors = getSponsors(site.sponsors, level) %}
{% if sponsors %} {% if sponsors %}
<section class="tw-block tw-mb-12"> <section class="tw-block tw-mb-24">
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2> <h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
<div class="tw--mb-8 {{ level == 'gold' ? '' : 'tw-flex tw-flex-wrap tw--mx-2' }}">
<div class="tw--mb-8 {{ level == 'gold' ? '' : 'tw-flex tw-flex-wrap tw--mx-2' }}"> {% for sponsor in sponsors %}
{% for sponsor in sponsors %} <article class="tw-mb-10 {{ level == 'gold' ? 'tw-w-full' : 'tw-w-1/2 md:tw-w-1/4 lg:tw-w-1/6 tw-px-2' }}">
<article class="tw-mb-8 {{ level == 'gold' ? 'tw-w-full' : 'tw-w-1/2 md:tw-w-1/4 lg:tw-w-1/6 tw-px-2' }}"> {% set template = (level == 'gold') ? 'sponsors/full' : 'sponsors/teaser' %}
{% set template = (level == 'gold') ? 'sponsors/full' : 'sponsors/teaser' %} {% include template with {
{% include template with { description: sponsor.description,
description: sponsor.description, logo: sponsor.logo,
logo: sponsor.logo, name: sponsor.name,
name: sponsor.name, url: sponsor.url,
url: sponsor.url, } %}
} %} </article>
</article> {% endfor %}
{% endfor %} </div>
</div> </section>
</section>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div>