Skip to content

Commit

Permalink
Fix countdown to start (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira authored Oct 24, 2023
1 parent be58f93 commit 913b692
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ nav:
ref: "ideas.html"

# We move by flags, one phase at a time (these are ordered)
before_countdown_to_start: true # countdown to start of competition is in effect
before_registration_is_over: true # players and sponsor can no longer apply
before_countdown_to_start: false # countdown to start of competition is in effect
before_registration_is_over: false # players and sponsor can no longer apply
before_countdown_to_end: true # after contest starts (the 2 days)
before_votes_are_out: true # while judges are doing their thing

Expand Down
2 changes: 1 addition & 1 deletion _includes/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2 class="section-heading text-uppercase about">About</h2>
</p>

<p>Participation in SpawnFest is 100% <strong>free of charge</strong>.</p>
{% if site.before_registration %}
{% if site.before_countdown_to_start %}
<p>We'll be opening registration soon. <strong>Stay tuned!</strong></p>
{% endif %}
<strong>All BEAM languages are welcome!</strong>
Expand Down
2 changes: 0 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

<div class="intro-text">
<img class="header-logo-small-left" src="/img/header_logo.png" alt="{{ site.alt_for_logo }}">
{% if site.before_countdown_to_end or site.before_votes_are_out %}
{% if site.before_countdown_to_end %}
<div id="countdown" class="pt-1 d-flex justify-content-center"
data-aos="fade-up"
Expand All @@ -21,7 +20,6 @@ <h2 class="big-screen d-flex justify-content-center">The judges are evaluating t
</div>
</div>
{% endif %}
{% endif %}

{% if site.before_votes_are_out == false %}
<div class="d-flex justify-content-center">
Expand Down
2 changes: 1 addition & 1 deletion _includes/registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="p-5 container">
<div class="row-center">
<h2 class="section-heading text-uppercase">Register your team</h2>
{% if site.before_countdown_to_start %}
{% if site.before_registration_is_over %}
<p>Participation in SpawnFest is 100% <strong>free of charge</strong>.</p>
<p>Fill out <a class="registration-section-link" target="_blank" href="http://play.spawnfest.org">this form</a> to register your team.</p>
<p>Also check out the contest rules <a class="registration-section-link" href="#rules">here</a>.</p>
Expand Down
4 changes: 2 additions & 2 deletions js/countdown_element.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var Countdown = new Countdown({
year : 2023,
month : 10,
day : 30,
day : 28,
hour : 0,
minute : 0,
minute : 1,
second : 0,
timezone : 0,
rangeHi : "day",
Expand Down

0 comments on commit 913b692

Please sign in to comment.