diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-17 12:12:22 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-17 12:12:22 +0300 |
| commit | 68fc9e55e538e03f94509731ab41a0c8cf96710f (patch) | |
| tree | 3edb1e81864ac3eb35ba0fe8087ed24da1b812bf /public/app/views/error | |
| parent | 84b2da85a1b452922dadb6a609533b9945afe51d (diff) | |
| download | classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.gz classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.bz2 classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.zip | |
setup a real server environment (apache DocumentRoot=/var/www/public)
Diffstat (limited to 'public/app/views/error')
| -rw-r--r-- | public/app/views/error/404.php | 44 | ||||
| -rw-r--r-- | public/app/views/error/general.php | 55 |
2 files changed, 99 insertions, 0 deletions
diff --git a/public/app/views/error/404.php b/public/app/views/error/404.php new file mode 100644 index 0000000..2b67e8d --- /dev/null +++ b/public/app/views/error/404.php @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>404: Not Found</title> + + <style> + html,body{ + padding:0; margin:0; + font-size:1.25em; font-family: Arial, Helvetica, Ubuntu, sans-serif; + color: #037; background: #eee; + line-height:1.2em; + } + h3 { + font-size: 2em; font-style: normal; + font-weight: 400; + color: #05a; + margin: 0; padding: 5px; + opacity: 0.27; + border-bottom: 1px solid #05a; + } + .container { display: flex; height: 100vh; align-items:center; } + .content { position: relative; + max-width:320px; width: 100%; + margin: auto auto; padding: 1.5em; + text-align: center; justify-center: center; + opacity: .33; + } + </style> + </head> + <body> + <div class='container'> + <div class='content'> + <h3>4O4</h3> + Not found<br /> + <!-- + — + <br /> + <span><?= $message ?? "and I still haven't found what I'm looking for." ?></span> + --> + </div> + </div> + </body> +</html> diff --git a/public/app/views/error/general.php b/public/app/views/error/general.php new file mode 100644 index 0000000..257e68d --- /dev/null +++ b/public/app/views/error/general.php @@ -0,0 +1,55 @@ +<?php +/** general message template + * + * passed: + * @var $title (string): page title + * @var $message (string): message + */ +?><!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title> + <?= isset($title) + ? (SITE_TITLE .": ". $title) + : PAGE_404_TITLE + ?> + </title> + + <style> + html,body{ + padding:0; margin:0; + font-size:1.25em; font-family: Arial, Helvetica, Ubuntu, sans-serif; + color: #037; background: #eee; + line-height:1.2em; + } + h3 { + font-size: 2em; font-style: normal; + font-weight: 400; + color: #05a; + margin: 0; padding: 5px; + opacity: 0.27; + border-bottom: 1px solid #05a; + } + .container { display: flex; height: 100vh; align-items:center; } + .content { position: relative; + max-width: 480px; width: 100%; + margin: auto auto; padding: 1.5em; + text-align: center; justify-center: center; + opacity: .33; + font-size: .87em + } + </style> + </head> + <body> + <div class='container'> + <div class='content'> + <h3><?= isset($title) ? $title : PAGE_404_TITLE ?></h3> + Oops!<br /> + — + <br /> + <span><?= $message ?? "" ?></span> + </div> + </div> + </body> +</html> |
