From 1d8e4fd736059004fde56978ef0ed1127e193cec Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 24 Nov 2021 10:29:23 +0100 Subject: [PATCH] Fix #3 --- db/schema.rb | 2 +- public/403.html | 33 ++++++++++-------- public/404.html | 85 ++++++++++++++++++++-------------------------- public/422.html | 89 +++++++++++++++++++++++-------------------------- public/500.html | 83 ++++++++++++++++++++------------------------- 5 files changed, 135 insertions(+), 157 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index 8aafa99ed..d5dd3848f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -412,7 +412,7 @@ ActiveRecord::Schema.define(version: 2021_11_23_132213) do t.uuid "research_journal_id", null: false t.uuid "research_journal_volume_id" t.datetime "created_at", precision: 6, null: false - t.datetime "updated_at", precision: 6, null: false + t.date "updated_at", null: false t.uuid "updated_by_id" t.text "abstract" t.text "references" diff --git a/public/403.html b/public/403.html index edacef6a0..673a664c6 100644 --- a/public/403.html +++ b/public/403.html @@ -1,14 +1,19 @@ <!DOCTYPE html> <html lang="fr"> - <head> - <title>You do not have access to this page (403)</title> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width,initial-scale=1"> - <style> + +<head> + <title>You do not have access to this page (403)</title> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width,initial-scale=1"> + <style> + body { + padding: 15px; + } .error-page { - font-family: arial, sans-serif; + font-family: sans-serif; margin: 0; + text-align: center; } .error-page div.dialog { @@ -17,8 +22,8 @@ margin: calc(50vh - 140px) auto 0; } - .error-page div.dialog span{ - font-size: 200px; + .error-page div.dialog span { + font-size: 150px; font-weight: 900; letter-spacing: -0.04em; display: block; @@ -27,24 +32,24 @@ } .error-page h1 { - font-size: 16px; + font-size: 14px; line-height: 1.5em; } .error-page h1 em { font-weight: 400; } + </style> +</head> - </style> - </head> <body class="error-page"> - <!-- This file lives in public/500.html --> <div class="dialog"> <span> - 403. + 403 </span> <div> <h1>You do not have access to this page.</h1> </div> - </body> +</body> + </html> diff --git a/public/404.html b/public/404.html index 2be3af26f..c8e1da4ad 100644 --- a/public/404.html +++ b/public/404.html @@ -1,67 +1,56 @@ <!DOCTYPE html> <html> + <head> <title>The page you were looking for doesn't exist (404)</title> + <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <style> - .rails-default-error-page { - background-color: #EFEFEF; - color: #2E2F30; - text-align: center; - font-family: arial, sans-serif; - margin: 0; - } + body { + padding: 15px; + } + + .error-page { + font-family: sans-serif; + margin: 0; + text-align: center; + } - .rails-default-error-page div.dialog { - width: 95%; - max-width: 33em; - margin: 4em auto 0; - } + .error-page div.dialog { + width: 95%; + max-width: 22em; + margin: calc(50vh - 140px) auto 0; + } - .rails-default-error-page div.dialog > div { - border: 1px solid #CCC; - border-right-color: #999; - border-left-color: #999; - border-bottom-color: #BBB; - border-top: #B00100 solid 4px; - border-top-left-radius: 9px; - border-top-right-radius: 9px; - background-color: white; - padding: 7px 12% 0; - box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); - } + .error-page div.dialog span { + font-size: 150px; + font-weight: 900; + letter-spacing: -0.04em; + display: block; + width: 100%; + line-height: 0.9; + } - .rails-default-error-page h1 { - font-size: 100%; - color: #730E15; - line-height: 1.5em; - } + .error-page h1 { + font-size: 14px; + line-height: 1.5em; + } - .rails-default-error-page div.dialog > p { - margin: 0 0 1em; - padding: 1em; - background-color: #F7F7F7; - border: 1px solid #CCC; - border-right-color: #999; - border-left-color: #999; - border-bottom-color: #999; - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; - border-top-color: #DADADA; - color: #666; - box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); - } + .error-page h1 em { + font-weight: 400; + } </style> </head> -<body class="rails-default-error-page"> - <!-- This file lives in public/404.html --> +<body class="error-page"> <div class="dialog"> + <span> + 404 + </span> <div> - <h1>The page you were looking for doesn't exist.</h1> - <p>You may have mistyped the address or the page may have moved.</p> + <h1>The page you were looking for doesn't exist.<br><em>You may have mistyped the address or the page may have moved.</em></h1> </div> - <p>If you are the application owner check the logs for more information.</p> </div> </body> + </html> diff --git a/public/422.html b/public/422.html index c08eac0d1..2aef98b10 100644 --- a/public/422.html +++ b/public/422.html @@ -1,67 +1,60 @@ <!DOCTYPE html> <html> + <head> <title>The change you wanted was rejected (422)</title> + <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> + <style> - .rails-default-error-page { - background-color: #EFEFEF; - color: #2E2F30; - text-align: center; - font-family: arial, sans-serif; - margin: 0; - } + body { + padding: 15px; + } - .rails-default-error-page div.dialog { - width: 95%; - max-width: 33em; - margin: 4em auto 0; - } + .error-page { + font-family: sans-serif; + margin: 0; + text-align: center; + } - .rails-default-error-page div.dialog > div { - border: 1px solid #CCC; - border-right-color: #999; - border-left-color: #999; - border-bottom-color: #BBB; - border-top: #B00100 solid 4px; - border-top-left-radius: 9px; - border-top-right-radius: 9px; - background-color: white; - padding: 7px 12% 0; - box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); - } + .error-page div.dialog { + width: 95%; + max-width: 22em; + margin: calc(50vh - 140px) auto 0; + } - .rails-default-error-page h1 { - font-size: 100%; - color: #730E15; - line-height: 1.5em; - } + .error-page div.dialog span { + font-size: 150px; + font-weight: 900; + letter-spacing: -0.04em; + display: block; + width: 100%; + line-height: 0.9; + } - .rails-default-error-page div.dialog > p { - margin: 0 0 1em; - padding: 1em; - background-color: #F7F7F7; - border: 1px solid #CCC; - border-right-color: #999; - border-left-color: #999; - border-bottom-color: #999; - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; - border-top-color: #DADADA; - color: #666; - box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); - } + .error-page h1 { + font-size: 14px; + line-height: 1.5em; + } + + .error-page h1 em { + font-weight: 400; + } </style> </head> -<body class="rails-default-error-page"> - <!-- This file lives in public/422.html --> +<body class="error-page"> <div class="dialog"> + <span> + 422 + </span> <div> - <h1>The change you wanted was rejected.</h1> - <p>Maybe you tried to change something you didn't have access to.</p> + <h1>The change you wanted was rejected. + <br> + <em>Maybe you tried to change something you didn't have access to.</em> + </h1> </div> - <p>If you are the application owner check the logs for more information.</p> </div> </body> + </html> diff --git a/public/500.html b/public/500.html index 78a030af2..03012ca20 100644 --- a/public/500.html +++ b/public/500.html @@ -1,66 +1,57 @@ <!DOCTYPE html> <html> + <head> <title>We're sorry, but something went wrong (500)</title> + <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> + <style> - .rails-default-error-page { - background-color: #EFEFEF; - color: #2E2F30; - text-align: center; - font-family: arial, sans-serif; - margin: 0; - } + body { + padding: 15px; + } - .rails-default-error-page div.dialog { - width: 95%; - max-width: 33em; - margin: 4em auto 0; - } + .error-page { + font-family: sans-serif; + margin: 0; + text-align: center; + } - .rails-default-error-page div.dialog > div { - border: 1px solid #CCC; - border-right-color: #999; - border-left-color: #999; - border-bottom-color: #BBB; - border-top: #B00100 solid 4px; - border-top-left-radius: 9px; - border-top-right-radius: 9px; - background-color: white; - padding: 7px 12% 0; - box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); - } + .error-page div.dialog { + width: 95%; + max-width: 22em; + margin: calc(50vh - 140px) auto 0; + } - .rails-default-error-page h1 { - font-size: 100%; - color: #730E15; - line-height: 1.5em; - } + .error-page div.dialog span { + font-size: 150px; + font-weight: 900; + letter-spacing: -0.04em; + display: block; + width: 100%; + line-height: 0.9; + } - .rails-default-error-page div.dialog > p { - margin: 0 0 1em; - padding: 1em; - background-color: #F7F7F7; - border: 1px solid #CCC; - border-right-color: #999; - border-left-color: #999; - border-bottom-color: #999; - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; - border-top-color: #DADADA; - color: #666; - box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17); - } + .error-page h1 { + font-size: 14px; + line-height: 1.5em; + } + + .error-page h1 em { + font-weight: 400; + } </style> </head> -<body class="rails-default-error-page"> - <!-- This file lives in public/500.html --> +<body class="error-page"> <div class="dialog"> + <span> + 500 + </span> <div> <h1>We're sorry, but something went wrong.</h1> </div> - <p>If you are the application owner check the logs for more information.</p> </div> </body> + </html> -- GitLab