dcbristol-2019-static/source/_layouts/speaker.html.twig

54 lines
1.9 KiB
Twig
Raw Permalink Normal View History

2019-05-03 12:20:34 +00:00
{% extends 'page' %}
2019-05-22 10:56:24 +00:00
{% block title %}{{ page.title }}{% endblock %}
2019-05-03 12:29:40 +00:00
2019-05-03 13:52:51 +00:00
{% block content_wrapper_inner %}
2019-05-03 14:06:40 +00:00
<div class="md:tw-flex tw--mx-4">
2019-05-23 10:28:19 +00:00
{% if page.image or page.links.twitter or page.links.drupalorg %}
2019-05-14 21:58:13 +00:00
<div class="tw-px-4 tw-flex-0 tw-w-32 md:tw-w-48 tw-mb-4">
2019-05-15 23:26:25 +00:00
{% if page.image %}
2019-05-29 18:21:16 +00:00
<div class="tw-mb-4">
<img class="tw-max-w-full tw-block tw-rounded-full tw-overflow-hidden tw-border-4 tw-border-solid tw-border-purple-500" src="/images/speakers/{{ page.image }}" alt="{{ page.name }}">
2019-05-15 23:26:25 +00:00
</div>
{% endif %}
{% if page.links %}
<div class="tw--mb-1">
{% if page.links.drupalorg %}
<div class="tw-pl-6 tw-mr-4 tw-bg-no-repeat tw-bg-left tw-mb-1" style="background-image: url(/themes/dcb2017/images/drop-1.png)">
<a href="https://www.drupal.org/u/{{ page.links.drupalorg }}">{{ page.links.drupalorg }}</a>
</div>
{% endif %}
{% if page.links.twitter %}
<div class="tw-pl-6 tw-mr-4 tw-bg-no-repeat tw-bg-left tw-mb-1" style="background-image: url(/themes/dcb2017/images/twitter-1.png)">
<a href="https://twitter.com/{{ page.links.twitter }}">{{ page.links.twitter }}</a>
</div>
{% endif %}
</div>
{% endif %}
2019-05-03 13:52:51 +00:00
</div>
{% endif %}
<div class="tw-px-4 tw-flex-1">
<div class="markup">
2019-05-14 22:38:06 +00:00
<div class="tw-font-bold tw-text-xl">
{% include 'speaker-role' with { speaker: page } %}
</div>
2019-05-03 13:52:51 +00:00
{% block content %}{% endblock %}
2019-05-15 23:21:57 +00:00
<div class="tw-mt-8 tw-block">
<a class="tw-text-purple-500 hocus:tw-text-pink-600 tw-no-underline hocus:tw-underline" href="/#speakers">View all speakers &rarr;</a>
</div>
2019-05-03 13:52:51 +00:00
</div>
2019-05-14 21:29:49 +00:00
<aside>
2019-05-22 11:19:47 +00:00
{% include 'speaker-session' with {
2019-05-22 20:22:24 +00:00
sessions: sessionsForSpeaker(page, data.sessions),
2019-05-22 11:19:47 +00:00
} %}
2019-05-14 21:29:49 +00:00
</aside>
2019-05-03 13:52:51 +00:00
</div>
</div>
{% endblock %}