Browse Source

fix 404 page

main
ghost 3 years ago
parent
commit
5ef188e19c
  1. 4
      src/application/controller/error/404.php
  2. 8
      src/application/view/error/404.phtml
  3. 14
      src/public/css/template/default/error/404.css

4
src/application/controller/error/404.php

@ -4,4 +4,8 @@ header('HTTP/1.0 404 Not Found'); @@ -4,4 +4,8 @@ header('HTTP/1.0 404 Not Found');
$metaTitle = _('Page not Found | Twisterarmy Cloud');
// Load dependencies
$metaStyles = ['css/template/default/error/404.css',];
$metaScripts = [];
require(PROJECT_DIR . '/application/view/error/404.phtml');

8
src/application/view/error/404.phtml

@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
<?php include(PROJECT_DIR . '/application/controller/common/header/guest.php') ?>
<div class="mw-1024 mx-auto of-hidden">
<div class="mw-360 mx-auto my-100 bg-c-4 b-r-3 py-28 px-24">
<h1 class="f-size-65 f-normal mb-20 t-center"><?php echo _('404') ?></h1>
<p class="t-center"><?php echo _('Page not Found') ?></p>
<div class="container">
<div class="error404">
<h1><?php echo _('404') ?></h1>
<?php echo _('Page not Found') ?>
</div>
</div>
<?php include(PROJECT_DIR . '/application/controller/common/footer/guest.php') ?>

14
src/public/css/template/default/error/404.css

@ -0,0 +1,14 @@ @@ -0,0 +1,14 @@
.error404 {
border-radius: 3px;
padding: 36px 16px;
margin: 100px auto;
background-color: #272E39;
width: 360px;
text-align: center;
}
.error404 h1 {
margin-bottom: 20px;
font-weight: normal;
font-size: 36px;
}
Loading…
Cancel
Save