Skip to content

Commit 0985235

Browse files
committed
Fix include spkears-slide.html
1 parent 22b9860 commit 0985235

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- Speakers Section -->
2+
{% include speakers-slider.html
3+
section-id="invited-speakers"
4+
section-title="Invited Speakers"
5+
speakers-data=site.data.invited-speakers
6+
more-is-coming=false
7+
%}

_includes/speakers-slider.html

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{% comment %}
2+
Expects following parameters:
3+
section-id
4+
section-title
5+
speakers-data (with name, title, image, bio)
6+
more-is-coming
7+
{% endcomment %}
8+
9+
<section id="{{ include.section-id }}" class="container content-section">
10+
<div class="row">
11+
<div class="col-lg-12">
12+
<h2>/ {{ include.section-title }}</h2>
13+
</div>
14+
</div>
15+
<div class="row">
16+
<div class="col-lg-12 slider-container">
17+
<div class="slider-content">
18+
{% for speaker in include.speakers-data %}
19+
<div class="row slider-item-content" data-index="{{ forloop.index0 }}">
20+
<!-- Speaker details will be displayed here when a speaker is selected -->
21+
<div class="speaker-details-image col-md-4">
22+
<img src="{{ speaker.image }}" alt="{{ speaker.name }} photo" class="person-photo width-100 width-max-350px">
23+
</div>
24+
<div class="speaker-details-text col-md-8">
25+
<h2 class="emph-i">{{ speaker.name }}</h2>
26+
<h3>{{ speaker.title }}</h3>
27+
<p style="font-size: 16px;">{{ speaker.bio }}</p>
28+
</div>
29+
</div>
30+
{% endfor %}
31+
</div>
32+
33+
<div class="slider-timer-wrapper">
34+
<div class="slider-timer"></div>
35+
</div>
36+
37+
<div class="slider-tabs">
38+
{% for speaker in include.speakers-data %}
39+
<a class="slider-item page-scroll person item-col-4" data-index="{{ forloop.index0 }}" href="#{{ include.section-id }}">
40+
<div class="person-photo-wrapper speaker-photo" style="width: 75px;">
41+
<div>
42+
<img src="{{ speaker.image | relative_url }}" alt="{{ speaker.name }} photo">
43+
</div>
44+
</div>
45+
<div class="center-verticaly" style="max-height: 92px;">
46+
<div>
47+
<span class="speaker-name">
48+
{{ speaker.name }}
49+
</span></br>
50+
<span class="speaker-title">
51+
{{ speaker.title }}
52+
</span>
53+
</div>
54+
</div>
55+
</a>
56+
{% endfor %}
57+
</div>
58+
</div>
59+
60+
{% if include.more-is-coming %}
61+
<div class="col-lg-12 text-center" style="margin-top: 2em;">
62+
<h3>and more is coming!</h3>
63+
</div>
64+
{% endif %}
65+
</div>
66+
</section>

0 commit comments

Comments
 (0)