Skip to content

Commit

Permalink
redesign error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubman1 committed Jun 14, 2023
1 parent be26c3f commit 3c8e9e7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
11 changes: 7 additions & 4 deletions flowapp/templates/errors/404.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{% extends 'layouts/default.j2' %}
{% block content %}
<h1>Sorry ...</h1>
<p>There's nothing here!</p>
<p><a href="{{url_for('index')}}">Back</a></p>
{% endblock %}
<div class="content border border-4 border-warning text-center">
<p class="fs-1">&#129300;</p>
<h1>There is nothing here!</h1>
<p class="form-text">404 Not Found</p>
<p><a href="{{ url_for('index') }}" class="btn btn-link">Go back</a></p>
</div>
{% endblock %}
12 changes: 8 additions & 4 deletions flowapp/templates/errors/500.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% extends 'layouts/default.j2' %}
{% block content %}
<h1>Error ...</h1>
<p>Sorry ;-)</p>
<p><a href="{{url_for('index')}}">Back</a></p>
{% endblock %}
<div class="content border border-4 border-danger text-center">
<p class="fs-1">&#128547;</p>
<h1>There was an error on our side</h1>
<p>Sorry... Please try again later.</p>
<p class="form-text">500 Internal Server Error</p>
<p><a href="{{ url_for('index') }}" class="btn btn-link">Go back</a></p>
</div>
{% endblock %}

0 comments on commit 3c8e9e7

Please sign in to comment.