From 6209144461d38d900fadfbf5415f18f3779153ce Mon Sep 17 00:00:00 2001 From: Walker Waylon Scott Date: Fri, 30 Jun 2017 21:23:56 -0500 Subject: [PATCH] added slides --- src/iplotter | 1 + src/pyDataVizDay.py | 7 ++++++- src/templates/layout.html | 1 + src/templates/slide_body.html | 25 +++++++++++++++++++++++++ src/templates/slides.html | 3 +++ 5 files changed, 36 insertions(+), 1 deletion(-) create mode 160000 src/iplotter create mode 100644 src/templates/slide_body.html create mode 100644 src/templates/slides.html diff --git a/src/iplotter b/src/iplotter new file mode 160000 index 0000000..9508c72 --- /dev/null +++ b/src/iplotter @@ -0,0 +1 @@ +Subproject commit 9508c72ec1862aff7ab8c15d4a40cb5b840552b2 diff --git a/src/pyDataVizDay.py b/src/pyDataVizDay.py index 9e2ed6d..65e4a51 100644 --- a/src/pyDataVizDay.py +++ b/src/pyDataVizDay.py @@ -59,6 +59,11 @@ def investor(): def enthusiast(): return render_template('enthusiast.html', body='Hello Enthusiast') +@app.route('/slides') +def slides(): + slide_body = render_template('slide_body.html') + return render_template('slides.html', body=slide_body) + if __name__ == '__main__': port = int(os.environ.get("PORT", 5000)) - app.run(host='0.0.0.0', port=port) \ No newline at end of file + app.run(host='0.0.0.0', port=port, debug=True) \ No newline at end of file diff --git a/src/templates/layout.html b/src/templates/layout.html index 8b6a1dd..eb7f1cf 100644 --- a/src/templates/layout.html +++ b/src/templates/layout.html @@ -20,6 +20,7 @@ {% set navigation_bar = [ ('/investor', 'investor', 'Investor'), ('/enthusiast', 'enthusiast', 'Enthusiast'), + ('/slides', 'slides', 'Slides') ] -%} {% set active_page = active_page|default('index') -%} diff --git a/src/templates/slide_body.html b/src/templates/slide_body.html new file mode 100644 index 0000000..175a172 --- /dev/null +++ b/src/templates/slide_body.html @@ -0,0 +1,25 @@ + + + + + + +
+
+
+

+ Deployed on Heroku + + Check it out at http://pydatavizday.herokuapp.com/ +

+
+
Presentation material
+
+
+ + + + + \ No newline at end of file diff --git a/src/templates/slides.html b/src/templates/slides.html new file mode 100644 index 0000000..4dfeded --- /dev/null +++ b/src/templates/slides.html @@ -0,0 +1,3 @@ +{% extends "layout.html" %} +{% set active_page = "slides" %} +