Skip to content

Commit

Permalink
Do not remove 500.html file since it is used by nxginx
Browse files Browse the repository at this point in the history
in case of critical problems when application cannot respond
  • Loading branch information
jibees committed Aug 11, 2022
1 parent 60a5bf6 commit f474947
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions public/500.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<title>We're sorry, but something went wrong (500)</title>
<style type="text/css">
body {
background-color: #fff;
color: #666;
font-family: arial, sans-serif;

}
div.dialog {
width: 600px;
margin: auto;
}
@media only screen
and (min-width: 320px)
and (max-width: 568px) {
div.dialog, div.dialog img {
width: 95%;
}
}
div.dialog h1 {
font-size: 1.8em;
}
</style>
</head>

<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<a href="/" ><img src="/500.jpg" /></a>
<h1>We're sorry, but something went wrong.</h1>
<b>Please try again</b>
<p>This might be a temporary problem. Please click the back button to return to the previous screen or go back to <a class="go_home" href="/">Home</a> and try again.</p>
<b>We're on it</b>
<p>If you have seen this problem before, we probably already know about it and are working on a fix. We record all the errors that come up.</p>
<b>Contact support</b>
<p>If the problem persists or is urgent, please tell us about it. Find our contact details from the global <a href="https://openfoodnetwork.org/ofn-local/" target="blank">Open Food Network Local page</a>.</p>
<p>It really helps us if you can give as much detail as possible about what you were doing when this error occurred.</p>
</div>
</body>
</html>

0 comments on commit f474947

Please sign in to comment.