Skip to content

Commit

Permalink
Update error message pages with ETM styles
Browse files Browse the repository at this point in the history
  • Loading branch information
antw committed Oct 26, 2018
1 parent ef351ac commit 3138a4e
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 84 deletions.
74 changes: 46 additions & 28 deletions public/404.html
Expand Up @@ -2,57 +2,75 @@
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Droid Sans, Arial, sans-serif;
margin: 0;
}

div.dialog {
width: 25em;
margin: 4em auto 0 auto;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
width: 95%;
max-width: 43em;
margin: 4em auto 0;
}

div.dialog > div {
border: 1px solid #bbb;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 4em 0 4em;
padding: 2em;
}

h1 {
font-size: 100%;
color: #730E15;
font-size: 150%;
color: #9C0100;
line-height: 1.5em;
}

body > p {
width: 33em;
margin: 0 auto 1em;
padding: 1em 0;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-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);
p {
line-height: 1.5;
}

p.back {
margin-top: 1.1em;
}

a {
color: #1975ca;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

.back a {
margin-left: -1em;
padding: 10px 15px;
}

.back a:hover {
background: #1975ca;
color: white;
text-decoration: none;
}
</style>
</head>

<body>
<!-- This file lives in public/404.html -->
<div class="dialog">
<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>
<div>
<h1>Sorry, the page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved.</p>
<p class="back">
<a href="/" title="Home page">&larr; Back to the home page</a>
</p>
</div>
</div>
<p>If you are the application owner check the logs for more information.</p>
</body>
</html>
76 changes: 47 additions & 29 deletions public/422.html
Expand Up @@ -2,57 +2,75 @@
<html>
<head>
<title>The change you wanted was rejected (422)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Droid Sans, Arial, sans-serif;
margin: 0;
}

div.dialog {
width: 25em;
margin: 4em auto 0 auto;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
width: 95%;
max-width: 43em;
margin: 4em auto 0;
}

div.dialog > div {
border: 1px solid #bbb;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 4em 0 4em;
padding: 2em;
}

h1 {
font-size: 100%;
color: #730E15;
font-size: 150%;
color: #9C0100;
line-height: 1.5em;
}

body > p {
width: 33em;
margin: 0 auto 1em;
padding: 1em 0;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-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);
p {
line-height: 1.5;
}

p.back {
margin-top: 1.1em;
}

a {
color: #1975ca;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

.back a {
margin-left: -1em;
padding: 10px 15px;
}

.back a:hover {
background: #1975ca;
color: white;
text-decoration: none;
}
</style>
</head>

<body>
<!-- This file lives in public/422.html -->
<!-- This file lives in public/404.html -->
<div class="dialog">
<h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
<div>
<h1>The change you wanted was rejected.</h1>
<p>Maybe you tried to change something you didn't have access to.</p>
<p class="back">
<a href="/" title="Home page">&larr; Back to the home page</a>
</p>
</div>
</div>
<p>If you are the application owner check the logs for more information.</p>
</body>
</html>
76 changes: 49 additions & 27 deletions public/500.html
Expand Up @@ -2,56 +2,78 @@
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<style>
body {
background-color: #EFEFEF;
color: #2E2F30;
text-align: center;
font-family: arial, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Droid Sans, Arial, sans-serif;
margin: 0;
}

div.dialog {
width: 25em;
margin: 4em auto 0 auto;
border: 1px solid #CCC;
border-right-color: #999;
border-left-color: #999;
border-bottom-color: #BBB;
width: 95%;
max-width: 43em;
margin: 4em auto 0;
}

div.dialog > div {
border: 1px solid #bbb;
border-top: #B00100 solid 4px;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
background-color: white;
padding: 7px 4em 0 4em;
padding: 2em 4em;
}

h1 {
font-size: 100%;
color: #730E15;
font-size: 150%;
color: #9C0100;
line-height: 1.5em;
}

body > p {
width: 33em;
margin: 0 auto 1em;
padding: 1em 0;
background-color: #F7F7F7;
border: 1px solid #CCC;
border-right-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);
p {
line-height: 1.5;
}

p.back {
margin-top: 1.1em;
}

a {
color: #1975ca;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

.back a {
margin-left: -1em;
padding: 10px 15px;
}

.back a:hover {
background: #1975ca;
color: white;
text-decoration: none;
}
</style>
</head>

<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
<div>
<h1>We're sorry, but something went wrong.</h1>
<p>
The page you requested can't be shown at the moment. That is our
fault and we have been notified of the error. Please check back again
later. If you continue to experience this message, please feel free to
<a href="mailto:&#100;&#101;&#118;&#064;&#113;&#117;&#105;&#110;&#116;&#101;&#108;&#046;&#099;&#111;&#109;">contact us</a>.
</p>
<p class="back"><a href="/" title="Home page">&larr; Back to the home page</a></p>
</div>
</div>
<p>If you are the application owner check the logs for more information.</p>
</body>
</html>

0 comments on commit 3138a4e

Please sign in to comment.