Add a super-basic index HTML

This commit is contained in:
Gergely Polonkai 2018-06-26 07:23:53 +02:00
parent c2e78b638b
commit a7c83e857a
2 changed files with 28 additions and 2 deletions

View File

@ -14,7 +14,7 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
from flask import Flask from flask import Flask, render_template
class CalendarSocialApp(Flask): class CalendarSocialApp(Flask):
@ -26,7 +26,7 @@ app = CalendarSocialApp(__name__)
@app.route('/') @app.route('/')
def hello(): def hello():
return 'Hello!' return render_template('index.html')
if __name__ == '__main__': if __name__ == '__main__':

26
app/templates/index.html Normal file
View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>Calendar.Social</title>
{% block head %}
<style>
footer {
margin-top: 3em;
font-weight: bold;
border-top: 1px dotted black;
padding-top: 1em;
}
</style>
{% endblock %}
</head>
<body>
<header>
<h1>Calendar.social</h1>
</header>
{% block content %}{% endblock %}
<footer>
Soon…™
</footer>
{% block scripts %}{% endblock %}
</body>
</html>