Add inschrijflink for start of academic year (#275)
* Add inschrijflink for start of academic year * Rely on autoprefixer
This commit is contained in:
parent
75fab28c53
commit
637e5c1ae2
3 changed files with 22 additions and 5 deletions
|
@ -1,3 +1,5 @@
|
|||
@import 'mixins';
|
||||
|
||||
#navbar {
|
||||
align-items: flex-end;
|
||||
margin-bottom: 10px;
|
||||
|
@ -42,10 +44,10 @@
|
|||
}
|
||||
|
||||
@include touch {
|
||||
.navbar-menu {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
.navbar-menu {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar:not(.is-transparent) {
|
||||
|
@ -61,4 +63,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ledenformulier {
|
||||
color: $zeus-orange;
|
||||
transform: rotate(10deg);
|
||||
}
|
||||
}
|
|
@ -20,6 +20,11 @@
|
|||
<%= i[:title] %>
|
||||
</a>
|
||||
<% end %>
|
||||
<% if new_member_time? %>
|
||||
<a class="navbar-item" id="ledenformulier" href="https://zeus.gent/ledenformulier">
|
||||
Schrijf je in!
|
||||
</a>
|
||||
<%end%>
|
||||
</div>
|
||||
<!-- TODO: Remove this is-hidden-touch, it's just a convenience for now -->
|
||||
<div class="navbar-end is-hidden-touch">
|
||||
|
|
|
@ -13,6 +13,11 @@ module TimeHelper
|
|||
])
|
||||
end
|
||||
|
||||
def new_member_time?
|
||||
year = Time.now.year
|
||||
timehelper([[Time.new(year, 9, 20), Time.new(year, 10, 15)]])
|
||||
end
|
||||
|
||||
def timehelper(ranges)
|
||||
ranges.any? { |range| periodhelper(*range) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue