Add option to disable gradients, use lighter version of internet freedom
talk. Some other minor changes.
This commit is contained in:
parent
85b098de90
commit
aa2ceefe03
2 changed files with 11 additions and 5 deletions
|
@ -1,14 +1,15 @@
|
|||
---
|
||||
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
|
||||
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'
|
||||
locationlink: 'Faculteit Ingenieurswetenschappen en Architectuur'
|
||||
facebook: 'https://www.facebook.com/events/313118845828839/'
|
||||
color: '#282825'
|
||||
image: 'https://zeus.ugent.be/zeuswpi/K4DI_hEf.png'
|
||||
color: '#aea485'
|
||||
gradient: false
|
||||
image: 'https://zeus.ugent.be/zeuswpi/YkUgUTuQ.png'
|
||||
# image: 'https://zeus.ugent.be/zeuswpi/jXnkucIH.png' #(inverted)
|
||||
# banner: 'https://zeus.ugent.be/zeuswpi/JLMprrIc.png'
|
||||
---
|
||||
|
|
|
@ -17,7 +17,12 @@
|
|||
<% if item[:banner] %>
|
||||
<section class="hero is-medium is-primary is-bold" style="background-image:url('<%= item[:banner] %>');background-position:center;">
|
||||
<% 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 %>
|
||||
<section class="hero is-medium is-primary is-bold">
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in a new issue