Adds background image for errors page

This commit is contained in:
Alberto Garcia Cabeza
2015-09-08 14:46:58 +02:00
parent 3652de4a8f
commit c8fb73fe8f
4 changed files with 39 additions and 51 deletions

View File

@@ -5,7 +5,7 @@
<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: #065687; background: #065687 url('errors_bg.jpg');
color: #2E2F30; color: #2E2F30;
font-family: arial, sans-serif; font-family: arial, sans-serif;
margin: 0; margin: 0;
@@ -16,17 +16,24 @@
color: white; color: white;
font-size: 160px; font-size: 160px;
line-height: 160px; line-height: 160px;
margin-bottom: 0; margin: 0;
} }
h2 { h2 {
color: white; color: white;
} }
div.error {
margin-top: -144px;
position: absolute;
top: 50%;
width: 100%;
}
</style> </style>
</head> </head>
<body> <body>
<div> <div class="error">
<h1>404</h1> <h1>404</h1>
<h2>Not found.</h2> <h2>Not found.</h2>
</div> </div>

View File

@@ -1,67 +1,41 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>The change you wanted was rejected (422)</title> <title>Error 422 | The change you wanted was rejected</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: #065687 url('errors_bg.jpg');
color: #2E2F30; color: #2E2F30;
text-align: center;
font-family: arial, sans-serif; font-family: arial, sans-serif;
margin: 0; margin: 0;
} text-align: center;
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: #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);
} }
h1 { h1 {
font-size: 100%; color: white;
color: #730E15; font-size: 160px;
line-height: 1.5em; line-height: 160px;
margin: 0;
} }
div.dialog > p { h2 {
margin: 0 0 1em; color: white;
padding: 1em; }
background-color: #F7F7F7;
border: 1px solid #CCC; div.error {
border-right-color: #999; margin-top: -144px;
border-left-color: #999; position: absolute;
border-bottom-color: #999; top: 50%;
border-bottom-left-radius: 4px; width: 100%;
border-bottom-right-radius: 4px;
border-top-color: #DADADA;
color: #666;
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
} }
</style> </style>
</head> </head>
<body> <body>
<!-- This file lives in public/422.html --> <div class="error">
<div class="dialog"> <h1>422</h1>
<div> <h2>The change you wanted was rejected.</h2>
<h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
</div>
<p>If you are the application owner check the logs for more information.</p>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -5,7 +5,7 @@
<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: #065687; background: #065687 url('errors_bg.jpg');
color: #2E2F30; color: #2E2F30;
font-family: arial, sans-serif; font-family: arial, sans-serif;
margin: 0; margin: 0;
@@ -16,17 +16,24 @@
color: white; color: white;
font-size: 160px; font-size: 160px;
line-height: 160px; line-height: 160px;
margin-bottom: 0; margin: 0;
} }
h2 { h2 {
color: white; color: white;
} }
div.error {
margin-top: -144px;
position: absolute;
top: 50%;
width: 100%;
}
</style> </style>
</head> </head>
<body> <body>
<div> <div class="error">
<h1>500</h1> <h1>500</h1>
<h2>Internal server error.</h2> <h2>Internal server error.</h2>
</div> </div>

BIN
public/errors_bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB