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

View file

@ -1,22 +1,23 @@
<div> <div>
<%# <div class="horz-child"> <div class="horz-child">
<h1> Thema's </h1> <h1> Thema's </h1>
<ul> <ul>
<% for thema in themas %> <% for thema in themas %>
<%# <%= image_tag thema %> <li> <%= thema[:naam] %> </li>
<%#<li> <%= link_to(thema[:naam], thema) %> </li> <% end %>
<%# <% end %> </ul>
<%#</ul> </div>
</div> %> <div>
<h1> Konventen en projecten </h1> <h1> Konventen en projecten </h1>
<div class="tile-grid"> <div class="tile-grid">
<% for item in konventen %> <% 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] %>"> <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> </div>
<% end %> <% end %>
</div> </div>
</div>
</div> </div>
<style> <style>