notfound
This commit is contained in:
@@ -74,7 +74,12 @@ use Dojo::Model::Users;
|
|||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
|
$r->any('/*whatever' => {whatever => ''} => sub {
|
||||||
|
my $c = shift;
|
||||||
|
my $whatever = $c->param('whatever');
|
||||||
|
$c->stash(layout=>'clean');
|
||||||
|
$c->render(template=>'home/not_found');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|||||||
16
public/global/error/404.css
Normal file
16
public/global/error/404.css
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
body {margin:25px;
|
||||||
|
background-color:#94C8DB;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.polaroid {
|
||||||
|
width: 80%;
|
||||||
|
background-color: white;
|
||||||
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
|
margin: 10vh auto auto auto;
|
||||||
|
}
|
||||||
|
img{width: 100%}
|
||||||
|
|
||||||
|
div.container {
|
||||||
|
text-align: center;
|
||||||
|
padding: 10px 20px;
|
||||||
|
}
|
||||||
BIN
public/global/error/hono.jpg
Normal file
BIN
public/global/error/hono.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
7
templates/home/not_found.html.ep
Executable file
7
templates/home/not_found.html.ep
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
% stash css => ["/global/error/404.css"];
|
||||||
|
<div class="polaroid">
|
||||||
|
<img src="/global/error/hono.jpg">
|
||||||
|
<div class="container">
|
||||||
|
<p>Error 404</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user