1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-05 06:17:37 +02:00

Added 404 page

This commit is contained in:
Andrew Davis
2018-09-02 16:46:49 -05:00
parent fee7b398ef
commit 7580f98928
3 changed files with 31 additions and 0 deletions

View File

@@ -218,3 +218,22 @@ button:hover .icon svg {
from {left: -300px; opacity: 0} from {left: -300px; opacity: 0}
to {left: 0; opacity: 1} to {left: 0; opacity: 1}
} }
.logo-404 {
max-width: 200px;
max-height: 200px;
margin: 0 auto;
display: block;
}
.logo-404 svg {
max-width: 200px;
max-height: 200px;
}
.toc-404 {
max-width: 250px;
margin: 0 auto;
}
.message-404 {
font-size: 2em;
margin: 0 auto;
text-align: center;
}

View File

@@ -0,0 +1,11 @@
<?php partial('header', ['title' => 'PHP Apprentice']) ?>
<div class="container center">
<a href="/" class="logo-404"><?= icon('elephant') ?></a>
<p class="message-404">Whoops! The page could not be found.</p>
<div class="toc-404">
<?php partial('table_of_contents') ?>
</div>
</div>
<?php partial('footer') ?>

View File

@@ -10,6 +10,7 @@ return [
'pages' => [ 'pages' => [
Page::create('index', 'index.phtml'), Page::create('index', 'index.phtml'),
Page::create('credits', 'credits.phtml'), Page::create('credits', 'credits.phtml'),
Page::create('404', '404.phtml'),
Page::create('basics', null, 'basics.php', [ Page::create('basics', null, 'basics.php', [
'title' => 'Basics', 'title' => 'Basics',
'subtitle' => 'Getting started', 'subtitle' => 'Getting started',