Add option to disable gradients, use lighter version of internet freedom

talk. Some other minor changes.
This commit is contained in:
Rien Maertens 2017-11-09 23:21:01 +01:00
parent 85b098de90
commit aa2ceefe03
No known key found for this signature in database
GPG key ID: 943CAB70C511D23C
2 changed files with 11 additions and 5 deletions

View file

@ -1,14 +1,15 @@
--- ---
title: 'The Web We Take for Granted' title: 'The Web We Take for Granted'
description: Two experts come to talk about our internet freedom and how it is in immediate danger. description: Two experts discuss how our online freedom is in immediate danger.
created_at: 19-10-2017 created_at: 19-10-2017
time: '23-11-2017 19:30' time: '23-11-2017 19:30'
end: '22-11-2017 21:00' end: '23-11-2017 21:00'
location: 'Auditorium D, Jozef Plateaustraat 22, 9000 Gent' location: 'Auditorium D, Jozef Plateaustraat 22, 9000 Gent'
locationlink: 'Faculteit Ingenieurswetenschappen en Architectuur' locationlink: 'Faculteit Ingenieurswetenschappen en Architectuur'
facebook: 'https://www.facebook.com/events/313118845828839/' facebook: 'https://www.facebook.com/events/313118845828839/'
color: '#282825' color: '#aea485'
image: 'https://zeus.ugent.be/zeuswpi/K4DI_hEf.png' gradient: false
image: 'https://zeus.ugent.be/zeuswpi/YkUgUTuQ.png'
# image: 'https://zeus.ugent.be/zeuswpi/jXnkucIH.png' #(inverted) # image: 'https://zeus.ugent.be/zeuswpi/jXnkucIH.png' #(inverted)
# banner: 'https://zeus.ugent.be/zeuswpi/JLMprrIc.png' # banner: 'https://zeus.ugent.be/zeuswpi/JLMprrIc.png'
--- ---

View file

@ -17,7 +17,12 @@
<% if item[:banner] %> <% if item[:banner] %>
<section class="hero is-medium is-primary is-bold" style="background-image:url('<%= item[:banner] %>');background-position:center;"> <section class="hero is-medium is-primary is-bold" style="background-image:url('<%= item[:banner] %>');background-position:center;">
<% elsif item[:color] %> <% elsif item[:color] %>
<section class="hero is-medium is-primary is-bold" style="background-image: linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60)); background-color:<%= item[:color] %>;"> <% gradient = if item[:gradient].nil? || item[:gradient]
'linear-gradient(to top right,rgba(255,255,255,0),rgba(0,0,0,.60))'
else
'none'
end %>
<section class="hero is-medium is-primary is-bold" style="background-image: <%= gradient %>; background-color:<%= item[:color] %>;">
<% else %> <% else %>
<section class="hero is-medium is-primary is-bold"> <section class="hero is-medium is-primary is-bold">
<% end %> <% end %>