dcbristol-2019-static/source/_includes/schedule.html.twig

23 lines
1 KiB
Twig
Raw Normal View History

2019-05-21 16:14:40 +00:00
<section id="schedule" class="tw-bg-purple-800 tw-text-white tw-py-16">
2019-05-22 17:11:55 +00:00
<div class="tw-max-w-xl tw-mx-auto tw-px-4 tw-text-center">
<h2 class="tw-text-3xl md:tw-text-4xl">The Schedule</h2>
2019-05-21 16:11:15 +00:00
2019-05-22 17:11:55 +00:00
<ul class="tw-list-reset tw-overflow-hidden">
{% for slot in slots %}
2019-05-23 00:06:46 +00:00
{% set session = sessionInSlot(slot.id, sessions) %}
2019-05-22 17:11:55 +00:00
<li class="tw-pt-4 lg:tw-pt-6 {{ loop.last ?: 'tw-pb-4 lg:tw-pb-6 tw-border-solid tw-border-0 tw-border-b tw-border-purple-400' }}">
<span class="tw-flex tw-items-center tw-justify-between tw--mx-6">
2019-05-23 00:06:46 +00:00
<span class="tw-px-6 tw-text-gray-200 tw-flex-1 tw-text-left">
<span class="tw-block">{{ session.title|default(slot.label)|default('TBA') }}</span>
{% if session.speakers %}
<span class="tw-block tw-mt-1">{{ session.speakers|join(', ') }}</span>
{% endif %}
</span>
2019-05-22 17:11:55 +00:00
<span class="tw-px-6 tw-font-semibold">{{ slot.time }}</span>
</span>
</li>
{% endfor %}
</ul>
</div>
2019-05-21 16:11:15 +00:00
</section>