durfdoen-2.0/layouts/verenigingen.erb

32 lines
722 B
Text
Raw Normal View History

<div class="flex-horz">
<div class="horz-child">
<h1> Thema's </h1>
<ul>
<% for thema in themas %>
<img src="<%= image_url(thema) %>" alt="<%= thema[:naam] %>">
<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 %>
<img src="<%= image_url(item) %>" alt="<%= item[:naam] %>">
<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>