Merge pull request #28 from bumi/errors-pages

Add error pages
This commit is contained in:
bumi 2020-05-01 14:30:16 +02:00 committed by GitHub
commit 97bf16574f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 112 additions and 168 deletions

View File

@ -1,67 +1,49 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>The page you were looking for doesn't exist (404)</title> <title>The page you were looking for doesn't exist (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<style> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.2/css/bulma.min.css">
.rails-default-error-page {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}
.rails-default-error-page div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}
.rails-default-error-page div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 12% 0;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
.rails-default-error-page h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}
.rails-default-error-page div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #999;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top-color: #DADADA;
color: #666;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
</style>
</head> </head>
<body class="rails-default-error-page"> <body>
<!-- This file lives in public/404.html --> <!-- This file lives in public/404.html -->
<div class="dialog"> <nav class="navbar" role="navigation" aria-label="main navigation">
<div> <div class="container">
<h1>The page you were looking for doesn't exist.</h1> <div class="navbar-brand">
<p>You may have mistyped the address or the page may have moved.</p> <h1 class="navbar-item is-size-4 is-logo">
<a href="/">tinyfor.ms</a>
</h1>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbar-menu">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbar-menu" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="/help">Help</a>
</div>
</div>
</div>
</nav>
<div class="section">
<div class="columns ">
<div class="column is-half is-offset-one-quarter">
<div class="box has-text-centered">
<h1 class="title is-size-1">404</h1>
<h1 class="title is-size-5">The page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved.</p>
<p>If you are the application owner check the logs for more information.</p><br><br>
<button onclick="window.history.back()" class="button">Back to previous page</button>
</div>
</div>
</div> </div>
<p>If you are the application owner check the logs for more information.</p>
</div> </div>
</body> </body>
</html>
</html>

View File

@ -1,67 +1,48 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>The change you wanted was rejected (422)</title> <title>The change you wanted was rejected (422)</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<style> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.2/css/bulma.min.css">
.rails-default-error-page {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}
.rails-default-error-page div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}
.rails-default-error-page div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 12% 0;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
.rails-default-error-page h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}
.rails-default-error-page div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #999;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top-color: #DADADA;
color: #666;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
</style>
</head> </head>
<body class="rails-default-error-page"> <body>
<!-- This file lives in public/422.html --> <!-- This file lives in public/422.html -->
<div class="dialog"> <nav class="navbar" role="navigation" aria-label="main navigation">
<div> <div class="container">
<h1>The change you wanted was rejected.</h1> <div class="navbar-brand">
<p>Maybe you tried to change something you didn't have access to.</p> <h1 class="navbar-item is-size-4 is-logo">
<a href="/">tinyfor.ms</a>
</h1>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbar-menu">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbar-menu" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="/help">Help</a>
</div>
</div>
</div>
</nav>
<div class="section">
<div class="columns ">
<div class="column is-half is-offset-one-quarter">
<div class="box has-text-centered">
<h1 class="title is-size-1">422</h1>
<h1 class="title is-size-5">The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
<p>If you are the application owner check the logs for more information.</p><br><br>
<button onclick="window.history.back()" class="button">Back to previous page</button>
</div>
</div>
</div> </div>
<p>If you are the application owner check the logs for more information.</p>
</div> </div>
</body> </body>
</html>
</html>

View File

@ -1,66 +1,47 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>We're sorry, but something went wrong (500)</title> <title>We're sorry, but something went wrong (500)</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<style> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.2/css/bulma.min.css">
.rails-default-error-page {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}
.rails-default-error-page div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}
.rails-default-error-page div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 12% 0;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
.rails-default-error-page h1 {
font-size: 100%;
color: #730E15;
line-height: 1.5em;
}
.rails-default-error-page div.dialog > p {
margin: 0 0 1em;
padding: 1em;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #999;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border-top-color: #DADADA;
color: #666;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
}
</style>
</head> </head>
<body class="rails-default-error-page"> <body>
<!-- This file lives in public/500.html --> <!-- This file lives in public/500.html -->
<div class="dialog"> <nav class="navbar" role="navigation" aria-label="main navigation">
<div> <div class="container">
<h1>We're sorry, but something went wrong.</h1> <div class="navbar-brand">
<h1 class="navbar-item is-size-4 is-logo">
<a href="/">tinyfor.ms</a>
</h1>
<a role="button" class="navbar-burger burger" aria-label="menu" aria-expanded="false" data-target="navbar-menu">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbar-menu" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="/help">Help</a>
</div>
</div>
</div>
</nav>
<div class="section">
<div class="columns ">
<div class="column is-half is-offset-one-quarter">
<div class="box has-text-centered">
<h1 class="title is-size-1">500</h1>
<h1 class="title is-size-5">We're sorry, but something went wrong.</h1>
<p>If you are the application owner check the logs for more information.</p><br><br>
<button onclick="window.history.back()" class="button">Back to previous page</button>
</div>
</div>
</div> </div>
<p>If you are the application owner check the logs for more information.</p>
</div> </div>
</body> </body>
</html>
</html>