Make error page more beautiful
This commit is contained in:
parent
b32a982b81
commit
c7ac70ff84
11
blogthon.cgi
11
blogthon.cgi
@ -39,10 +39,15 @@ def generate_uuid(string):
|
||||
|
||||
def errorpage(string):
|
||||
document_header("xhtml-strict")
|
||||
print "<head><title>Error!</title></head>"
|
||||
print "<head>"
|
||||
print tab + "<title>Error!</title>"
|
||||
print tab + "<link rel=\"stylesheet\" type=\"text/css\" href=\"error.css\" />"
|
||||
print "</head>"
|
||||
print "<body>"
|
||||
print "<h1>Error!</h1><br /><br />"
|
||||
print tab + string
|
||||
print tab + "<div class=\"container\">"
|
||||
print tab*2 + "<div class=\"title\"><h1>Error!</h1></div>"
|
||||
print tab*2 + "<div class=\"text\"><h2>" + string + "</h2></div>"
|
||||
print tab + "</div>"
|
||||
print "</body>"
|
||||
print "</html>"
|
||||
sys.exit()
|
||||
|
29
error.css
Normal file
29
error.css
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user