81 lines
2.8 KiB
Text
81 lines
2.8 KiB
Text
<% content_for :head do %>
|
|
<META NAME="Title" CONTENT="Zeus WPI: Werkgroep informatica van de Universiteit Gent">
|
|
<META NAME="Keywords" CONTENT="zeus wpi, informatica, universiteit gent">
|
|
<META NAME="Description" CONTENT="Studentenvereniging van de informatica aan de Universiteit Gent. Informatie over o.a. Linux (downloads en lessen), programmeren, en internetbeveiliging.">
|
|
<% end %>
|
|
|
|
<div id="homepage">
|
|
<div class="tile is-vertical is-ancestor">
|
|
<%= if studytime? then render '/tiles/blokmap.*'end %>
|
|
<div class="tile">
|
|
<!--top coders -->
|
|
<div class="tile is-parent is-4">
|
|
<div class="tile is-child box ">
|
|
<div class="content">
|
|
<h1 class="has-text-centered">
|
|
<a href="https://zeus.ugent.be/game">
|
|
Top Zeus WPI coders this week
|
|
</a>
|
|
</h1>
|
|
<div id="gamification-coders" >
|
|
<!-- EMPTY -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--next event -->
|
|
<div class="tile is-parent is-4" >
|
|
<%= render '/partials/_tile.*',
|
|
article: upcoming_events[0] || all_events[-1],
|
|
small_text: if upcoming_events[0] then "Upcoming event" else "Past event" end%>
|
|
</div>
|
|
|
|
<!-- latest blogpost -->
|
|
<div class="tile is-4 is-parent">
|
|
<%= render '/partials/_tile.*',
|
|
article: sorted_articles.first,
|
|
small_text: "Latest blogpost",
|
|
htmlclass:"highlighted"%>
|
|
</div>
|
|
</div>
|
|
<div class="tile">
|
|
<div class="tile is-vertical">
|
|
<% all_events.reject { |x| x == upcoming_events[0] }.reverse[0..2].each do |event| %>
|
|
<div class="tile is-parent ">
|
|
<%= render '/partials/_tile.*',
|
|
article: event,
|
|
small_text: upcoming_events.include?(event) ? "Upcoming event" : "Past event",
|
|
htmlclass:"highlighted" %>
|
|
</div>
|
|
<%end%>
|
|
</div>
|
|
<div class="tile is-vertical">
|
|
<% sorted_articles[1..3].each do |post| %>
|
|
<div class="tile is-parent ">
|
|
<%= render '/partials/_tile.*',
|
|
article: post,
|
|
small_text: "Blogpost"%>
|
|
</div>
|
|
<%end%>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%= asset :js, :gamification %>
|
|
<!--
|
|
<%= asset :js, :quote %>
|
|
-->
|
|
<!--
|
|
|
|
<div class="tile is-parent is-2">
|
|
<a class="tile box is-child imgcenter project-tile" href="/projects/#12urenloop">
|
|
<%= asset :img, '12urenloop.png' %>
|
|
</a>
|
|
</div>
|
|
<div class="tile is-parent is-2">
|
|
<a class="tile is-child imgcenter box hydra-tile" href="/projects/#hydra">
|
|
<%= asset :img, 'hydra-logo.svg' %>
|
|
</a>
|
|
</div>
|
|
-->
|