500.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <!--
  3. ! Excerpted from "Agile Web Development with Rails",
  4. ! published by The Pragmatic Bookshelf.
  5. ! Copyrights apply to this code. It may not be used to create training material,
  6. ! courses, books, articles, and the like. Contact us if you are in doubt.
  7. ! We make no guarantees that this code is fit for any purpose.
  8. ! Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  9. -->
  10. <html>
  11. <head>
  12. <title>We're sorry, but something went wrong (500)</title>
  13. <meta name="viewport" content="width=device-width,initial-scale=1">
  14. <style>
  15. body {
  16. background-color: #EFEFEF;
  17. color: #2E2F30;
  18. text-align: center;
  19. font-family: arial, sans-serif;
  20. margin: 0;
  21. }
  22. div.dialog {
  23. width: 95%;
  24. max-width: 33em;
  25. margin: 4em auto 0;
  26. }
  27. div.dialog > div {
  28. border: 1px solid #CCC;
  29. border-right-color: #999;
  30. border-left-color: #999;
  31. border-bottom-color: #BBB;
  32. border-top: #B00100 solid 4px;
  33. border-top-left-radius: 9px;
  34. border-top-right-radius: 9px;
  35. background-color: white;
  36. padding: 7px 12% 0;
  37. box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
  38. }
  39. h1 {
  40. font-size: 100%;
  41. color: #730E15;
  42. line-height: 1.5em;
  43. }
  44. div.dialog > p {
  45. margin: 0 0 1em;
  46. padding: 1em;
  47. background-color: #F7F7F7;
  48. border: 1px solid #CCC;
  49. border-right-color: #999;
  50. border-left-color: #999;
  51. border-bottom-color: #999;
  52. border-bottom-left-radius: 4px;
  53. border-bottom-right-radius: 4px;
  54. border-top-color: #DADADA;
  55. color: #666;
  56. box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
  57. }
  58. </style>
  59. </head>
  60. <body>
  61. <!-- This file lives in public/500.html -->
  62. <div class="dialog">
  63. <div>
  64. <h1>We're sorry, but something went wrong.</h1>
  65. </div>
  66. <p>If you are the application owner check the logs for more information.</p>
  67. </div>
  68. </body>
  69. </html>