Add option for custom header text background color

This commit is contained in:
mcbloch 2020-10-11 05:31:28 +02:00
parent 02d1c53388
commit c9f25268cf
3 changed files with 7 additions and 1 deletions

View file

@ -8,6 +8,7 @@ location: 'Leslokaal 1.1, Gebouw S9, Campus Sterre'
locationlink: $s9
#facebook: //www.facebook.com/events/1483447151684405/
banner: //zeus.ugent.be/zeuswpi/Itsb0YbN.png
header_text_background: true
---

View file

@ -9,6 +9,8 @@ locationlink: $s9
#facebook: //www.facebook.com/events/1483447151684405/
banner: //zeus.ugent.be/zeuswpi/7k6hvPJw.webp
image: //zeus.ugent.be/zeuswpi/a28GvLuO.png
header_text_background: true
header_text_background_color: 'rgba(80, 50, 80, 0.75)'
---
Geen betere manier om Java meer te appreciëren dan kennis te maken met een esoterische programmeertaal. Ondertussen leer je Zeus WPI kennen, en kunnen we samen vloeken op de meest verschrikkelijke uitvindingen in de geschiedenis van de informatica. Geen voorkennis programmeren vereist (het is misschien zelfs beter).

View file

@ -37,7 +37,10 @@
<div class="container">
<div class="columns">
<div class="column has-vertical-center">
<div class="header-text <%= item[:header_text_background] ? 'light-background' : '' %>">
<div class="header-text <%= item[:header_text_background] and !item[:header_text_background_color] ? 'light-background' : '' %>"
<% if item[:header_text_background_color] %>
style="background-color: <%= item[:header_text_background_color] %>"
<% end %>>
<p class="title is-1-responsive event-title">
<b>
<%= item[:title] %>