Spaces
This commit is contained in:
parent
fbeec05eb0
commit
9c831641da
|
@ -1,28 +1,28 @@
|
||||||
<section class="tw-text-center tw-max-w-5xl md:tw-w-full tw-mx-auto tw-p-8">
|
<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">
|
<h2 class="tw-font-bold tw-text-6xl">
|
||||||
Our <span class="tw-text-green-600">Sponsors</span>
|
Our <span class="tw-text-green-600">Sponsors</span>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{% for level in sponsorshipLevels %}
|
{% for level in sponsorshipLevels %}
|
||||||
{% set sponsors = getSponsors(sponsorData, level) %}
|
{% set sponsors = getSponsors(sponsorData, level) %}
|
||||||
{% if sponsors %}
|
{% if sponsors %}
|
||||||
<section class="tw-block">
|
<section class="tw-block">
|
||||||
<h3 class="tw-visuallyhidden">{{ level|capitalize }} Sponsors</h3>
|
<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">
|
<ul class="tw-list-reset tw-flex tw-flex-wrap tw-items-center tw-justify-center tw--mx-4">
|
||||||
{% for sponsor in sponsors %}
|
{% 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' }}">
|
<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">
|
<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">
|
<img src="/images/sponsors/{{ sponsor.logo }}" alt="{{ sponsor.name }} logo" class="tw-inline-block tw-max-w-full">
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<footer class="tw-mt-4">
|
<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>
|
<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>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -3,29 +3,29 @@ layout: page
|
||||||
title: Sponsors
|
title: Sponsors
|
||||||
---
|
---
|
||||||
<div>
|
<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>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>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 %}
|
{% 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-12">
|
||||||
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
|
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
|
||||||
|
|
||||||
<div class="{{ level == 'gold' ? '' : 'tw-flex tw-flex-wrap tw--mx-2' }}">
|
<div class="{{ level == 'gold' ? '' : 'tw-flex tw-flex-wrap tw--mx-2' }}">
|
||||||
{% for sponsor in sponsors %}
|
{% 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' }}">
|
<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' %}
|
{% 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 %}
|
||||||
|
|
Loading…
Reference in a new issue