aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2011-10-14 00:04:24 +0200
committerAlex Legler <a3li@gentoo.org>2011-10-14 00:04:24 +0200
commit27fac2cc2c386f6678b7280a2be761276df425d2 (patch)
tree19081af50f91f93ffda8785bbd6558f284d81b26
parentAllow more than just octal numbers as advisory ID. (diff)
downloadglsamaker-27fac2cc2c386f6678b7280a2be761276df425d2.tar.gz
glsamaker-27fac2cc2c386f6678b7280a2be761276df425d2.tar.bz2
glsamaker-27fac2cc2c386f6678b7280a2be761276df425d2.zip
Improve fatal errors. Thanks to craig for the suggestion.
-rw-r--r--public/404.html8
-rw-r--r--public/500.html7
-rw-r--r--public/error-404.pngbin0 -> 18691 bytes
-rw-r--r--public/error-500.pngbin0 -> 7810 bytes
4 files changed, 11 insertions, 4 deletions
diff --git a/public/404.html b/public/404.html
index 9a48320..8c1ba22 100644
--- a/public/404.html
+++ b/public/404.html
@@ -3,7 +3,7 @@
<head>
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ body { background-color: #D3CFE5; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
@@ -11,8 +11,11 @@
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
+ background: url(/error-404.png) center left no-repeat;
+ background-color: white;
+ padding-left: 150px;
}
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ h1 { font-size: 100%; color: #5B4A73; line-height: 1.5em; }
</style>
</head>
@@ -21,6 +24,7 @@
<div class="dialog">
<h1>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>(Or you just had too much wine.)</p>
</div>
</body>
</html>
diff --git a/public/500.html b/public/500.html
index b80307f..4ba71a9 100644
--- a/public/500.html
+++ b/public/500.html
@@ -3,7 +3,7 @@
<head>
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
+ body { background-color: #D3CFE5; color: #666; text-align: center; font-family: arial, sans-serif; }
div.dialog {
width: 25em;
padding: 0 4em;
@@ -11,8 +11,10 @@
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
+ background: url(/error-500.png) bottom right no-repeat;
+ background-color: white;
}
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
+ h1 { font-size: 100%; color: #5B4A73; line-height: 1.5em; }
</style>
</head>
@@ -21,6 +23,7 @@
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
+ <p>(umad?)</p>
</div>
</body>
</html>
diff --git a/public/error-404.png b/public/error-404.png
new file mode 100644
index 0000000..0676c0a
--- /dev/null
+++ b/public/error-404.png
Binary files differ
diff --git a/public/error-500.png b/public/error-500.png
new file mode 100644
index 0000000..1027855
--- /dev/null
+++ b/public/error-500.png
Binary files differ