first iteration event preview

This commit is contained in:
myncke 2016-08-27 00:36:10 +02:00
parent 57733198e3
commit 5249c1d5fa
3 changed files with 96 additions and 13 deletions

View file

@ -1,3 +1,63 @@
.subevent { .box.event-preview {
margin-left: 20px; border-radius: 0px;
display: flex;
align-items: center;
box-shadow : none;
margin-bottom: 0px;
border-top: 1px solid lighten(gray, 15%);
.image-holder {
border-radius: 50%;
padding: 10px;
border: 1px solid lighten(gray, 30%);
width: 15%;
height: 15%;
}
.image {
border-radius: 50%;
vertical-align: middle;
border: 1px solid gray;
}
.info {
margin: 1.5em;
box-shadow : none;
.title {
font-size: 1.7em;
font-weight: 500;
margin-bottom: 0;
a {
color: darken(gray, 20%);
}
a:hover {
border-bottom: none;
color: #FF7F00;
}
}
.location {
font-size: .9em;
a {
color: lighten(gray, 10%);
}
}
.description {
font-size: 1.7em;
font-weight: 200;
color: #FF7F00;
}
.time {
font-size: 1.6em;
font-weight: 400;
}
.subevent {
margin-left: 20px;
}
}
} }

View file

@ -9,17 +9,39 @@ title: Events
</div> </div>
<% all_events.each do |event| %> <% all_events.each do |event| %>
<div class="box"> <div class="box event-preview">
<a href="<%= relative_path_to(event) %>"> <div class="image-holder">
<%= event[:title] %> <img src="http://placehold.it/150x150" alt="" class="image" />
</a> </div>
<% sub_events(event).each do |sub_event| %>
<div class="subevent"> <div class="box info">
<a href="<%= relative_path_to(sub_event) %>"> <div class="title">
<%= sub_event[:title] %> <a href="<%= relative_path_to(event) %>">
</a> <%= event[:title] %>
</a>
</div>
<div class="location">
<a href="#">
<%= event[:location] %>
</a>
</div>
<div class="description">
<%= event[:description] %>
</div>
<div class="time">
<%= event[:time] %>
</div>
<% sub_events(event).each do |sub_event| %>
<div class="subevent">
<a href="<%= relative_path_to(sub_event) %>">
<%= sub_event[:title] %>
</a>
</div>
<% end %>
</div>
</div> </div>
<% end %>
</div>
<% end %> <% end %>
</div> </div>

View file

@ -4,6 +4,7 @@ banner: https://zeus.ugent.be/wp-content/uploads/2016/02/awkles-768x1007.jpg
created_at: 01-02-2016 created_at: 01-02-2016
time: 23-02-2016 time: 23-02-2016
location: Auditorium A1, Campus Sterre, Gebouw S9 location: Auditorium A1, Campus Sterre, Gebouw S9
description: Dit is een description van het awk event!
--- ---
Op **dinsdag 23 februari 18:00** (na de les Scriptingtalen) in **Auditorium A1** organiseren we een **AWK-les** gegeven door **professor Peter Dawyndt**. Op **dinsdag 23 februari 18:00** (na de les Scriptingtalen) in **Auditorium A1** organiseren we een **AWK-les** gegeven door **professor Peter Dawyndt**.