TeaWithStrangers/tws-on-rails

View on GitHub
public/500.html

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
<head>
  <title>Something went wrong! 500!</title>
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <style>
  body {
    background-color: #fae8d5;
    color: #404040;
    text-align: left;
    font-family: arial, sans-serif;
    margin: 0;
  }

  div.dialog {
    width: 95%;
    max-width: 45em;
    margin: 4em auto 0;
  }

  div.dialog > div {
    padding: 5%;
  }

  h1 {
    font-size: 100%;
    color: #b53d39;
    line-height: 1.5em;
  }

  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: #404040;
  }
  p.owner {
    display: none;
  }
  a {
    color: #b53d39;
    text-decoration: underline;
  }
  .img-contain {
    width: 100%;
    text-align: center;
  }
  img {
    width: 25%;
  }
  </style>
</head>

<body>
  <!-- This file lives in public/500.html -->
  <div class="dialog">
    <div>
      <div class="img-contain">
        <a href="/"><img src="/teacup.png" /></a>
      </div>
      <h1>This is embarrassing.</h1>
      <p>There's a good chance you just tried to sign up for tea time and it didn't work. It might be because you've signed up before!</p>
      <p>If that's the case, log into the site with the same email and the password we emailed you when you first signed up.</p>
      <p>If you're still running into issues, you can <a href="mailto:ankit@teawithstrangers.com?Subject=The%20site%20is%20broken!">email me (Ankit)</a> and I'll help you sort this out!</p>
      <p>While you're here though, might as well watch a frog making the most amazing sounds of all time:</p>
      <iframe width="560" height="315" src="//www.youtube.com/embed/cBkWhkAZ9ds" frameborder="0" allowfullscreen></iframe>
    </div>
    <p class="owner">If you are the application owner check the logs for more information.</p>
  </div>
</body>
</html>