change upper layout
This commit is contained in:
parent
57a1f53f31
commit
57f6cf9aee
1 changed files with 50 additions and 39 deletions
|
@ -7,7 +7,9 @@
|
|||
<div id="homepage">
|
||||
<div class="tile is-vertical is-ancestor">
|
||||
<%= if studytime? then render '/tiles/blokmap.*'end %>
|
||||
<div class="tile is-parent is-12">
|
||||
<div class="tile">
|
||||
<!--top coders -->
|
||||
<div class="tile is-parent is-4">
|
||||
<div class="tile is-child box highlighted">
|
||||
<div class="content">
|
||||
<h1 class="has-text-centered"><a href="https://zeus.ugent.be/game">Top Zeus WPI coders this week</a></h1>
|
||||
|
@ -17,10 +19,22 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<!--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 %>
|
||||
<%= 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-parent is-4">
|
||||
<div class="tile is-child box centering">
|
||||
<div class="content has-text-centered">
|
||||
|
@ -42,9 +56,6 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="tile">
|
||||
<div class="tile is-4 is-parent">
|
||||
<%= render '/partials/_tile.*', article: sorted_articles.first, small_text: "Latest blogpost",htmlclass:"highlighted"%>
|
||||
</div>
|
||||
<div class="tile is-vertical">
|
||||
<div class="tile is-parent">
|
||||
<%= render '/partials/_tile.*', article: upcoming_events[1] || all_events[-2], small_text: if upcoming_events[1] then "Upcoming event" else "Past event" end %>
|
||||
|
|
Loading…
Reference in a new issue