Skip to content

Commit

Permalink
Show Perl 6-ish error pages instead of Mojolicious's default (Closes #30
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zoffixznet committed Nov 21, 2015
1 parent ae688d0 commit 0c3b817
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
13 changes: 13 additions & 0 deletions web/public/sass/main.scss
Expand Up @@ -3,6 +3,19 @@ body {
background: lighten(#2FA4E7, 45%);
}

.error-page {
margin-top: 100px;
overflow: visible;

#logo {
margin-top: -100px;
}

h2 {
font-size: 450%;
}
}

header {
margin-top: 20px;

Expand Down
12 changes: 12 additions & 0 deletions web/templates/exception.production.html.ep
@@ -0,0 +1,12 @@
% layout 'default';
% title '500 - Server Error';

<div class="well error-page clearfix">
<img src="/content-pics/camelia-logo.png" id="logo" alt="»ö«"
class="pull-right" width=291 height=273>
<h2 class="h1">500&mdash;Server Error</h2>
<p class="lead">
Something went terribly wrong and we were not able to generate a response.
Please <a href="https://perl6.org/community/irc">notify the Perl&nbsp;6 community</a> if this issue persists.
</p>
</div>
11 changes: 11 additions & 0 deletions web/templates/not_found.production.html.ep
@@ -0,0 +1,11 @@
% layout 'default';
% title '404 - Page Not Found';

<div class="well error-page clearfix">
<img src="/content-pics/camelia-logo.png" id="logo" alt="»ö«"
class="pull-right" width=291 height=273>
<h2 class="h1">404&mdash;Page Not Found</h2>
<p class="lead">
Sorry, but the page you tried to reach was either moved or deleted.
</p>
</div>

0 comments on commit 0c3b817

Please sign in to comment.