-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace repose of aliases with error page * error twig modified with proper messages * add the error pcss * the lint removed * centered the error message * center style added independent of screen * the top position changed * aliases not found added * aliases throw removed * Update src/backend/controllers/pages.ts Co-authored-by: Peter Savchenko <[email protected]> Co-authored-by: Peter Savchenko <[email protected]>
- Loading branch information
1 parent
09835e3
commit 05f8f0d
Showing
6 changed files
with
57 additions
and
19 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{% extends 'layout.twig' %} | ||
|
||
{% block body %} | ||
<h1>{{message}}</h1> | ||
<h2>{{error.status}}</h2> | ||
<pre>{{error.stack}}</pre> | ||
<div class="error-page"> | ||
<h1> | ||
┬┴┬┴┤ {{status}} ├┬┴┬┴ | ||
</h1> | ||
<h1>{{message}}</h1> | ||
</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,29 @@ | ||
.error-page { | ||
font-size: 15px; | ||
text-align: center; | ||
position: absolute; | ||
top: 45%; | ||
left: 50%; | ||
|
||
@media (--mobile) { | ||
position: relative; | ||
top: 30vh; | ||
left: 0; | ||
} | ||
|
||
@media (--tablet) { | ||
position: relative; | ||
top: 30vh; | ||
left: 0; | ||
} | ||
|
||
h1 { | ||
@media (--mobile) { | ||
font-size: 20px; | ||
} | ||
} | ||
|
||
p { | ||
margin: 40px 0 20px; | ||
} | ||
} |
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