From f95a93b1e4a9ea351681e21d3e955fbfa2e39d98 Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Mon, 24 Apr 2023 23:06:35 +0200 Subject: [PATCH] Update error messages and styling --- public/403.html | 66 +++++++++++++++++++++++++++++++++++++++++++++++++ public/404.html | 9 +++---- public/422.html | 9 +++---- public/500.html | 8 +++--- 4 files changed, 78 insertions(+), 14 deletions(-) create mode 100644 public/403.html diff --git a/public/403.html b/public/403.html new file mode 100644 index 0000000..c41fd23 --- /dev/null +++ b/public/403.html @@ -0,0 +1,66 @@ + + + + Access is forbidden to this page (403) + + + + + + +
+
+

You have not been granted access to this page.

+
+

If you feel you should have access to this page, please contact the site administrator.

+
+ + diff --git a/public/404.html b/public/404.html index 2be3af2..a357351 100644 --- a/public/404.html +++ b/public/404.html @@ -23,17 +23,17 @@ border-right-color: #999; border-left-color: #999; border-bottom-color: #BBB; - border-top: #B00100 solid 4px; + border-top: #c40f5b solid 4px; border-top-left-radius: 9px; border-top-right-radius: 9px; - background-color: white; + background-color: #c40f5b; padding: 7px 12% 0; box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); } .rails-default-error-page h1 { font-size: 100%; - color: #730E15; + color: white; line-height: 1.5em; } @@ -59,9 +59,8 @@

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-

If you are the application owner check the logs for more information.

+

You may have mistyped the address or the page may have moved.

diff --git a/public/422.html b/public/422.html index c08eac0..2d76701 100644 --- a/public/422.html +++ b/public/422.html @@ -23,17 +23,17 @@ border-right-color: #999; border-left-color: #999; border-bottom-color: #BBB; - border-top: #B00100 solid 4px; + border-top: #c40f5b solid 4px; border-top-left-radius: 9px; border-top-right-radius: 9px; - background-color: white; + background-color: #c40f5b; padding: 7px 12% 0; box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); } .rails-default-error-page h1 { font-size: 100%; - color: #730E15; + color: white; line-height: 1.5em; } @@ -59,9 +59,8 @@

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-

If you are the application owner check the logs for more information.

+

If you feel you should have been able to make this change, please contact the site administrator.

diff --git a/public/500.html b/public/500.html index 78a030a..a8de709 100644 --- a/public/500.html +++ b/public/500.html @@ -23,17 +23,17 @@ border-right-color: #999; border-left-color: #999; border-bottom-color: #BBB; - border-top: #B00100 solid 4px; + border-top: #c40f5b solid 4px; border-top-left-radius: 9px; border-top-right-radius: 9px; - background-color: white; + background-color: #c40f5b; padding: 7px 12% 0; box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); } .rails-default-error-page h1 { font-size: 100%; - color: #730E15; + color: white; line-height: 1.5em; } @@ -60,7 +60,7 @@

We're sorry, but something went wrong.

-

If you are the application owner check the logs for more information.

+

An application error has occured, you can notify the site administrator.