Commit d60772e5 authored by Taylor Otwell's avatar Taylor Otwell

Improved the default 404 page and made it consistent with other system views.

parent 3adfe640
...@@ -4,53 +4,84 @@ ...@@ -4,53 +4,84 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>404 - Not Found</title> <title>404 - Not Found</title>
<link href='http://fonts.googleapis.com/css?family=Ubuntu&amp;subset=latin' rel='stylesheet' type='text/css'> <link href="http://fonts.googleapis.com/css?family=Quattrocento&amp;v1" rel="stylesheet" type="text/css" media="all" />
<link href="http://fonts.googleapis.com/css?family=Ubuntu&amp;v1" rel="stylesheet" type="text/css" media="all" />
<link href="http://fonts.googleapis.com/css?family=Lobster+Two&amp;v1" rel="stylesheet" type="text/css" media="all" />
<style type="text/css"> <style type="text/css">
body { body {
background-color: #fff; background-color: #eee;
margin: 45px 0 0 0; color: #6d6d6d;
font-family: 'Ubuntu', sans-serif; font-family: 'Ubuntu';
font-size: 16px; font-size: 16px;
color: #3f3f3f;
} }
h1 { a {
font-size: 40px; color: #7089b3;
margin: 0 0 10px 0; font-weight: bold;
text-decoration: none;
} }
a { h1.laravel {
color: #000; font-family: 'Lobster Two', Helvetica, serif;
font-size: 60px;
margin: 0 0 15px -10px;
padding: 0;
text-shadow: -1px 1px 1px #fff;
} }
#wrapper { h2 {
width: 740px; font-family: 'Quattrocento', serif;
font-size: 30px;
margin: 30px 0 0 0;
padding: 0;
text-shadow: -1px 1px 1px #fff;
}
p {
margin: 10px 0 0 0;
line-height: 25px;
}
#header {
margin: 0 auto; margin: 0 auto;
margin-bottom: 15px;
margin-top: 20px;
width: 80%;
} }
#content { #wrapper {
padding: 10px 10px 10px 10px; background-color: #fff;
background-color: #ffebe8;
border: 1px solid #dd3c10;
border-radius: 10px; border-radius: 10px;
margin: 0 auto;
padding: 10px;
width: 80%;
}
#wrapper h2:first-of-type {
margin-top: 0;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="wrapper"> <div id="header">
<?php <?php
$messages = array('Should we ask for directions?', 'This doesn\'t look familiar.', 'We need a map.'); $messages = array("We're lost.", "This doesn't look familiar.", "We need a map.");
$message = $messages[mt_rand(0, 2)]; $message = $messages[mt_rand(0, 2)];
?> ?>
<h1><?php echo $message; ?></h1> <h1 class="laravel"><?php echo $message; ?></h1>
<div id="content">
The resource you requested was not found.
<br /><br />
Would you like go to our <a href="<?php echo System\Config::get('application.url'); ?>">home page</a> instead?
</div> </div>
<div id="wrapper">
<?php
$apologies = array("This is embarrassing.", "Don't give up on us.", "We're really sorry.");
$apology = $apologies[mt_rand(0, 2)];
?>
<h2><?php echo $apology; ?></h2>
<p>We couldn't find the resource you requested. Would you like go to our <a href="<?php echo System\Config::get('application.url'); ?>">home page</a> instead?</p>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment