make pretty links actual links

This commit is contained in:
Ilion Beyst 2020-09-18 01:16:13 +02:00
parent ce0b0e8a38
commit 53a405039d
2 changed files with 7 additions and 2 deletions

View file

@ -497,6 +497,11 @@ h2 {
height: 100%;
}
.link a {
display: block;
text-decoration: none;
}
.fancy_link_container {
display: grid;
grid-template-columns: 50% 50%;

View file

@ -1,4 +1,4 @@
<div class="link" onclick="window.location.href='<%= item.path %>'">
<a class="link" href="<%=item.path%>">
<div class="link__img">
<img src="https://dsa.ugent.be/api/verenigingen/<%= abbreviation(item) %>/logo?size=small" alt="<%= item[:naam] %>">
</div>
@ -10,4 +10,4 @@
<%= text_segment(item.compiled_content) %>
</p>
</div>
</div>
</a>