Add 404 page.

This commit is contained in:
Matthew Stratford 2020-10-24 13:47:48 +01:00
parent 37140cf247
commit a35fa06c06
3 changed files with 17 additions and 2 deletions

View file

@ -12,7 +12,13 @@ channel_p = []
@app.errorhandler(404)
def page_not_found(e):
data = {
'ui_page': "404",
"ui_title": "404"
}
return render_template('404.html', data=data), 404
@app.route("/") @app.route("/")

9
templates/404.html Normal file
View file

@ -0,0 +1,9 @@
{% extends 'base.html' %}
{% block content %}
<div class="container-fluid text-center p-5">
<div class="error mx-auto" data-text="404">404</div>
<p class="lead text-gray-800 mb-5">Page Not Found</p>
<p class="text-gray-900 mb-0">Looks like you fell of the tip of the iceberg.</p>
<a href="/">← Escape Back Home</a>
</div>
{% endblock %}

View file

@ -10915,7 +10915,7 @@ form.user .btn-user {
font-size: 7rem; font-size: 7rem;
position: relative; position: relative;
line-height: 1; line-height: 1;
width: 12.5rem; width: 13rem;
} }
@-webkit-keyframes noise-anim { @-webkit-keyframes noise-anim {