diff --git a/app/Views/claims_dash.php b/app/Views/claims_dash.php index 804b2621..5e812ab3 100644 --- a/app/Views/claims_dash.php +++ b/app/Views/claims_dash.php @@ -151,10 +151,7 @@ } - -
+
diff --git a/app/Views/endorsement_dash.php b/app/Views/endorsement_dash.php index 1994460a..afb18db6 100755 --- a/app/Views/endorsement_dash.php +++ b/app/Views/endorsement_dash.php @@ -193,7 +193,7 @@ -
+
diff --git a/app/Views/errors/404.php b/app/Views/errors/404.php index 7bb7897f..1cb33cf5 100755 --- a/app/Views/errors/404.php +++ b/app/Views/errors/404.php @@ -41,11 +41,19 @@ text-align: center; } + .error-illustration-frame { + display: inline-block; + max-width: 100%; + line-height: 0; + margin: 0 auto; + } + .error-image { - width: min(100%, 560px); - height: auto; display: block; - margin: 0 auto 10px auto; + width: auto !important; + height: auto !important; + max-width: 100% !important; + object-fit: contain; } .error-title { @@ -98,7 +106,7 @@ background-image: radial-gradient(circle at 0 0, rgba(87, 233, 255, 0.12) 0, rgba(87, 233, 255, 0.12) 120px, transparent 120px), radial-gradient(circle at 100% 100%, rgba(87, 233, 255, 0.12) 0, rgba(87, 233, 255, 0.12) 140px, transparent 140px); } - .error-image { + .error-illustration-frame { margin-bottom: 20px; } @@ -113,7 +121,13 @@
- /assets/images/errors/404_illustration.jpg" alt="404 page not found illustration"> +
+ /assets/images/errors/404_illustration.png" + decoding="async" + fetchpriority="high" + alt="404 page not found"> +

PAGE NOT FOUND

diff --git a/app/Views/errors/html/error_404.php b/app/Views/errors/html/error_404.php index e506f083..711159eb 100755 --- a/app/Views/errors/html/error_404.php +++ b/app/Views/errors/html/error_404.php @@ -1,84 +1,23 @@ - - - - - <?= lang('Errors.pageNotFound') ?> + - div.logo { - height: 200px; - width: 155px; - display: inline-block; - opacity: 0.08; - position: absolute; - top: 2rem; - left: 50%; - margin-left: -73px; - } - body { - height: 100%; - background: #fafafa; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - color: #777; - font-weight: 300; - } - h1 { - font-weight: lighter; - letter-spacing: normal; - font-size: 3rem; - margin-top: 0; - margin-bottom: 0; - color: #222; - } - .wrap { - max-width: 1024px; - margin: 5rem auto; - padding: 2rem; - background: #fff; - text-align: center; - border: 1px solid #efefef; - border-radius: 0.5rem; - position: relative; - } - pre { - white-space: normal; - margin-top: 1.5rem; - } - code { - background: #fafafa; - border: 1px solid #efefef; - padding: 0.5rem 1rem; - border-radius: 5px; - display: block; - } - p { - margin-top: 1.5rem; - } - .footer { - margin-top: 2rem; - border-top: 1px solid #efefef; - padding: 1em 2em 0 2em; - font-size: 85%; - color: #999; - } - a:active, - a:link, - a:visited { - color: #dd4814; - } - - - -

-

404

+declare(strict_types=1); -

- - - - - -

-
- - +/** + * CodeIgniter resolves PageNotFoundException to this file (see ExceptionHandler::determineView). + * Delegate to the NHance branded page at Views/errors/404.php. + */ + +$page_name = $page_name ?? 'NHance'; + +if (ENVIRONMENT === 'production') { + $displayMessage = lang('Errors.sorryCannotFind'); + if ($displayMessage === '') { + $displayMessage = "Sorry, the page you're looking for doesn't exist or has been moved."; + } +} else { + $displayMessage = nl2br(esc($message ?? '')); +} + +$message = $displayMessage; + +include dirname(__DIR__) . DIRECTORY_SEPARATOR . '404.php'; diff --git a/app/Views/leads_dash.php b/app/Views/leads_dash.php index 7fb07fb6..9a0cec9a 100644 --- a/app/Views/leads_dash.php +++ b/app/Views/leads_dash.php @@ -156,10 +156,7 @@ - -
+
diff --git a/public/assets/images/errors/404_illustration.png b/public/assets/images/errors/404_illustration.png new file mode 100644 index 00000000..762e311c Binary files /dev/null and b/public/assets/images/errors/404_illustration.png differ diff --git a/public/assets/images/errors/404_illustration_old.jpg b/public/assets/images/errors/404_illustration_old.jpg new file mode 100644 index 00000000..e69197a6 Binary files /dev/null and b/public/assets/images/errors/404_illustration_old.jpg differ