modified error pages a bit

This commit is contained in:
nilsding 2014-12-21 15:31:18 +01:00
parent ba9b6d1e12
commit 36f069d958
5 changed files with 282 additions and 136 deletions

View File

@ -1,59 +1,75 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>The page you were looking for doesn't exist (404)</title> <title>Page not found!!1! (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<style> <style>
body { body {
background-color: #EFEFEF; background-color: #EFEFEF;
color: #2E2F30; color: #2E2F30;
text-align: center; text-align: center;
font-family: arial, sans-serif; font-family: arial, sans-serif;
margin: 0; margin: 0;
} }
div.dialog { a { color: #4183c4; text-decoration: none; }
width: 95%; a:hover { text-decoration: underline; }
max-width: 33em;
margin: 4em auto 0;
}
div.dialog > div { div.dialog {
border: 1px solid #CCC; width: 95%;
border-right-color: #999; max-width: 33em;
border-left-color: #999; margin: 4em auto 0;
border-bottom-color: #BBB; }
border-top: #00A0F0 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);
}
h1 { div.dialog > div {
font-size: 100%; border: 1px solid #CCC;
color: #0b79C5; border-right-color: #999;
line-height: 1.5em; border-left-color: #999;
} border-bottom-color: #BBB;
border-top: #00A0F0 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);
}
div.dialog > p { h1 {
margin: 0 0 1em; font-size: 100%;
padding: 1em; color: #0b79C5;
background-color: #F7F7F7; line-height: 1.5em;
border: 1px solid #CCC; }
border-right-color: #999;
border-left-color: #999; div.dialog img { margin-bottom: 0.5em; }
border-bottom-color: #999;
border-bottom-left-radius: 4px; div.dialog > p {
border-bottom-right-radius: 4px; margin: 0 0 1em;
border-top-color: #DADADA; padding: 1em;
color: #666; background-color: #F7F7F7;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); 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);
}
div.links {
margin-top: 2em;
color: #999;
}
div.links a {
color: #666;
font-weight: 200;
font-size: 14px;
margin: 0 10px;
}
</style> </style>
</head> </head>
<body> <body>
<div class="dialog"> <div class="dialog">
<div> <div>
@ -62,5 +78,9 @@
</div> </div>
<p>If you think you found a bug, please let us know.</p> <p>If you think you found a bug, please let us know.</p>
</div> </div>
<div class="links">
<a href="https://github.com/justask/justask-bugs/issues">Bug tracker</a> &middot;
<a href="https://twitter.com/justask_2">Twitter</a>
</div>
</body> </body>
</html> </html>

View File

@ -4,63 +4,83 @@
<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> <style>
body { body {
background-color: #EFEFEF; background-color: #EFEFEF;
color: #2E2F30; color: #2E2F30;
text-align: center; text-align: center;
font-family: arial, sans-serif; font-family: arial, sans-serif;
margin: 0; margin: 0;
} }
div.dialog { a { color: #4183c4; text-decoration: none; }
width: 95%; a:hover { text-decoration: underline; }
max-width: 33em;
margin: 4em auto 0;
}
div.dialog > div { div.dialog {
border: 1px solid #CCC; width: 95%;
border-right-color: #999; max-width: 33em;
border-left-color: #999; margin: 4em auto 0;
border-bottom-color: #BBB; }
border-top: #00A0F0 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);
}
h1 { div.dialog > div {
font-size: 100%; border: 1px solid #CCC;
color: #0b79C5; border-right-color: #999;
line-height: 1.5em; border-left-color: #999;
} border-bottom-color: #BBB;
border-top: #00A0F0 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);
}
div.dialog > p { h1 {
margin: 0 0 1em; font-size: 100%;
padding: 1em; color: #0b79C5;
background-color: #F7F7F7; line-height: 1.5em;
border: 1px solid #CCC; }
border-right-color: #999;
border-left-color: #999; div.dialog img { margin-bottom: 0.5em; }
border-bottom-color: #999;
border-bottom-left-radius: 4px; div.dialog > p {
border-bottom-right-radius: 4px; margin: 0 0 1em;
border-top-color: #DADADA; padding: 1em;
color: #666; background-color: #F7F7F7;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); 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);
}
div.links {
margin-top: 2em;
color: #999;
}
div.links a {
color: #666;
font-weight: 200;
font-size: 14px;
margin: 0 10px;
}
</style> </style>
</head> </head>
<body> <body>
<div class="dialog"> <div class="dialog">
<div> <div>
<h1>The change you wanted was rejected.</h1> <h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p> <p>Maybe you tried to change something you didn't have access to.</p>
</div> </div>
<p>If you think you found a bug, please let us know.</p> <p>If you think you found a bug, please <a href="https://github.com/justask/justask-bugs/issues">please let us know</a>.</p>
</div>
<div class="links">
<a href="https://github.com/justask/justask-bugs/issues">Bug tracker</a> &middot;
<a href="https://twitter.com/justask_2">Twitter</a>
</div> </div>
</body> </body>
</html> </html>

View File

@ -4,62 +4,82 @@
<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> <style>
body { body {
background-color: #EFEFEF; background-color: #EFEFEF;
color: #2E2F30; color: #2E2F30;
text-align: center; text-align: center;
font-family: arial, sans-serif; font-family: arial, sans-serif;
margin: 0; margin: 0;
} }
div.dialog { a { color: #4183c4; text-decoration: none; }
width: 95%; a:hover { text-decoration: underline; }
max-width: 33em;
margin: 4em auto 0;
}
div.dialog > div { div.dialog {
border: 1px solid #CCC; width: 95%;
border-right-color: #999; max-width: 33em;
border-left-color: #999; margin: 4em auto 0;
border-bottom-color: #BBB; }
border-top: #00A0F0 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);
}
h1 { div.dialog > div {
font-size: 100%; border: 1px solid #CCC;
color: #0b79C5; border-right-color: #999;
line-height: 1.5em; border-left-color: #999;
} border-bottom-color: #BBB;
border-top: #00A0F0 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);
}
div.dialog > p { h1 {
margin: 0 0 1em; font-size: 100%;
padding: 1em; color: #0b79C5;
background-color: #F7F7F7; line-height: 1.5em;
border: 1px solid #CCC; }
border-right-color: #999;
border-left-color: #999; div.dialog img { margin-bottom: 0.5em; }
border-bottom-color: #999;
border-bottom-left-radius: 4px; div.dialog > p {
border-bottom-right-radius: 4px; margin: 0 0 1em;
border-top-color: #DADADA; padding: 1em;
color: #666; background-color: #F7F7F7;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); 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);
}
div.links {
margin-top: 2em;
color: #999;
}
div.links a {
color: #666;
font-weight: 200;
font-size: 14px;
margin: 0 10px;
}
</style> </style>
</head> </head>
<body> <body>
<div class="dialog"> <div class="dialog">
<div> <div>
<h1>We're sorry, but something went wrong.</h1> <h1>Looks like something went wrong!</h1>
</div> </div>
<p>If you think you found a bug, please let us know.</p> <p>This usually happens due to an error in our code. If you think you found a bug, <a href="https://github.com/justask/justask-bugs/issues">please let us know</a>.</p>
</div>
<div class="links">
<a href="https://github.com/justask/justask-bugs/issues">Bug tracker</a> &middot;
<a href="https://twitter.com/justask_2">Twitter</a>
</div> </div>
</body> </body>
</html> </html>

86
public/502.html Normal file
View File

@ -0,0 +1,86 @@
<!DOCTYPE html>
<html>
<head>
<title>Unicorn! (502)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
margin: 0;
}
a { color: #4183c4; text-decoration: none; }
a:hover { text-decoration: underline; }
div.dialog {
width: 95%;
max-width: 33em;
margin: 4em auto 0;
}
div.dialog > div {
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
border-top: #00A0F0 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);
}
h1 {
font-size: 100%;
color: #0b79C5;
line-height: 1.5em;
}
div.dialog img { margin-bottom: 0.5em; }
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);
}
div.links {
margin-top: 2em;
color: #999;
}
div.links a {
color: #666;
font-weight: 200;
font-size: 14px;
margin: 0 10px;
}
</style>
</head>
<body>
<div class="dialog">
<div>
<h1>This page takes way too long to load!</h1>
<img src="images/angry_unicorn.png" alt="Unicorn">
</div>
<p>Sorry about that. Please try refreshing and contact us if the problem persists.</p>
</div>
<div class="links">
<a href="https://github.com/justask/justask-bugs/issues">Bug tracker</a> &middot;
<a href="https://twitter.com/justask_2">Twitter</a>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB