-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
103 additions
and
6 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from flask import Flask | ||
|
||
from flask_bootstrap import Bootstrap | ||
|
||
app = Flask(__name__) | ||
|
||
bootstrap = Bootstrap(app) | ||
|
||
from app import routes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from flask import render_template | ||
from app import app | ||
|
||
@app.route('/') | ||
@app.route('/index') | ||
def index(): | ||
return render_template('index.html') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Create two unequal columns that floats next to each other */ | ||
.column { | ||
float: left; | ||
padding: 10px; | ||
height: 300px; /* Should be removed. Only for demonstration */ | ||
} | ||
|
||
.left { | ||
width: 25%; | ||
} | ||
|
||
.right { | ||
width: 75%; | ||
} | ||
|
||
/* Clear floats after the columns */ | ||
.row:after { | ||
content: ""; | ||
display: table; | ||
clear: both; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="style.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<!-- <style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
/* Create two unequal columns that floats next to each other */ | ||
.column { | ||
float: left; | ||
padding: 10px; | ||
height: 300px; /* Should be removed. Only for demonstration */ | ||
} | ||
.left { | ||
width: 25%; | ||
} | ||
.right { | ||
width: 75%; | ||
} | ||
/* Clear floats after the columns */ | ||
.row:after { | ||
content: ""; | ||
display: table; | ||
clear: both; | ||
} | ||
</style> --> | ||
</head> | ||
<body> | ||
<!-- <div>Visualization: <a href="/index">Home</a></div> --> | ||
<hr> | ||
{% block content %}{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<h2>Visualization</h2> | ||
|
||
<div class="row"> | ||
|
||
<div class="column left" style="background-color:#aaa;"> | ||
<h2>Navigation Bar</h2> | ||
</div> | ||
|
||
<div class="column right" style="background-color:#bbb;"> | ||
<h2>Map of Amsterdam</h2> | ||
</div> | ||
|
||
</div> | ||
|
||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from flask import Flask | ||
|
||
app = Flask(__name__) | ||
|
||
from app import routes |