base.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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>Stellar Frontier</title>
  7. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css">
  8. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
  9. <style>
  10. body {
  11. background-color: #0a0a0a;
  12. color: #e0e0e0;
  13. min-height: 100vh;
  14. }
  15. .navbar {
  16. background-color: #1a1a1a;
  17. border-bottom: 1px solid #333;
  18. }
  19. .navbar-item,
  20. .navbar-link {
  21. color: #e0e0e0;
  22. }
  23. .navbar-item:hover,
  24. .navbar-link:hover {
  25. background-color: #333;
  26. color: #fff;
  27. }
  28. .card {
  29. background-color: #1a1a1a;
  30. color: #e0e0e0;
  31. border: 1px solid #333;
  32. }
  33. .title,
  34. .subtitle,
  35. .label,
  36. .input,
  37. .textarea,
  38. .select select {
  39. color: #e0e0e0;
  40. }
  41. .input,
  42. .textarea,
  43. .select select {
  44. background-color: #2a2a2a;
  45. border-color: #444;
  46. }
  47. .input::placeholder,
  48. .select select::placeholder,
  49. .textarea::placeholder {
  50. color: #e0e0e04d;
  51. }
  52. .input:focus,
  53. .textarea:focus,
  54. .select select:focus {
  55. border-color: #666;
  56. }
  57. .box {
  58. background-color: #1a1a1a;
  59. color: #e0e0e0;
  60. border: 1px solid #333;
  61. }
  62. .content h1,
  63. .content h2,
  64. .content h3,
  65. .content h4,
  66. .content h5,
  67. .content h6,
  68. .content label,
  69. .content p {
  70. color: #e0e0e0;
  71. }
  72. .label {
  73. color: #b5b5b5;
  74. }
  75. .menu-label {
  76. color: #888;
  77. }
  78. .menu-list a {
  79. color: #e0e0e0;
  80. }
  81. .menu-list a:hover {
  82. background-color: #333;
  83. color: #fff;
  84. }
  85. .menu-list a.is-active {
  86. background-color: #3273dc;
  87. color: #fff;
  88. }
  89. .table {
  90. background-color: #1a1a1a;
  91. color: #e0e0e0;
  92. }
  93. .table th {
  94. color: #fff;
  95. }
  96. .table tr:hover,
  97. .table.is-hoverable tbody tr:not(.is-selected):hover,
  98. .table.is-striped tbody tr:not(.is-selected):nth-child(2n):hover {
  99. background-color: #2a2a2a;
  100. }
  101. .table td,
  102. .table th {
  103. border-color: #333;
  104. }
  105. .table.is-striped tbody tr:not(.is-selected):nth-child(2n) {
  106. background-color: #212121;
  107. }
  108. .modal-card-head,
  109. .modal-card-body,
  110. .modal-card-foot {
  111. background-color: #1a1a1a;
  112. border-color: #333;
  113. color: #e0e0e0;
  114. }
  115. .modal-card-title {
  116. color: #e0e0e0;
  117. }
  118. hr {
  119. background-color: #333;
  120. }
  121. strong {
  122. color: #fff;
  123. }
  124. /* Space background effect */
  125. body::before {
  126. content: "";
  127. position: fixed;
  128. top: 0;
  129. left: 0;
  130. width: 100%;
  131. height: 100%;
  132. background-image:
  133. radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
  134. radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
  135. radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
  136. background-size: 550px 550px, 350px 350px, 250px 250px;
  137. background-position: 0 0, 40 60, 130 270;
  138. opacity: 0.1;
  139. z-index: -1;
  140. }
  141. </style>
  142. </head>
  143. <body>
  144. <nav class="navbar" role="navigation" aria-label="main navigation">
  145. <div class="navbar-brand">
  146. <a class="navbar-item" href="/">
  147. <strong>Stellar Frontier</strong>
  148. </a>
  149. </div>
  150. <div class="navbar-menu">
  151. <div class="navbar-start">
  152. <a class="navbar-item" href="/">Home</a>
  153. <a class="navbar-item" href="/rules">Rules</a>
  154. {% if current_user and current_user.is_authenticated %}
  155. <a class="navbar-item" href="/tickets">Support</a>
  156. <a class="navbar-item" href="/apply">Apply</a>
  157. {% endif %}
  158. </div>
  159. <div class="navbar-end">
  160. <div class="navbar-item">
  161. <div class="buttons">
  162. {% if current_user and current_user.is_authenticated %}
  163. {% if current_user.is_admin %}
  164. <a class="button is-warning" href="/admin">
  165. <strong>Admin Panel</strong>
  166. </a>
  167. {% endif %}
  168. <a class="button is-light" href="/profile">
  169. Profile
  170. </a>
  171. <a class="button is-danger" href="/auth/logout">
  172. Log out
  173. </a>
  174. {% else %}
  175. <a class="button is-primary" href="/auth/login">
  176. <strong>Log in with Discord</strong>
  177. </a>
  178. {% endif %}
  179. </div>
  180. </div>
  181. </div>
  182. </div>
  183. </nav>
  184. <section class="section">
  185. <div class="container">
  186. {% with messages = get_flashed_messages(with_categories=true) %}
  187. {% if messages %}
  188. {% for category, message in messages %}
  189. <div class="notification is-{{ category }}">
  190. {{ message }}
  191. </div>
  192. {% endfor %}
  193. {% endif %}
  194. {% endwith %}
  195. {% block content %}{% endblock %}
  196. </div>
  197. </section>
  198. <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js"></script>
  199. {% block scripts %}{% endblock %}
  200. </body>
  201. </html>