Custom error pages

develop
Nathan Steel 9 months ago
parent 2d254dba30
commit 202b4af07f

@ -10,9 +10,9 @@
| you set here will be called when a 404 error is encountered | you set here will be called when a 404 error is encountered
| |
*/ */
// app()->set404(function() { app()->set404(function() {
// response()->page(ViewsPath("errors/404.html", false), 404); response()->page(ViewsPath("errors/404.html", false), 404);
// }); });
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -24,9 +24,9 @@
| you set here will be called when a 500 error is encountered | you set here will be called when a 500 error is encountered
| |
*/ */
// app()->setErrorHandler(function() { app()->setErrorHandler(function() {
// response()->page(ViewsPath("errors/500.html", false), 500); response()->page(ViewsPath("errors/500.html", false), 500);
// }); });
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

@ -3,30 +3,18 @@
<head> <head>
<title>Page Not Found</title> <title>Page Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link <link rel="stylesheet" href="/assets/aSkelly/css/main.css">
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"
/>
<style>
body {
display: flex !important;
align-items: center !important;
justify-content: center !important;
flex-direction: column !important;
height: 95vh !important;
}
</style>
</head> </head>
<body> <body class="body--error">
<h2>Error 4<span role="img" aria-label="O">&#x1f635;</span>4</h2> <section class="row row--justify-center">
<p> <div class="col col-8 tac">
We could not find the page you requested, please check and try again <h1 class="error-title">Error 404</h1>
or <a href="/">Go Back Home</a> <p class="error-text">
</p> We could not find the page you requested, please check and try again
or <a href="/">Go Back Home</a>
</p>
</div>
</section>
</body> </body>
</html> </html>

@ -3,30 +3,16 @@
<head> <head>
<title>Internal Server Error</title> <title>Internal Server Error</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link <link rel="stylesheet" href="/assets/aSkelly/css/main.css">
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"
/>
<style>
body {
display: flex !important;
align-items: center !important;
justify-content: center !important;
flex-direction: column !important;
height: 95vh !important;
}
</style>
</head> </head>
<body> <body class="body--error">
<h2> <section class="row row--justify-center">
Error 5<span role="img" aria-label="O">&#x1f635;</span <div class="col col-8 tac">
><span role="img" aria-label="O">&#x1f635;</span> <h1 class="error-title">Error 500</h1>
</h2> <p class="error-text">Internal Server Error. Please try again later.</p>
<p>Internal Server Error. Please try again later.</p> <p class="error-text"><a href="/">Go Back Home</a></p>
</div>
</section>
</body> </body>
</html> </html>

Loading…
Cancel
Save