2020-09-10 23:41:07 +02:00
|
|
|
<div class="split-2">
|
|
|
|
<div class="split-2-1">
|
|
|
|
<h1 class="split-title"> Thema's </h1>
|
|
|
|
<div class="tile-grid">
|
2020-08-29 00:09:04 +02:00
|
|
|
<% for thema in themas %>
|
2020-09-12 14:12:13 +02:00
|
|
|
<div class="tile clickable tile--medium tile--blue" onclick="window.location.href = '<%= thema.path %>'">
|
|
|
|
<div class="tile__image tile__image--svg">
|
|
|
|
<%= @items["/assets/themas_icon/"+thema[:naam]+".svg"].compiled_content %>
|
|
|
|
</div>
|
2020-09-10 23:41:07 +02:00
|
|
|
<p class="tile__title tile__title--medium"> <%= thema[:naam] %> </p>
|
|
|
|
</div>
|
2020-09-10 22:52:20 +02:00
|
|
|
<% end %>
|
2020-09-10 23:41:07 +02:00
|
|
|
</div>
|
2020-09-10 22:52:20 +02:00
|
|
|
</div>
|
2020-09-10 23:41:07 +02:00
|
|
|
<div class="split-2-2">
|
2020-09-13 12:28:14 +02:00
|
|
|
<h1 class="split-title"> Konventen </h1>
|
2020-09-12 16:48:24 +02:00
|
|
|
<div class="tile-grid">
|
2020-09-10 21:56:34 +02:00
|
|
|
<% for item in konventen %>
|
2020-09-10 22:52:20 +02:00
|
|
|
<div class="tile clickable tile--medium" onclick="window.location.href = '<%= item.path %>'">
|
2020-09-10 21:56:34 +02:00
|
|
|
<img class="tile__image" src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=medium" alt="<%= item[:naam] %>">
|
2020-09-10 22:52:20 +02:00
|
|
|
<p class="tile__title tile__title--medium"> <%= item[:titel] || item[:naam] %> </p>
|
2020-09-10 21:56:34 +02:00
|
|
|
</div>
|
2020-08-29 00:09:04 +02:00
|
|
|
<% end %>
|
2020-09-10 21:56:34 +02:00
|
|
|
</div>
|
2020-09-10 22:52:20 +02:00
|
|
|
</div>
|
2020-08-29 00:09:04 +02:00
|
|
|
</div>
|
2020-02-28 01:44:17 +01:00
|
|
|
|
2020-08-29 00:09:04 +02:00
|
|
|
<style>
|
|
|
|
.flex-horz {
|
|
|
|
display: flex; /* or inline-flex */
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
.horz-child {
|
|
|
|
flex-basis: auto;
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
</style>
|