Skip to content

Commit ae4d3e4

Browse files
Added 404 page and staircase svg
1 parent 1798e35 commit ae4d3e4

File tree

5 files changed

+47
-0
lines changed

5 files changed

+47
-0
lines changed

app/lang/en/client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
"liveboardDescription" => "Below you'll find a list of all trains departing for a certain station and their possible delay.",
4343
"waitBetween" => "Wait",
4444
"mins" => "minutes before departure",
45+
"404ErrorTitle" => "Page not found",
46+
"404Explanation" => "We could not find this page. If you think this was a mistake, ",
47+
"goHome" => "Go back to the homepage",
4548
// END OF NEW TRANSLATION STRINGS
4649
"search"=>"Search",
4750
"departure_at" => "Departure",

app/lang/nl/client.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
"station" => "Station",
4646
"liveboardDescription" => "Hier onder vind je een lijst met alle treinen die naar een bepaald station rijden en hun mogelijke vertragingen.",
4747
//
48+
"404ErrorTitle" => "Pagina niet gevonden",
49+
"404Explanation" => "We konden deze pagina niet vinden. Als je denkt dat dit een fout is, ",
50+
"goHome" => "Ga terug naar de homepage",
51+
//
4852
"search"=>"Zoek route",
4953
"departure_at" => "Vertrek",
5054
"arrival_at" => "Aankomst",

app/routes.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
|
1010
*/
1111

12+
App::missing(function($exception)
13+
{
14+
return Response::view('errors.404', array(), 404);
15+
});
16+
1217
Route::get('/', 'HomeController@showWelcome');
1318
Route::get('/route', 'RouteController@index');
1419
Route::get('/NMBS/stations', 'StationController@index');

app/views/errors/404.blade.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
@include('core.head')
4+
<body>
5+
<div class="wrapper">
6+
<div id="main">
7+
@include('core.navigation')
8+
<div class="container">
9+
<div class="row max-w5" >
10+
<div class="col-md-12 col-sm-12">
11+
<div class="well">
12+
<p class="center h1"><i class="fa fa-question-circle fa-3x center"></i>
13+
</p>
14+
<h3><strong>404</strong>: {{Lang::get('client.404ErrorTitle')}}</h3>
15+
<p>{{Lang::get('client.404Explanation')}} <a href="mailto:[email protected]">{{Lang::get('client.errorMail')}}</a>.</p>
16+
<br/>
17+
<a href="/" ng-click="resetplanner($event)" class="btn btn-danger btn-lg btn-wide"><i class="fa fa-chevron-left"></i> {{Lang::get('client.goHome')}}</a>
18+
<br/>
19+
</div>
20+
</div>
21+
</div>
22+
</div>
23+
</div>
24+
</div>
25+
@include('core.footer')
26+
</body>
27+
</html>

public/images/stair.svg

Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)