error.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Error - DarkFi Block Explorer</title>
  7. <link rel="stylesheet" href="/static/layout.css">
  8. </head>
  9. <body>
  10. <header class="header">
  11. <div class="container flex justify-between items-center">
  12. <div class="logo">>DarkFi {{ network }} Blocks</div>
  13. <nav class="nav">
  14. <a href="/">Explorer</a>
  15. <a href="#">Stats</a>
  16. <a href="https://dark.fi/book/">Docs</a>
  17. <a href="https://codeberg.org/darkrenaissance/darkfi/">Code</a>
  18. </nav>
  19. </div>
  20. </header>
  21. <main class="container section">
  22. <div class="error-page">
  23. <div class="error-content">
  24. <h1 class="error-title">{{ error_code|default('Error') }}</h1>
  25. <p class="error-message">{{ error|default('An unexpected error occurred') }}</p>
  26. <div class="error-actions">
  27. <a href="/" class="btn">Return to Home</a>
  28. <a href="javascript:history.back()" class="btn btn-outline">Go Back</a>
  29. </div>
  30. </div>
  31. </div>
  32. </main>
  33. <footer class="footer">
  34. <div class="container">
  35. <a href="https://dark.fi">Let there be Dark</a> · Code licensed under AGPL-3
  36. </div>
  37. </footer>
  38. <style>
  39. .error-page {
  40. display: flex;
  41. justify-content: center;
  42. align-items: center;
  43. min-height: 50vh;
  44. text-align: center;
  45. }
  46. .error-content {
  47. max-width: 500px;
  48. }
  49. .error-title {
  50. font-size: 4rem;
  51. color: var(--color-accent);
  52. margin-bottom: 1rem;
  53. border-left: none;
  54. padding: 0;
  55. }
  56. .error-message {
  57. font-size: 1.6rem;
  58. color: var(--color-muted);
  59. margin-bottom: 2rem;
  60. }
  61. .error-actions {
  62. display: flex;
  63. gap: 1rem;
  64. justify-content: center;
  65. }
  66. </style>
  67. </body>
  68. </html>