Merge pull request #205 from ZeusWPI/event/techz_talks

Event/techz talks
This commit is contained in:
Rien 2017-11-09 23:25:50 +01:00 committed by GitHub
commit 3e0c6cd77d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 7 deletions

View file

@ -1,16 +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'
# image: 'https://zeus.ugent.be/zeuswpi/jXnkucIH.png' #(inverted)
# banner: 'https://zeus.ugent.be/zeuswpi/JLMprrIc.png'
color: '#aea485'
gradient: false
image: 'https://zeus.ugent.be/zeuswpi/YkUgUTuQ.png'
---
This event is part of the [TeCH TalkZ](<%= @items['/blog/17-18/tech-talkz.md'].path %>), a collaboration between the two student associations Zeus WPI and CenEka.

View file

@ -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 %>