From da546109a5ab0e370ccb9827af2e2fed3b1d076f Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Mon, 28 Jul 2025 15:09:40 -0500 Subject: [PATCH] Add a custom 404 page --- config/environments/development.rb | 2 +- public/404.html | 197 +++++++++++++++++------------ 2 files changed, 114 insertions(+), 85 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 24fc6c04c..6995eab5b 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -12,7 +12,7 @@ Rails.application.configure do config.eager_load = false # Show full error reports. - config.consider_all_requests_local = true + config.consider_all_requests_local = false # Enable server timing config.server_timing = true diff --git a/public/404.html b/public/404.html index dacd6ca5b..6829f81bf 100644 --- a/public/404.html +++ b/public/404.html @@ -1,119 +1,148 @@ - - - The page you were looking for doesn’t exist (404 Not found) - - + .error-page__subtitle { + color: var(--color-accent); + margin-block-end: 1ch; + } + .error-page__notes { + font-size: var(--text-sm); + font-weight: 500; + } + - - - -
-
- +
+ +
+
404
+
Sorry, that page does‘t exist!
+
You may have mistyped the address or the page may have moved
-
-

The page you were looking for doesn’t exist. You may have mistyped the address or the page may have moved. If you’re the application owner check the logs for more information.

-
-
+ -