aboutsummaryrefslogtreecommitdiffstats
path: root/templates/main
diff options
context:
space:
mode:
authorGravatar Sam Wedgwood <[email protected]>2018-03-21 19:26:16 +0000
committerGravatar Joseph <[email protected]>2018-03-21 19:26:16 +0000
commitead7d4f4c5789fe2b5fa2d08175346fa8fcb24da (patch)
tree308a670bb92b4047a4e4fcfbbba37a9df1a3d762 /templates/main
parentCopy code from API error view over to normal error views because that's the w... (diff)
Added a Code Jam Countdown (#1eevq) (#43)
* added countdown * updated jam dates * added test * flake8 * flake8 (i did it on wrong file)
Diffstat (limited to 'templates/main')
-rw-r--r--templates/main/countdown.html30
-rw-r--r--templates/main/navigation.html6
2 files changed, 36 insertions, 0 deletions
diff --git a/templates/main/countdown.html b/templates/main/countdown.html
new file mode 100644
index 00000000..846883d3
--- /dev/null
+++ b/templates/main/countdown.html
@@ -0,0 +1,30 @@
+{% extends "main/base.html" %}
+{% block title %}Countdown{% endblock %}
+{% block og_title %}Countdown{% endblock %}
+{% block og_description %}Countdown for Code Jams.{% endblock %}
+{% block content %}
+<h1 id="countdown-title" class="uk-heading-primary uk-text-center">Code Jam Countdown</h1>
+<div class="uk-section uk-section-muted">
+ <div class="uk-container">
+ <div class="uk-column-1 uk-column-1-2@s uk-column-1-4@m">
+ <div class="uk-tile uk-padding-small">
+ <h1 style="text-align: center">Days</h1>
+ <h1 id="days" class="uk-text-center" style="font-size: 200px">--</h1>
+ </div>
+ <div class="uk-tile uk-padding-small">
+ <h1 style="text-align: center">Hours</h1>
+ <h1 id="hours" class="uk-text-center" style="font-size: 200px">--</h1>
+ </div>
+ <div class="uk-tile uk-padding-small">
+ <h1 style="text-align: center">Minutes</h1>
+ <h1 id="minutes" class="uk-text-center" style="font-size: 200px">--</h1>
+ </div>
+ <div class="uk-tile uk-padding-small">
+ <h1 style="text-align: center">Seconds</h1>
+ <h1 id="seconds" class="uk-text-center" style="font-size: 200px">--</h1>
+ </div>
+ </div>
+ </div>
+</div>
+<script src="/static/js/countdown.js"></script>
+{% endblock %} \ No newline at end of file
diff --git a/templates/main/navigation.html b/templates/main/navigation.html
index cabd0d87..385ad00d 100644
--- a/templates/main/navigation.html
+++ b/templates/main/navigation.html
@@ -29,6 +29,12 @@
<li class="uk-nav-item uk-hidden@m"><a href="/"><i class="uk-icon fas fa-home"></i> &nbsp;Home</a></li>
<li class="uk-nav-item uk-hidden@m"><a href="/invite"><i class="uk-icon fab fa-discord"></i> &nbsp;Discord</a></li>
<li class="uk-nav-divider uk-hidden@m"></li>
+
+ {% if current_page.startswith("countdown") %}
+ <li class="uk-active"><a href="/countdown">Code Jam Countdown</a></li>
+ {% else %}
+ <li><a href="/countdown">Code Jam Countdown</a></li>
+ {% endif %}
{% if current_page.startswith("info") %}
<li class="uk-nav-header uk-active"><a href="/info">Information</a></li>