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;
|
||||
|
@ -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