durfdoen-2.0/layouts/verenigingen.erb

38 lines
1.2 KiB
Text
Raw Normal View History

2020-09-10 23:41:07 +02:00
<div class="split-2">
<div class="split-2-1">
<h2 class="split-title"> Thema's </h2>
2020-09-10 23:41:07 +02:00
<div class="tile-grid">
<% 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">
<h2 class="split-title"> Konventen </h2>
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>
<% end %>
2020-09-10 21:56:34 +02:00
</div>
2020-09-10 22:52:20 +02:00
</div>
</div>
2020-02-28 01:44:17 +01:00
<style>
.flex-horz {
display: flex; /* or inline-flex */
flex-direction: row;
}
.horz-child {
flex-basis: auto;
flex-grow: 1;
}
</style>