This commit is contained in:
Oliver Davies 2019-05-21 00:48:00 +01:00
parent fbeec05eb0
commit 9c831641da
2 changed files with 44 additions and 44 deletions

View file

@ -1,28 +1,28 @@
<section class="tw-text-center tw-max-w-5xl md:tw-w-full tw-mx-auto tw-p-8">
<h2 class="tw-font-bold tw-text-6xl">
Our <span class="tw-text-green-600">Sponsors</span>
</h2>
<h2 class="tw-font-bold tw-text-6xl">
Our <span class="tw-text-green-600">Sponsors</span>
</h2>
{% for level in sponsorshipLevels %}
{% set sponsors = getSponsors(sponsorData, level) %}
{% if sponsors %}
<section class="tw-block">
<h3 class="tw-visuallyhidden">{{ level|capitalize }} Sponsors</h3>
{% for level in sponsorshipLevels %}
{% set sponsors = getSponsors(sponsorData, level) %}
{% if sponsors %}
<section class="tw-block">
<h3 class="tw-visuallyhidden">{{ level|capitalize }} Sponsors</h3>
<ul class="tw-list-reset tw-flex tw-flex-wrap tw-items-center tw-justify-center tw--mx-4">
{% for sponsor in sponsors %}
<li class="tw-mb-6 {{ level == 'gold' ? 'tw-w-3/5 md:tw-w-1/3' : 'tw-w-1/2 md:tw-w-1/4' }}">
<div class="tw-px-4 tw-mb-4">
<img src="/images/sponsors/{{ sponsor.logo }}" alt="{{ sponsor.name }} logo" class="tw-inline-block tw-max-w-full">
</div>
</li>
{% endfor %}
</ul>
</section>
{% endif %}
{% endfor %}
<ul class="tw-list-reset tw-flex tw-flex-wrap tw-items-center tw-justify-center tw--mx-4">
{% for sponsor in sponsors %}
<li class="tw-mb-6 {{ level == 'gold' ? 'tw-w-3/5 md:tw-w-1/3' : 'tw-w-1/2 md:tw-w-1/4' }}">
<div class="tw-px-4 tw-mb-4">
<img src="/images/sponsors/{{ sponsor.logo }}" alt="{{ sponsor.name }} logo" class="tw-inline-block tw-max-w-full">
</div>
</li>
{% endfor %}
</ul>
</section>
{% endif %}
{% endfor %}
<footer class="tw-mt-4">
<a class="tw-button tw-w-auto tw-py-2 tw-text-base tw-bg-green-600 hocus:tw-bg-pink-600" href="/sponsors">See all sponsors</a>
</footer>
<footer class="tw-mt-4">
<a class="tw-button tw-w-auto tw-py-2 tw-text-base tw-bg-green-600 hocus:tw-bg-pink-600" href="/sponsors">See all sponsors</a>
</footer>
</section>

View file

@ -3,29 +3,29 @@ layout: page
title: Sponsors
---
<div>
<p>DrupalCamp Bristol would like to say a massive <strong>THANK YOU!</strong> to all of our incredible sponsors. Without your support, this event would never have been possible.</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>
<p>DrupalCamp Bristol would like to say a massive <strong>THANK YOU!</strong> to all of our incredible sponsors. Without your support, this event would never have been possible.</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>
{% for level in site.sponsorship_levels %}
{% set sponsors = getSponsors(site.sponsors, level) %}
{% if sponsors %}
<section class="tw-block tw-mb-12">
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
{% set sponsors = getSponsors(site.sponsors, level) %}
{% if sponsors %}
<section class="tw-block tw-mb-12">
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
<div class="{{ level == 'gold' ? '' : 'tw-flex tw-flex-wrap tw--mx-2' }}">
{% for sponsor in sponsors %}
<article class="{{ level == 'gold' ? 'tw-w-full' : 'tw-w-1/2 md:tw-w-1/4 lg:tw-w-1/6 tw-px-2 tw-mb-6' }}">
{% set template = (level == 'gold') ? 'sponsors/full' : 'sponsors/teaser' %}
{% include template with {
description: sponsor.description,
logo: sponsor.logo,
name: sponsor.name,
url: sponsor.url,
} %}
</article>
{% endfor %}
</div>
</section>
{% endif %}
<div class="{{ level == 'gold' ? '' : 'tw-flex tw-flex-wrap tw--mx-2' }}">
{% for sponsor in sponsors %}
<article class="{{ level == 'gold' ? 'tw-w-full' : 'tw-w-1/2 md:tw-w-1/4 lg:tw-w-1/6 tw-px-2 tw-mb-6' }}">
{% set template = (level == 'gold') ? 'sponsors/full' : 'sponsors/teaser' %}
{% include template with {
description: sponsor.description,
logo: sponsor.logo,
name: sponsor.name,
url: sponsor.url,
} %}
</article>
{% endfor %}
</div>
</section>
{% endif %}
{% endfor %}