Added custom error pages.
authorMarek Stępniowski <marek@stepniowski.com>
Thu, 18 Sep 2008 20:06:29 +0000 (22:06 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Thu, 18 Sep 2008 20:06:29 +0000 (22:06 +0200)
wolnelektury/media/css/error.css [new file with mode: 0644]
wolnelektury/templates/404.html
wolnelektury/templates/500.html [new file with mode: 0644]

diff --git a/wolnelektury/media/css/error.css b/wolnelektury/media/css/error.css
new file mode 100644 (file)
index 0000000..8315734
--- /dev/null
@@ -0,0 +1,83 @@
+
+body {
+font-family: verdana, arial, sans-serif; 
+margin: 2em;
+font-size: 100%;
+}
+
+
+
+
+h1 {
+font-size: 300%;
+font-weight: bold;
+margin-top: 30px;
+}
+
+h1,h2 {
+margin-bottom: 0;
+}
+
+h2 {
+font-size: 100%;
+font-weight: bold; 
+margin-top: 1em;
+}
+
+p {
+width: 450px;
+margin-top: 0.5em;
+}
+
+img {
+       border: none;
+}
+       
+       #whoiam {
+       text-transform: uppercase;
+       letter-spacing: 0.2em;
+       font-size: 150%;
+       margin-bottom: 0.8em;
+}
+
+.howto {
+
+       color: gray;
+       font-size: 80%
+}
+
+#contact h2 {
+margin-top: 0.5em;
+}
+
+
+.haj {
+       background-color: #ffc;
+}
+
+#urle {
+margin-top: 2.3em;
+}
+
+/*
+LINKS
+*/
+
+a:link {
+color: #037;
+text-decoration: underline; 
+}
+
+a:visited {
+color: #636;
+}
+
+a:active {
+color: #900;
+text-decoration: none;
+}
+
+a:hover {
+color: #d46400;
+}
+
index 5003eae..9831864 100644 (file)
@@ -1,3 +1,26 @@
-<h1>Blad 404 - Strona nie istnieje</h1>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
+<head>
+<title>404 - Zagubiona strona w WolneLektury.pl</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/reset/reset-min.css"> 
+<link rel="stylesheet" href="/media/css/error.css" type="text/css" />
+</head>
 
-<p>(Tutaj później będzie coś więcej, naprawdę)</p>
\ No newline at end of file
+<body>
+
+<a href="/"><img src="/media/img/logo.png" /></a>
+<p class="haj" style="font-weight: bold">Podana strona nie istnieje</p>
+<p>
+Przepraszamy, ale ta strona nie istnieje. Sprawdź czy podałeś dobry adres, lub przejdź do <a href="/">strony głównej</a>.
+</p>
+
+<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+</script>
+<script type="text/javascript">
+    _uacct = "UA-2576694-1";
+    urchinTracker();
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/wolnelektury/templates/500.html b/wolnelektury/templates/500.html
new file mode 100644 (file)
index 0000000..7dc97f7
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
+<head>
+<title>500 - Błąd serwera w WolneLektury.pl</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/reset/reset-min.css"> 
+<link rel="stylesheet" href="/media/css/error.css" type="text/css" />
+</head>
+
+<body>
+
+<a href="/"><img src="/media/img/logo.png" /></a>
+<p class="haj" style="font-weight: bold">Błąd serwera</p>
+<p>
+Przepraszamy, ale wystąpił błąd serwera. Na pewno już się nim zajmujemy i postaramy się naprawić tak szybko jak to tylko możliwe. Do tego czasu proponujemy żebyś przeszedł do <a href="/">strony głównej</a>.
+</p>
+
+<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+</script>
+<script type="text/javascript">
+    _uacct = "UA-2576694-1";
+    urchinTracker();
+</script>
+</body>
+</html>
\ No newline at end of file