From 1aaa8e92237de6b477f3e132d89f54b8496e17eb Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Wed, 14 Mar 2018 12:07:12 +0000 Subject: Early bersion of the code jams page --- pysite/views/main/info/jams.py | 10 +++++ templates/main/info/index.html | 7 ++++ templates/main/info/jams.html | 95 ++++++++++++++++++++++++++++++++++++++++++ templates/main/navigation.html | 6 +++ 4 files changed, 118 insertions(+) create mode 100644 pysite/views/main/info/jams.py create mode 100644 templates/main/info/jams.html diff --git a/pysite/views/main/info/jams.py b/pysite/views/main/info/jams.py new file mode 100644 index 00000000..2d71b433 --- /dev/null +++ b/pysite/views/main/info/jams.py @@ -0,0 +1,10 @@ +# coding=utf-8 +from pysite.base_route import RouteView + + +class IndexView(RouteView): + path = "/info/jams" + name = "info/jams" + + def get(self): + return self.render("main/info/jams.html") diff --git a/templates/main/info/index.html b/templates/main/info/index.html index 89e87eb9..f80c0f88 100644 --- a/templates/main/info/index.html +++ b/templates/main/info/index.html @@ -17,6 +17,13 @@ What you need, when you need it

+

+ Code Jams   + +
+ Information on our monthly code jams, where users are paired into teams to compete with each other +

+

Getting Help   diff --git a/templates/main/info/jams.html b/templates/main/info/jams.html new file mode 100644 index 00000000..3edff9cd --- /dev/null +++ b/templates/main/info/jams.html @@ -0,0 +1,95 @@ +{% extends "main/base.html" %} +{% block title %}Code Jams{% endblock %} +{% block og_title %}Code Jams{% endblock %} +{% block og_description %}Information about our code jams - monthly events where users are grouped into pairs to solve a Python task{% endblock %} +{% block content %} +

+
+
+

+ Code Jams + + + + +

+ + +

+ Every month, we aim to host a server-wide code jam, suitable for all members of the server. In + these, we announce a theme and date in advance, and users may sign up via a link provided in the + announcements channel on the server. Once the sign-up period is over, users are paired off into + teams. On the day of the code jam, we announce a task - each team will then work on a solution + to this task. +

+

+ Once the code jam is over, our staff team will review and test each submission. Once that's done, + a winner will be decided! +

+

+ If you'd like to join one of our code jams, feel free to ask a member of staff about the next one. +

+ +

+ Rules and Guidelines + + + + +

+ +

+ In order to keep things fair and on-topic, the following rules must be adhered to. Failure to + follow these rules will result in disqualification. +

+
    +
  • + Projects must be strongly Python-oriented. +
      +
    • You may mix in other languages, but the project must be Python-based.
    • +
    +
  • +
  • You may not write any code in advance.
  • +
  • You may not write any code after the deadline.
  • +
  • Both team members must contribute to the project in some way.
  • +
  • The work must be your own - don't copy another team's work.
  • +
+

+ Additionally, the following suggestions could be helpful for all teams. +

+
    +
  • Open your pull request early - that way, you know it'll be there by the deadline.
  • +
  • Lint your code - we lint each pull request using Flake8, and your code should validate.
  • +
  • Communicate with your teammate - Add them as a friend, start a DM, and work together on the problem.
  • +
+ +

+ Getting Started + + + + +

+ +

+ All of our code jams happen on GitHub. If you don't have an + account there, you'll need to create one before you can join one of our code jams. Teams are required + to fork the repository we have set up for the current code jam, commit their code to their fork, and + then open a pull request with their project on the code jam repository. +

+

+ If you're not familiar with GitHub and Git in general, we're writing a guide just for you! +

+

+ This page is incomplete - watch this space! +

+
+
+
+{% endblock %} \ No newline at end of file diff --git a/templates/main/navigation.html b/templates/main/navigation.html index 9cc2cb3d..9d350aca 100644 --- a/templates/main/navigation.html +++ b/templates/main/navigation.html @@ -36,6 +36,12 @@
  • Information
  • {% endif %} + {% if current_page == "info/jams" %} +
  • Code Jams
  • + {% else %} +
  • Code Jams
  • + {% endif %} + {% if current_page == "info/help" %}
  • Getting Help
  • {% else %} -- cgit v1.2.3