Skip to content

Commit 957c7df

Browse files
committed
added a collapsible component for the alumni section
1 parent 63c1f26 commit 957c7df

File tree

3 files changed

+46
-30
lines changed

3 files changed

+46
-30
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
33
gem 'github-pages', group: :jekyll_plugins
44
gem 'rake'
55
gem 'html-proofer'
6-
6+
gem 'wdm', '>= 0.1.0'
77
gem "webrick", "~> 1.7"

_includes/alumni.html

+44-28
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,50 @@
11
<!-- Begin Team List-->
2-
<section id="team" class="team">
3-
<div class="content-wrapper">
4-
<h4 class="text-left animated hiding appear-animation-trigger" data-animation="fadeInUp" data-delay="0">Alumni</h4>
5-
{% for hierarchy in site.data.alumni %}
6-
<div class="col-lg-10 col-lg-offset-1 text-center">
7-
<h4 class="text-left animated hiding appear-animation-trigger" data-animation="fadeInUp" data-delay="0">Batch of {{ hierarchy.title }}</h4>
8-
{% for teamMember in hierarchy.team %}
9-
<div class="effect-wrapper col-md-3 col-sm-4 col-xs-12 cols-centered appear-animation">
10-
<div class="zoe-effect" data-toggle="modal" data-target="#speakerDetail-{{ teamMember.id }}">
11-
<figure class="waves-effect waves-block waves-light" style="background-image: url({{ site.baseurl | append: '/img/team/alumni/' | append: hierarchy.title | append: '/' | append: teamMember.thumbnailUrl }})">
12-
<div class="overlay solid-overlay"></div>
13-
<figcaption>
14-
<div class="col-md-8 col-xs-8 text-left">
15-
<h2 class="name">{{ teamMember.name }} <span>{{ teamMember.surname }}</span></h2>
16-
<div class="clearfix"></div>
2+
<div class="accordion" id="accordionExample">
3+
<div class="card">
4+
<div class="card-header" id="headingOne">
5+
<h2 class="mb-0">
6+
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
7+
<h4>Collapsible Group Item #1</h4>
8+
</button>
9+
</h2>
10+
</div>
11+
12+
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
13+
<div class="card-body">
14+
<section id="team" class="team">
15+
<div class="content-wrapper">
16+
<h4 class="text-left animated hiding appear-animation-trigger" data-animation="fadeInUp" data-delay="0">Alumni</h4>
17+
{% for hierarchy in site.data.alumni %}
18+
<div class="col-lg-10 col-lg-offset-1 text-center">
19+
<h4 class="text-left animated hiding appear-animation-trigger" data-animation="fadeInUp" data-delay="0">Batch of {{ hierarchy.title }}</h4>
20+
{% for teamMember in hierarchy.team %}
21+
<div class="effect-wrapper col-md-3 col-sm-4 col-xs-12 cols-centered appear-animation">
22+
<div class="zoe-effect" data-toggle="modal" data-target="#speakerDetail-{{ teamMember.id }}">
23+
<figure class="waves-effect waves-block waves-light" style="background-image: url({{ site.baseurl | append: '/img/team/alumni/' | append: hierarchy.title | append: '/' | append: teamMember.thumbnailUrl }})">
24+
<div class="overlay solid-overlay"></div>
25+
<figcaption>
26+
<div class="col-md-8 col-xs-8 text-left">
27+
<h2 class="name">{{ teamMember.name }} <span>{{ teamMember.surname }}</span></h2>
28+
<div class="clearfix"></div>
29+
</div>
30+
{% for social in teamMember.social %}
31+
<a href="{{ social["link"] }}" target="_blank">
32+
<svg class="icn icon-{{ social["name"] }}" viewBox="0 0 30 32">
33+
<use xlink:href="{{ site.baseurl }}/img/sprites/sprites.min.svg#icon-{{ social["name"] }}"></use>
34+
</svg>
35+
</a>
36+
{% endfor %}
37+
</figcaption>
38+
</figure>
1739
</div>
18-
{% for social in teamMember.social %}
19-
<a href="{{ social["link"] }}" target="_blank">
20-
<svg class="icn icon-{{ social["name"] }}" viewBox="0 0 30 32">
21-
<use xlink:href="{{ site.baseurl }}/img/sprites/sprites.min.svg#icon-{{ social["name"] }}"></use>
22-
</svg>
23-
</a>
24-
{% endfor %}
25-
</figcaption>
26-
</figure>
40+
</div>
41+
{% endfor %}
42+
</div>
43+
{% endfor %}
2744
</div>
28-
</div>
29-
{% endfor %}
45+
</section>
3046
</div>
31-
{% endfor %}
47+
</div>
3248
</div>
33-
</section>
49+
</div>
3450
<!-- End Team List -->

about-us.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111

1212
{% include team.html %}
1313

14-
{% include alumni.html %}
14+
{% include alumni.html %}

0 commit comments

Comments
 (0)