error.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Error {{.Data}} — a·muse</title>
  7. <link rel="stylesheet" href="/static/style/style.css" />
  8. <link rel="icon" type="image/svg+xml" href="/static/img/logo.svg">
  9. <link rel="apple-touch-icon" type="image/svg+xml" href="/static/img/logo.svg">
  10. </head>
  11. <body>
  12. <header class="w12 padding-bottom-_25 flex flex-row flex-justify-space flex-align-centre">
  13. <a href="/" class="decoration-none">
  14. <h1 class="inline valign-mid text sans margin-lr-1">a·muse</h1>
  15. </a>
  16. </header>
  17. <main class="margin-lr-1">
  18. <div class="font-2 w12 flex flex-centre margin-top-10">
  19. <div>
  20. <div class="centre sans">
  21. <span class="font-3">{{.Strings.Error.error}} {{.Data}}</span><br/>
  22. <span class="font-2 text-grey">{{.GetErrorData .Data "name"}}</span>
  23. </div>
  24. <div class="margin-top-10">
  25. <p>{{.GetErrorData .Data "quote"}}</p>
  26. <p class="indent-2 sans">—{{.GetErrorData .Data "character"}} (<span class="italic sans">{{.GetErrorData .Data "title"}}</span>)</p>
  27. </div>
  28. {{if eq .Data 401}}
  29. <div>
  30. <a href="/login" class="sans">{{.Strings.Global.login}}</a>
  31. <a href="/signup" class="sans">{{.Strings.Global.signup}}</a>
  32. </div>
  33. {{end}}
  34. </div>
  35. </div>
  36. </main>
  37. </body>
  38. </html>