From c7ac70ff84e89a978d20361987a95c31fc03c071 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Mon, 31 Jan 2011 09:18:24 +0100 Subject: Make error page more beautiful --- blogthon.cgi | 11 ++++++++--- error.css | 29 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 error.css diff --git a/blogthon.cgi b/blogthon.cgi index bcb0db1..0aed854 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -39,10 +39,15 @@ def generate_uuid(string): def errorpage(string): document_header("xhtml-strict") - print "Error!" + print "" + print tab + "Error!" + print tab + "" + print "" print "" - print "

Error!



" - print tab + string + print tab + "
" + print tab*2 + "

Error!

" + print tab*2 + "

" + string + "

" + print tab + "
" print "" print "" sys.exit() diff --git a/error.css b/error.css new file mode 100644 index 0000000..56b45c4 --- /dev/null +++ b/error.css @@ -0,0 +1,29 @@ +* { + margin: 0px; + padding: 0px; +} + +body, html { + text-align: center; + font-family: Times; +} + +.container { + margin-top: 20px; + margin-left: auto; + margin-right: auto; + width: 300px; + border: 1px solid #666; + -moz-border-radius: 10px; + background: #eee; +} + +.title { + border-bottom: 1px dotted #999; + font-size: 20px; + color: #f30; +} + +.text { + font-size: 12px; +} -- cgit v1.2.3