improvements to lan party page and others in general
This commit is contained in:
parent
d0033e1f93
commit
b0e94d4768
13 changed files with 41 additions and 24 deletions
1
Gemfile
1
Gemfile
|
@ -22,6 +22,7 @@ gem 'autoprefixer-rails'
|
||||||
group :development do
|
group :development do
|
||||||
gem 'adsf'
|
gem 'adsf'
|
||||||
gem 'highline'
|
gem 'highline'
|
||||||
|
gem 'terminal-notifier-guard'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :nanoc do
|
group :nanoc do
|
||||||
|
|
|
@ -70,6 +70,7 @@ GEM
|
||||||
sass (3.4.22)
|
sass (3.4.22)
|
||||||
shellany (0.0.1)
|
shellany (0.0.1)
|
||||||
slop (3.6.0)
|
slop (3.6.0)
|
||||||
|
terminal-notifier-guard (1.7.0)
|
||||||
thor (0.19.1)
|
thor (0.19.1)
|
||||||
w3c_validators (1.2)
|
w3c_validators (1.2)
|
||||||
json
|
json
|
||||||
|
@ -90,6 +91,7 @@ DEPENDENCIES
|
||||||
nanoc (~> 4.3.3)
|
nanoc (~> 4.3.3)
|
||||||
nokogiri
|
nokogiri
|
||||||
sass
|
sass
|
||||||
|
terminal-notifier-guard
|
||||||
w3c_validators
|
w3c_validators
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
|
|
4
Rules
4
Rules
|
@ -33,7 +33,7 @@ preprocess do
|
||||||
academic_years.each do |year|
|
academic_years.each do |year|
|
||||||
@items.create(
|
@items.create(
|
||||||
'',
|
'',
|
||||||
{ academic_year: year, title: "Blog" },
|
{ academic_year: year, title: 'Blog' },
|
||||||
"/blog/#{year}-#{year + 1}.html",
|
"/blog/#{year}-#{year + 1}.html",
|
||||||
binary: false
|
binary: false
|
||||||
)
|
)
|
||||||
|
@ -45,7 +45,7 @@ preprocess do
|
||||||
)
|
)
|
||||||
|
|
||||||
all_events.each do |event|
|
all_events.each do |event|
|
||||||
event[:time] = Date.parse(event[:time])
|
event[:time] = DateTime.parse(event[:time])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -23,3 +23,13 @@
|
||||||
.event-attributes {
|
.event-attributes {
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.event-social-icons {
|
||||||
|
margin-left: 10px;
|
||||||
|
|
||||||
|
.fa {
|
||||||
|
margin-right: 5px;
|
||||||
|
font-size: 0.60em;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
.fa-ul {
|
|
||||||
list-style: none !important;
|
|
||||||
|
|
||||||
.fa {
|
|
||||||
font-size: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.has-text-justified {
|
.has-text-justified {
|
||||||
text-align: justify;
|
text-align: justify;
|
||||||
}
|
}
|
||||||
|
@ -65,9 +57,8 @@ main.section {
|
||||||
|
|
||||||
footer.footer {
|
footer.footer {
|
||||||
padding-bottom: 40px;
|
padding-bottom: 40px;
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
font-size: inherit;
|
|
||||||
text-align: inherit;
|
|
||||||
vertical-align: inherit;
|
vertical-align: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,10 +4,11 @@ image: //i.imgur.com/sQPA5m3.png
|
||||||
banner: //imgur.com/gVXvesA.png
|
banner: //imgur.com/gVXvesA.png
|
||||||
description: Zeus' vijfde LAN-Party
|
description: Zeus' vijfde LAN-Party
|
||||||
created_at: 13-09-2016
|
created_at: 13-09-2016
|
||||||
time: 04-11-2016
|
time: 04-11-2016 16:00
|
||||||
location: Therminal, Hoveniersberg 24 9000 Gent
|
location: Therminal, Hoveniersberg 24 9000 Gent
|
||||||
locationlink: Therminal,Ghent Belgium
|
locationlink: Therminal,Ghent Belgium
|
||||||
description: Zeus' vijfde LAN-Party
|
description: Zeus' vijfde LAN-Party
|
||||||
|
facebook: https://www.facebook.com/events/299820833699196/
|
||||||
---
|
---
|
||||||
|
|
||||||
# It's that time of year again
|
# It's that time of year again
|
||||||
|
@ -16,12 +17,12 @@ Je leest het goed, op **4 november** vindt onze vijfde editie van onze jaarlijks
|
||||||
|
|
||||||
Vanaf **16:00** kunnen jullie elkaars Nexus vernietigen in League of Legends, een Ancient ten val brengen in Dota 2, bommen ontmantelen in Counter Strike: Global Offensive, op ontzagwekkende snelheden door de maps van Trackmania rijden, en nog veel, veel meer.
|
Vanaf **16:00** kunnen jullie elkaars Nexus vernietigen in League of Legends, een Ancient ten val brengen in Dota 2, bommen ontmantelen in Counter Strike: Global Offensive, op ontzagwekkende snelheden door de maps van Trackmania rijden, en nog veel, veel meer.
|
||||||
|
|
||||||
# Inschrijven is verplicht!
|
# Schrijf je in!
|
||||||
|
|
||||||
Door je in te schrijven krijgen wij een beter beeld van hoeveel volk we kunnen verwachten, wat we allemaal moeten voorzien, en welke competities we kunnen organiseren. **[Klik hier om je in te schrijven.](https://goo.gl/forms/XwHhYB4NkOO2GDoE3)**
|
Door je in te schrijven krijgen wij een beter beeld van hoeveel volk we kunnen verwachten, wat we allemaal moeten voorzien, en welke competities we kunnen organiseren. **[Klik hier om je in te schrijven.](https://goo.gl/forms/XwHhYB4NkOO2GDoE3)**
|
||||||
|
|
||||||
# Praktisch
|
# Praktisch
|
||||||
|
|
||||||
De deuren openen om 16:00. We vragen €2 inkom die gebruikt wordt voor de organisatie van het evenement, alsook prijzengeld. Zeus doelt niet op winst met "Geeks, Attack!".
|
De deuren openen om 16:00. We vragen €2 inkom, die gebruikt zal worden om de prijzenpot van onze competities aan te dikken.
|
||||||
|
|
||||||
Uit ervaring weten we dat het soms wat kouder kan worden in de Therminal rondom die tijd, dus draag zeker een **trui** of iets dergelijks! We doen echter ons best om de verwarming in orde te krijgen.
|
Uit ervaring weten we dat het soms wat kouder kan worden in de Therminal rondom die tijd, dus draag zeker een **trui** of iets dergelijks! We doen echter ons best om de verwarming in orde te krijgen.
|
||||||
|
|
|
@ -3,7 +3,7 @@ title: Bezoek datacenter
|
||||||
image: https://emergingtechblog.emc.com/wp-content/uploads/2015/10/AdobeStock_86289688.jpeg
|
image: https://emergingtechblog.emc.com/wp-content/uploads/2015/10/AdobeStock_86289688.jpeg
|
||||||
description: Zeus bezoekt het datacenter en de supercomputer in S10!
|
description: Zeus bezoekt het datacenter en de supercomputer in S10!
|
||||||
created_at: 3-10-2016
|
created_at: 3-10-2016
|
||||||
time: 10-10-2016
|
time: 10-10-2016 17:45
|
||||||
location: Datacenter UGent, S10, Sterre
|
location: Datacenter UGent, S10, Sterre
|
||||||
locationlink: 51.023650, 3.712018
|
locationlink: 51.023650, 3.712018
|
||||||
---
|
---
|
||||||
|
|
|
@ -3,7 +3,7 @@ title: Linux Install Party
|
||||||
image: //scontent-bru2-1.xx.fbcdn.net/t31.0-8/s960x960/14435421_1323382324339471_2958587023924328526_o.jpg
|
image: //scontent-bru2-1.xx.fbcdn.net/t31.0-8/s960x960/14435421_1323382324339471_2958587023924328526_o.jpg
|
||||||
description: Hulp nodig met het installeren van Linux op je laptop? Zeus helpt je graag!
|
description: Hulp nodig met het installeren van Linux op je laptop? Zeus helpt je graag!
|
||||||
created_at: 3-10-2016
|
created_at: 3-10-2016
|
||||||
time: 5-10-2016
|
time: 5-10-2016 17:00
|
||||||
location: Zeus kelder, S9
|
location: Zeus kelder, S9
|
||||||
locationlink: Sterre,Ghent Belgium
|
locationlink: Sterre,Ghent Belgium
|
||||||
---
|
---
|
||||||
|
|
|
@ -8,9 +8,6 @@
|
||||||
Zeus WPI | <%= item[:title] || 'Werkgroep Informatica van de Universiteit Gent' %>
|
Zeus WPI | <%= item[:title] || 'Werkgroep Informatica van de Universiteit Gent' %>
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
<!-- Font Awesome -->
|
|
||||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
|
|
||||||
|
|
||||||
<link rel="icon" href="/assets/images/favicon32.png" type="image/x-icon" />
|
<link rel="icon" href="/assets/images/favicon32.png" type="image/x-icon" />
|
||||||
|
|
||||||
<script src="https://code.jquery.com/jquery-3.0.0.min.js" charset="utf-8"></script>
|
<script src="https://code.jquery.com/jquery-3.0.0.min.js" charset="utf-8"></script>
|
||||||
|
@ -40,6 +37,9 @@
|
||||||
|
|
||||||
<%= asset :css, :main %>
|
<%= asset :css, :main %>
|
||||||
|
|
||||||
|
<!-- Font Awesome -->
|
||||||
|
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
|
||||||
|
|
||||||
<%= content_for(@item, :head) %>
|
<%= content_for(@item, :head) %>
|
||||||
</head>
|
</head>
|
||||||
<body class="site">
|
<body class="site">
|
||||||
|
|
|
@ -21,13 +21,23 @@
|
||||||
<b>
|
<b>
|
||||||
<%= item[:title] %>
|
<%= item[:title] %>
|
||||||
</b>
|
</b>
|
||||||
|
<span class="event-social-icons">
|
||||||
|
<% if item[:facebook] %>
|
||||||
|
<a href="<%= item[:facebook] %>">
|
||||||
|
<%= fa :facebook %>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
|
<a href="<%= item.path rep: :ical %>">
|
||||||
|
<%= fa :calendar %>
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="subtitle is-3">
|
<p class="subtitle is-3">
|
||||||
<%= item[:description] %>
|
<%= item[:description] %>
|
||||||
</p>
|
</p>
|
||||||
<p class="subtitle is-3">
|
<p class="subtitle is-3">
|
||||||
<ul class="fa-ul event-attributes">
|
<ul class="fa-ul event-attributes">
|
||||||
<li><%= fa 'clock-o', li: true %><%= item[:time].strftime '%A %d %B %Y' %></li>
|
<li><%= fa 'clock-o', li: true %><%= item[:time].strftime '%A %d %B %Y %H:%M' %></li>
|
||||||
<li><%= fa 'map-marker', li: true %><%= item[:location] %></li>
|
<li><%= fa 'map-marker', li: true %><%= item[:location] %></li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content has-text-centered">
|
<div class="content has-text-centered">
|
||||||
<p>
|
<p>
|
||||||
Made with <%= fa :heart, inline: true %> by Zeus WPI
|
Made with <%= fa :heart %> by Zeus WPI
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://github.com/ZeusWPI/zeus.ugent.be">
|
<a href="https://github.com/ZeusWPI/zeus.ugent.be">
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
module FontAwesomeHelper
|
module FontAwesomeHelper
|
||||||
def fa(icon, size: nil, li: false, inline: false)
|
def fa(icon, size: nil, li: false, stack: nil, inverse: false)
|
||||||
classes = ['fa', "fa-#{icon}"]
|
classes = ['fa', "fa-#{icon}"]
|
||||||
|
|
||||||
classes << "fa-#{size}" if size
|
classes << "fa-#{size}" if size
|
||||||
classes << 'fa-li' if li
|
classes << 'fa-li' if li
|
||||||
|
classes << "fa-stack-#{stack}" if stack
|
||||||
|
classes << 'fa-inverse' if inverse
|
||||||
|
|
||||||
"<i class='#{classes.join(' ')}'></i>"
|
"<i class='#{classes.join(' ')}'></i>"
|
||||||
end
|
end
|
||||||
|
|
|
@ -12,7 +12,7 @@ module IcalHelper
|
||||||
def event_for(item)
|
def event_for(item)
|
||||||
event = Icalendar::Event.new
|
event = Icalendar::Event.new
|
||||||
event.dtstart = item[:time]
|
event.dtstart = item[:time]
|
||||||
event.summary = 'A great event!'
|
event.summary = item[:title]
|
||||||
|
|
||||||
event
|
event
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue