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 {
|
#navbar {
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
@ -42,10 +44,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@include touch {
|
@include touch {
|
||||||
.navbar-menu {
|
.navbar-menu {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar:not(.is-transparent) {
|
.navbar:not(.is-transparent) {
|
||||||
|
@ -61,4 +63,9 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
#ledenformulier {
|
||||||
|
color: $zeus-orange;
|
||||||
|
transform: rotate(10deg);
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,6 +20,11 @@
|
||||||
<%= i[:title] %>
|
<%= i[:title] %>
|
||||||
</a>
|
</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if new_member_time? %>
|
||||||
|
<a class="navbar-item" id="ledenformulier" href="https://zeus.gent/ledenformulier">
|
||||||
|
Schrijf je in!
|
||||||
|
</a>
|
||||||
|
<%end%>
|
||||||
</div>
|
</div>
|
||||||
<!-- TODO: Remove this is-hidden-touch, it's just a convenience for now -->
|
<!-- TODO: Remove this is-hidden-touch, it's just a convenience for now -->
|
||||||
<div class="navbar-end is-hidden-touch">
|
<div class="navbar-end is-hidden-touch">
|
||||||
|
|
|
@ -13,6 +13,11 @@ module TimeHelper
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def new_member_time?
|
||||||
|
year = Time.now.year
|
||||||
|
timehelper([[Time.new(year, 9, 20), Time.new(year, 10, 15)]])
|
||||||
|
end
|
||||||
|
|
||||||
def timehelper(ranges)
|
def timehelper(ranges)
|
||||||
ranges.any? { |range| periodhelper(*range) }
|
ranges.any? { |range| periodhelper(*range) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue