Improved the generic error view and made it consistent with other system views.

This commit is contained in:
Taylor Otwell
2011-07-11 09:08:46 -07:00
parent d60772e534
commit 9249ab7d40

View File

@@ -4,53 +4,84 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>500 - Internal Server Error</title> <title>500 - Internal Server Error</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 {
font-size: 40px;
margin: 0 0 10px 0;
} }
a { a {
color: #000; color: #7089b3;
font-weight: bold;
text-decoration: none;
}
h1.laravel {
font-family: 'Lobster Two', Helvetica, serif;
font-size: 60px;
margin: 0 0 15px -10px;
padding: 0;
text-shadow: -1px 1px 1px #fff;
}
h2 {
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-bottom: 15px;
margin-top: 20px;
width: 80%;
} }
#wrapper { #wrapper {
width: 740px; background-color: #fff;
border-radius: 10px;
margin: 0 auto; margin: 0 auto;
padding: 10px;
width: 80%;
} }
#content { #wrapper h2:first-of-type {
padding: 10px 10px 10px 10px; margin-top: 0;
background-color: #ffebe8;
border: 1px solid #dd3c10;
border-radius: 10px;
} }
</style> </style>
</head> </head>
<body> <body>
<div id="wrapper"> <div id="header">
<?php <?php
$messages = array('Whoops!', 'Oh no!', 'Ouch!'); $messages = array('Whoops!', 'Oh no!', 'Ouch!');
$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>
<div id="content"> <div id="wrapper">
An error occured while we were processing your request. <?php
<br /><br /> $apologies = array("It's not your fault.", "Don't give up on us.", "We're really sorry.");
Would you like go to our <a href="<?php echo System\Config::get('application.url'); ?>">home page</a> instead? $apology = $apologies[mt_rand(0, 2)];
</div> ?>
<h2><?php echo $apology; ?></h2>
<p>Something failed while we were handling your request. 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>