durfdoen-2.0/layouts/verenigingen.erb

40 lines
1.1 KiB
Text
Raw Normal View History

2020-09-10 23:41:07 +02:00
<div class="split-2">
<div class="split-2-1">
2020-09-15 20:46:04 +02:00
<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-15 20:46:04 +02:00
<a class="tile clickable tile--medium" href="<%= thema.path %>">
<div class="tile__image tile__image--svg tile__image--blue">
2020-09-15 20:51:15 +02:00
<%= @items["/assets/themas_icon/"+thema[:identifier]+".svg"].compiled_content %>
2020-09-12 14:12:13 +02:00
</div>
2020-09-10 23:41:07 +02:00
<p class="tile__title tile__title--medium"> <%= thema[:naam] %> </p>
2020-09-15 20:46:04 +02:00
</a>
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-15 20:46:04 +02:00
<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-15 20:46:04 +02:00
<a class="tile clickable tile--medium" href="<%= item.path %>">
<div class="tile__image">
2020-09-18 00:16:35 +02:00
<img src="<%= image_url(item) %>" alt="<%= item[:naam] %>">
2020-09-15 20:46:04 +02:00
</div>
2020-09-10 22:52:20 +02:00
<p class="tile__title tile__title--medium"> <%= item[:titel] || item[:naam] %> </p>
2020-09-15 20:46:04 +02:00
</a>
<% 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>