From 6aaf44af43a0be219e79fb4d1f0cc8a98feb5f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Nut=CC=A6iu?= Date: Wed, 12 Apr 2017 22:40:49 +0300 Subject: [PATCH] Creating basic prototype --- src/application.py | 19 ++++++++++++++++++- src/static/style.css | 25 +++++++++++++++++++++++++ src/templates/index.html | 22 ++++++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 src/static/style.css create mode 100644 src/templates/index.html diff --git a/src/application.py b/src/application.py index 1987b55..8de086e 100644 --- a/src/application.py +++ b/src/application.py @@ -14,4 +14,21 @@ You should have received a copy of the GNU General Public License along with scoreboard-benchmark . If not, see . -""" \ No newline at end of file +""" +from flask import Flask +import flask +import requests + + +app = flask.Flask(__name__) + +@app.route("/upload") +def upload(): + return "Upload" + +@app.route("/") +def index(): + return flask.render_template("index.html") + +if __name__ == "__main__": + app.run("") \ No newline at end of file diff --git a/src/static/style.css b/src/static/style.css new file mode 100644 index 0000000..7e9204a --- /dev/null +++ b/src/static/style.css @@ -0,0 +1,25 @@ +/* + Author: Denis Nutiu + This file is part of scoreboard-benchmark. + + scoreboard-benchmark is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + scoreboard-benchmark is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with scoreboard-benchmark . If not, see . + */ + +header { + text-align: center; +} + +footer { + text-align: center; +} \ No newline at end of file diff --git a/src/templates/index.html b/src/templates/index.html new file mode 100644 index 0000000..c8f1f44 --- /dev/null +++ b/src/templates/index.html @@ -0,0 +1,22 @@ + + + + + + + + + Scoreboard! + + +
+

The Scoreboard!

+
+
+ +
+ + + \ No newline at end of file