From 5ef188e19cec58fc94926b47298d1e07821d2a6c Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 9 Jan 2022 20:52:07 +0200 Subject: [PATCH] fix 404 page --- src/application/controller/error/404.php | 4 ++++ src/application/view/error/404.phtml | 8 ++++---- src/public/css/template/default/error/404.css | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 src/public/css/template/default/error/404.css diff --git a/src/application/controller/error/404.php b/src/application/controller/error/404.php index be3797b..72721d0 100644 --- a/src/application/controller/error/404.php +++ b/src/application/controller/error/404.php @@ -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'); \ No newline at end of file diff --git a/src/application/view/error/404.phtml b/src/application/view/error/404.phtml index 5b255f6..c23326b 100644 --- a/src/application/view/error/404.phtml +++ b/src/application/view/error/404.phtml @@ -1,8 +1,8 @@ -
-
-

-

+
+
+

+
\ No newline at end of file diff --git a/src/public/css/template/default/error/404.css b/src/public/css/template/default/error/404.css new file mode 100644 index 0000000..d091852 --- /dev/null +++ b/src/public/css/template/default/error/404.css @@ -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; +} \ No newline at end of file