diff --git a/website/templates/index.html b/website/templates/index.html index a714064..e9b4ffb 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -1,4 +1,36 @@ - - -

Welcome to this clockwork gaming debug page!

- Click Here to purchase Clockwork Plus! +{% extends "layout.html" %} +{% block head %} + +{% endblock %} + +{% block body %} +
+ +

Clockwork Gaming PLUS!

+ +
+
+

What is Clockwork Gaming Plus?


+Clockwork Gaming Plus is a brand new premium service that allows you to get more out of Clockwork Gaming!
+

+

Features include:

+
    +
  • Full VR Support*
  • +
  • Premuim Flare!
  • +
  • Free Downtime!
  • +
  • Wideband Codec Support!
  • +
  • Longer Move Timeouts!
  • +
  • And MORE*
  • +
+

+ +Click Here to purchase Clockwork Plus! + +
+
+
+ +
Test
+{% endblock %} diff --git a/website/templates/layout.html b/website/templates/layout.html new file mode 100644 index 0000000..373e9a1 --- /dev/null +++ b/website/templates/layout.html @@ -0,0 +1,58 @@ + + + + + Clockwork Gaming PLUS! + + + + + + + + + {% block head %}{% endblock %} + + + + + + +
+ {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + {% for category, message in messages %} + {% set splitmessage = message.split(" ", 1) %} +
+ + {{ splitmessage[0] }} {{ splitmessage[1] }} +
+ {% endfor %} + {% endif %} + {% endwith %} +
+ {% block body %}{% endblock %} + + + +
+ + + diff --git a/website/templates/payment.html b/website/templates/payment.html new file mode 100644 index 0000000..fdadc97 --- /dev/null +++ b/website/templates/payment.html @@ -0,0 +1,21 @@ +{% extends "layout.html" %} +{% block head %} + +{% endblock %} + +{% block body %} +
+
+

Select a Payment Method:

+ + + + + +
+
+ +{% endblock %} diff --git a/website/webinterface.py b/website/webinterface.py index 49bef9e..950ac1e 100644 --- a/website/webinterface.py +++ b/website/webinterface.py @@ -41,6 +41,14 @@ def index(): def wait(): return render_template("wait.html") + +@app.route("/pay") +def payment(): + if "username" in session: + return render_template("payment.html") + else: + return redirect(url_for("buy")) + @app.route("/activate") def activate(): if "username" in session: @@ -56,9 +64,9 @@ def activate(): def buy(): if request.method == 'POST': session['username'] = request.form['username'] - return redirect(url_for("wait")) + return redirect(url_for("payment")) return render_template("buy.html") if __name__ == '__main__': - app.run(host='0.0.0.0') + app.run(host='0.0.0.0',debug=True)