diff --git a/app.py b/app.py index 43011f5..62f8f2a 100644 --- a/app.py +++ b/app.py @@ -7,6 +7,13 @@ def main(): return render_template('index.html') +@app.route('/') +def uni_homepage(uni): + if uni == 'jc4833': + return render_template('jc4833.html') + else: + return "Try: http://localhost:5000/jc4833"; + if __name__ == '__main__': - app.run() + app.run(debug=True) diff --git a/static/bg.jpg b/static/bg.jpg new file mode 100644 index 0000000..450e5ed Binary files /dev/null and b/static/bg.jpg differ diff --git a/static/icon.png b/static/icon.png new file mode 100755 index 0000000..65ed96b Binary files /dev/null and b/static/icon.png differ diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000..2f2c161 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,38 @@ + + + ADI Lab Challenge + + + + + + + +
+
+
+
+ User icon + +
+
+
+


+
+

Made by Jiahe Chen(jc4833)

+ + \ No newline at end of file diff --git a/templates/jc4833.html b/templates/jc4833.html new file mode 100644 index 0000000..ebd42ea --- /dev/null +++ b/templates/jc4833.html @@ -0,0 +1,36 @@ + + + ADI Lab Challenge + + + + + + +
+
+
+
+ User icon +

Name: Jiahe Chen

+

Favourite color: Yellow

+
+
+
+


+
+

Made by Jiahe Chen(jc4833)

+ + \ No newline at end of file