This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add custom 404 page

  • Loading branch information...
pixeltrix committed Feb 29, 2012
1 parent 4cb2a35 commit a0e042814d90a13bd5ab39d709b4ea2d8d1aec68
Showing with 55 additions and 0 deletions.
  1. +45 −0 404.html
  2. +10 −0 styles.css
View
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Ruby on Rails: Not Found</title>
+ <link href="/styles.css" type="text/css" media="screen" rel="stylesheet">
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-1959218-2']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+ </head>
+ <body>
+ <nav id="navigation">
+ <a href="/">Overview</a> |
+ <a href="/download/">Download</a> |
+ <a href="/deploy/">Deploy</a> |
+ <a href="https://github.com/rails/rails/issues">Bugs/Patches</a> |
+ <a href="/screencasts/">Screencasts</a> |
+ <a href="/documentation/">Documentation</a> |
+ <a href="/ecosystem/">Ecosystem</a> |
+ <a href="/community/">Community</a> |
+ <a href="http://weblog.rubyonrails.org">Blog</a>
+ </nav>
+ <section id="content">
+ <article id="article" class="overview">
+ <h1>
+ <img src="/images/headers/overview.gif" width="603" height="112" alt="Web development that doesn’t hurt">
+ </h1>
+ <p class="missing">Sorry! We couldn’t find what you were looking for.</p>
+ </article>
+ </section>
+ <footer id="footer">
+ <p>“Rails”, “Ruby on Rails”, and the Rails logo are registered trademarks of David Heinemeier Hansson. All rights reserved.</p>
+ <p>Rails is released under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT license</a>. Ruby under the <a href="http://www.ruby-lang.org/en/LICENSE.txt">Ruby License</a>.</p>
+ <p id="sponsored_by"><span>Sponsored by</span> <a href="http://37signals.com"><img src="/images/37slogo-trans.gif" width="100" height="22"></a>
+ </footer>
+ </body>
+</html>
View
@@ -245,6 +245,16 @@ div.section ul.links li.rss {
width: 670px;
margin: 0px auto 25px;
}
+#article p.missing {
+ color: #000;
+ font-family: Georgia;
+ font-size: 28px;
+ font-weight: normal;
+ line-height: 120%;
+ margin: 0px auto;
+ text-align: center;
+ width: 700px;
+}
#footer {
color: #666;
font-size: 11px;

0 comments on commit a0e0428

Please sign in to comment.