Permalink
Browse files

more stylin'

  • Loading branch information...
1 parent b82ccaa commit 31df24459cacc32397a46cd34e9a31be8d5a390e @idiot idiot committed Jan 27, 2013
View
@@ -10,7 +10,7 @@
'mysql' => array(
'driver' => 'mysql',
- 'hostname' => 'localhost',
+ 'hostname' => '127.0.0.1',
'post' => 3306,
'username' => 'root',
'password' => '',
View
@@ -14,13 +14,6 @@
));
});
-/*
- Features
-*/
-Route::get('features', function() {
- return Layout::make('features');
-});
-
/*
Documentation
*/
@@ -97,5 +90,8 @@
404 catch all
*/
Route::any('*', function() {
- return Response::error(404);
+ Response::error(404);
+ return Layout::make('error/404', array(
+ 'title' => 'Page not found'
+ ));
});
View
@@ -1,41 +1,7 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>404</title>
+<?php echo $header; ?>
- <style>
- body {
- margin: 0; padding: 1em 2em;
- font: 1em/1.625em sans-serif;
- }
- </style>
+<div class="wrap spaced">
+ That page doesn’t exist. Unlucky.
+</div>
- <!--
- - Unfortunately, Microsoft has added a clever new
- - "feature" to Internet Explorer. If the text of
- - an error's message is "too small", specifically
- - less than 512 bytes, Internet Explorer returns
- - its own error message. You can turn that off,
- - but it's pretty tricky to find switch called
- - "smart error messages". That means, of course,
- - that short error messages are censored by default.
- - IIS always returns error messages that are long
- - enough to make Internet Explorer happy. The
- - workaround is pretty simple: pad the error
- - message with a big comment like this to push it
- - over the five hundred and twelve bytes minimum.
- - Of course, that's exactly what you're reading
- - right now.
- -->
- </head>
- <body>
-
- <h1>404</h1>
-
- <p>The page <code><?php echo Uri::current(); ?></code> was not found.</p>
-
- <p>Try the <a href="/">homepage</a></p>
-
- </body>
-</html>
+<?php echo $footer; ?>
View
@@ -1,59 +0,0 @@
-<?php echo $header; ?>
-
-<hgroup role="banner">
- <h1>Features</h1>
-</hgroup>
-
-<section id="content">
-
- <ul class="grid">
- <li class="intuitive">
- <h2>Intuitively-built</h2>
- <p>Anchor aims to take away any of the extra pains you may recieve from using software. Don&rsquo;t know when to upgrade? Anchor lets you know. Want to add custom metadata? You got it.</p>
- </li>
-
- <li class="bug_free">
- <h2>Bug-free<span class="casper">*</span></h2>
- <p>As is the constantly-developing nature of open-source software, any bugs that get found in Anchor are fixed as soon as they&rsquo;re spotted.</p>
- <p class="casper">* There may be bugs, but they&rsquo;ll get fixed.</p>
- </li>
-
- <li class="global">
- <h2>A global community</h2>
- <p>Anchor has users and contributors from all around the world, who all do their part to help make Anchor one of the best-maintained open-source projects on the internet.</p>
- </li>
-
- <li class="theming">
- <h2>Super-simple theming</h2>
- <p>If you&rsquo;ve ever used WordPress, you&rsquo;ll be able to theme Anchor within minutes. Even if you haven&rsquo;t, it&rsquo;s not a problem; you only need a basic knowledge of PHP to create powerful themes.</p>
- </li>
-
- <li class="footprint">
- <h2>A teeny-tiny footprint</h2>
- <p>Unlike the majority of behemoth systems out there, Anchor weighs in at a minuscule 200kb, uncompressed; when zipped, it&rsquo;s only 155kb &mdash; that&rsquo;s the same size as a normal JPEG image.</p>
- </li>
-
- <li class="pretty">
- <h2>Aesthetically-gifted</h2>
- <p>Anchor has been professionally-designed to ensure a nice, easy experience. Both the administration area and the site have a well-built design that&rsquo;s easily extensible.</p>
- </li>
-
- <li class="free">
- <h2>No charge</h2>
- <p>Anchor is, has, and always will be free. We won&rsquo;t ever charge for downloading, installing, licensing, or removing it. We do, however, plan to sell some premium themes in the future.</p>
- </li>
-
- <li class="help">
- <h2>Help at hand</h2>
- <p>Found a bug in Anchor? We&rsquo;re actively looking at the <a href="//github.com/anchorcms/anchor-cms">Github issues log</a> (which anyone can submit to). Got a problem with your personal copy of Anchor? We&rsquo;re <a href="http://twitter.com/anchorcms">on Twitter</a>, ready to help.</p>
- </li>
-
- <li class="finally">
- <h2>One last thing&hellip;</h2>
- <p>Did we mention Anchor was free? That&rsquo;s right, <b>it&rsquo;s free</b>. There&rsquo;s no risk of losing your money, so go <a href="/download">download it now</a>.</p>
- </li>
- </ul>
-
-</section>
-
-<?php echo $footer; ?>
@@ -17,24 +17,24 @@
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0">
</head>
- <body class="home">
+ <body class="<?php echo $page; ?>">
<header id="top">
<nav class="wrap">
<a href="/" title="Go to the Anchor homepage"><img src="/assets/img/logo.png" alt="Anchor CMS"></a>
<ul>
- <?php foreach(array('features', 'docs', 'forum', 'download') as $link): ?>
+ <?php foreach(array('docs', 'forum', 'download') as $link): ?>
<?php $class = (strpos($page, $link) !== false) ? ' class="active"' : ''; ?>
<li<?php echo $class; ?>><?php echo Html::link($link, ucwords($link)); ?></li>
<?php endforeach; ?>
</ul>
</nav>
+ <h1 class="wrap">
+ <?php echo isset($heading) ? $heading : $title; ?>
+ </h1>
+
<?php if(isset($homepage)): ?>
- <h1 class="wrap">
- <?php echo isset($heading) ? $heading : $title; ?>
- </h1>
-
<img class="screenie" src="/assets/img/screenshot.png">
<?php endif; ?>
</header>
@@ -8,6 +8,10 @@
width: 1000px;
}
+ .wrap.spaced {
+ min-height: 210px;
+ padding: 80px 0 60px;
+ }
.wrap > * {
max-width: 960px;
}
@@ -112,7 +112,7 @@ button, .btn {
-webkit-animation: slide 1.2s;
}
-.features {
+ul.features {
margin: 50px auto;
}
.features h2 {
@@ -122,7 +122,7 @@ button, .btn {
font-size: 14px;
font-weight: 500;
}
- .features img {
+ .features li img {
float: left;
margin-right: 15px;

0 comments on commit 31df244

Please sign in to comment.