durfdoen-2.0/layouts/verenigingen.erb

32 lines
645 B
Text
Raw Normal View History

<div class="flex-horz">
<div class="horz-child">
<h1> Thema's </h1>
<ul>
<% for thema in themas %>
<%= image_tag thema %>
<li> <%= link_to(thema[:naam], thema) %> </li>
<% end %>
</ul>
</div>
<div class="horz-child">
<h1> Konventen en projecten </h1>
<ul>
<% for item in konventen_and_projecten %>
<%= image_tag item %>
<li> <%= link_to(item[:naam], item) %> </li>
<% end %>
</ul>
</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>