added slides
This commit is contained in:
parent
3d5c0691f8
commit
6209144461
5 changed files with 36 additions and 1 deletions
1
src/iplotter
Submodule
1
src/iplotter
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 9508c72ec1862aff7ab8c15d4a40cb5b840552b2
|
||||||
|
|
@ -59,6 +59,11 @@ def investor():
|
||||||
def enthusiast():
|
def enthusiast():
|
||||||
return render_template('enthusiast.html', body='Hello 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__':
|
if __name__ == '__main__':
|
||||||
port = int(os.environ.get("PORT", 5000))
|
port = int(os.environ.get("PORT", 5000))
|
||||||
app.run(host='0.0.0.0', port=port)
|
app.run(host='0.0.0.0', port=port, debug=True)
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
{% set navigation_bar = [
|
{% set navigation_bar = [
|
||||||
('/investor', 'investor', 'Investor'),
|
('/investor', 'investor', 'Investor'),
|
||||||
('/enthusiast', 'enthusiast', 'Enthusiast'),
|
('/enthusiast', 'enthusiast', 'Enthusiast'),
|
||||||
|
('/slides', 'slides', 'Slides')
|
||||||
] -%}
|
] -%}
|
||||||
{% set active_page = active_page|default('index') -%}
|
{% set active_page = active_page|default('index') -%}
|
||||||
|
|
||||||
|
|
|
||||||
25
src/templates/slide_body.html
Normal file
25
src/templates/slide_body.html
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
<head>
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/reveal.js/3.0.0/css/reveal.min.css">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/reveal.js/3.0.0/css/theme/night.css">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<div class="reveal">
|
||||||
|
<div class="slides">
|
||||||
|
<section>
|
||||||
|
<p>
|
||||||
|
Deployed on Heroku
|
||||||
|
|
||||||
|
Check it out at http://pydatavizday.herokuapp.com/
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
<section>Presentation material</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="https://cdn.jsdelivr.net/reveal.js/3.0.0/js/reveal.min.js"></script>
|
||||||
|
<script>
|
||||||
|
Reveal.initialize();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
3
src/templates/slides.html
Normal file
3
src/templates/slides.html
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{% extends "layout.html" %}
|
||||||
|
{% set active_page = "slides" %}
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue