Added dummy sponsoring members
This commit is contained in:
parent
6956c38085
commit
224f9bbf3f
4 changed files with 74 additions and 0 deletions
50
content/about/sponsoring_members.erb
Normal file
50
content/about/sponsoring_members.erb
Normal file
|
@ -0,0 +1,50 @@
|
|||
---
|
||||
narrow_page: true
|
||||
---
|
||||
<%= render '/partials/_about_sub_navbar.*', selected: 'sponsoring_members' %>
|
||||
<h1 class='title is-1 has-text-centered'>Sponserende Leden</h1>
|
||||
|
||||
<div id='sponsoring_members' class="content">
|
||||
<% current_sponsoring_members.each do |member| %>
|
||||
<%# stolen from /project :P %>
|
||||
<div id="<%= member[:nickname] %>" class="content project">
|
||||
<article class="columns is-mobile">
|
||||
<div class="column is-gapless is-narrow logo-wrapper">
|
||||
<% if member[:photo] %>
|
||||
<div class="logo">
|
||||
<img src="<%=member[:photo]%>">
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="logo" style="background-color: #ff7f00">
|
||||
<div class="logo-initial has-text-centered"> <%= member[:name].chars.first %> </div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="column">
|
||||
<span style="margin-bottom:0" class="title"><%= member[:name] %></span> <span class="subtitle"> (<%= member[:nickname] %>) </span>
|
||||
<div><i> - <%= member[:quote] %> </i></div>
|
||||
<blockquote style="margin-top: 0.5em"> <%= member[:description] %> </blockquote>
|
||||
<div class="columns">
|
||||
<% if member[:github] %>
|
||||
<a style="padding: 5px" class="social-icon" href="https://github.com/<%= member[:github] %>" target="_blank">
|
||||
<span class="icon">
|
||||
<%= fa :github, {:size => "2x"} %>
|
||||
</span>
|
||||
</a>
|
||||
<% end %>
|
||||
<% if member[:twitter] %>
|
||||
<a style="padding: 5px" class="social-icon" href="https://twitter.com/<%= member[:twitter] %>" target="_blank">
|
||||
<span class="icon">
|
||||
<%= fa :twitter, {:size => "2x"} %>
|
||||
</span>
|
||||
</a>
|
||||
<% end %>
|
||||
<% if member[:blog] %>
|
||||
<a style="padding: 5px" href="<%= member[:blog] %>"> <%= member[:blog] %> </a>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
15
data/supporting_members.yaml
Normal file
15
data/supporting_members.yaml
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
18-19:
|
||||
- name: Sponsorend Lid
|
||||
nickname: spons_01
|
||||
photo: https://zinc.zeus.gent/
|
||||
quote: Lorem Ipsum enzovoort
|
||||
description: Ik doe dingen
|
||||
twitter: zeuswpi
|
||||
blog: https://example.com
|
||||
github: zeuswpi
|
||||
- name: Persoon 2
|
||||
nickname: username
|
||||
quote: Ik wil ook een quote!
|
||||
description: Ik doe ook dingen maar heb geen twitter of github, ook geen blog
|
||||
|
|
@ -5,5 +5,6 @@
|
|||
<li class="<%= 'is-active' if @selected == 'statuten'%>"><a href="/about/statuten">Statuten</a></li>
|
||||
<li class="<%= 'is-active' if @selected == 'historiek'%>"><a href="/about/historiek">Historiek</a></li>
|
||||
<li class="<%= 'is-active' if @selected == 'verslagen'%>"><a href="/about/verslagen">Verslagen</a></li>
|
||||
<li class="<%= 'is-active' if @selected == 'sponsoring_members'%>"><a href="/about/sponsoring_members">Sponserende Leden</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -6,4 +6,12 @@ module AboutHelper
|
|||
def current_bestuur
|
||||
bestuur_of(@config[:academic_year].to_sym)
|
||||
end
|
||||
|
||||
def sponsoring_members_of(year)
|
||||
data_from(:supporting_members)[year]
|
||||
end
|
||||
|
||||
def current_sponsoring_members
|
||||
sponsoring_members_of(@config[:academic_year].to_sym)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue