start things

This commit is contained in:
ajuvercr 2020-09-10 22:52:20 +02:00
parent 9ccc8a224e
commit 09432cbfc9
2 changed files with 23 additions and 8 deletions

View file

@ -331,6 +331,16 @@ fieldset p label input {
position: relative;
}
.tile--small {
min-width: 50px;
max-width: 100px;
}
.tile--medium {
min-width: 150px;
max-width: 200px;
}
.tile::before {
content: "";
float: left;
@ -363,6 +373,10 @@ fieldset p label input {
padding: 5px;
}
.tile__title--medium {
font-size: 1.2rem;
}
.clickable {
transform: scale(1);
transition: ease-in 0.2s;

View file

@ -1,22 +1,23 @@
<div>
<%# <div class="horz-child">
<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> %>
<li> <%= thema[:naam] %> </li>
<% end %>
</ul>
</div>
<div>
<h1> Konventen en projecten </h1>
<div class="tile-grid">
<% for item in konventen %>
<div class="tile clickable" onclick="window.location.href = '<%= item.path %>'">
<div class="tile clickable tile--medium" onclick="window.location.href = '<%= item.path %>'">
<img class="tile__image" src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=medium" alt="<%= item[:naam] %>">
<p class="tile__title"> <%= item[:titel] || item[:naam] %> </p>
<p class="tile__title tile__title--medium"> <%= item[:titel] || item[:naam] %> </p>
</div>
<% end %>
</div>
</div>
</div>
<style>