base.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  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. background-color: #2a2a2a;
  99. }
  100. .table td,
  101. .table th {
  102. border-color: #333;
  103. }
  104. .modal-card-head,
  105. .modal-card-body,
  106. .modal-card-foot {
  107. background-color: #1a1a1a;
  108. border-color: #333;
  109. color: #e0e0e0;
  110. }
  111. .modal-card-title {
  112. color: #e0e0e0;
  113. }
  114. hr {
  115. background-color: #333;
  116. }
  117. strong {
  118. color: #fff;
  119. }
  120. /* Space background effect */
  121. body::before {
  122. content: "";
  123. position: fixed;
  124. top: 0;
  125. left: 0;
  126. width: 100%;
  127. height: 100%;
  128. background-image:
  129. radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
  130. radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
  131. radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
  132. background-size: 550px 550px, 350px 350px, 250px 250px;
  133. background-position: 0 0, 40 60, 130 270;
  134. opacity: 0.1;
  135. z-index: -1;
  136. }
  137. </style>
  138. </head>
  139. <body>
  140. <nav class="navbar" role="navigation" aria-label="main navigation">
  141. <div class="navbar-brand">
  142. <a class="navbar-item" href="/">
  143. <strong>Stellar Frontier</strong>
  144. </a>
  145. </div>
  146. <div class="navbar-menu">
  147. <div class="navbar-start">
  148. <a class="navbar-item" href="/">Home</a>
  149. <a class="navbar-item" href="/rules">Rules</a>
  150. {% if current_user and current_user.is_authenticated %}
  151. <a class="navbar-item" href="/tickets">Support</a>
  152. <a class="navbar-item" href="/apply">Apply</a>
  153. {% endif %}
  154. </div>
  155. <div class="navbar-end">
  156. <div class="navbar-item">
  157. <div class="buttons">
  158. {% if current_user and current_user.is_authenticated %}
  159. {% if current_user.is_admin %}
  160. <a class="button is-warning" href="/admin">
  161. <strong>Admin Panel</strong>
  162. </a>
  163. {% endif %}
  164. <a class="button is-light" href="/profile">
  165. Profile
  166. </a>
  167. <a class="button is-danger" href="/auth/logout">
  168. Log out
  169. </a>
  170. {% else %}
  171. <a class="button is-primary" href="/auth/login">
  172. <strong>Log in with Discord</strong>
  173. </a>
  174. {% endif %}
  175. </div>
  176. </div>
  177. </div>
  178. </div>
  179. </nav>
  180. <section class="section">
  181. <div class="container">
  182. {% with messages = get_flashed_messages(with_categories=true) %}
  183. {% if messages %}
  184. {% for category, message in messages %}
  185. <div class="notification is-{{ category }}">
  186. {{ message }}
  187. </div>
  188. {% endfor %}
  189. {% endif %}
  190. {% endwith %}
  191. {% block content %}{% endblock %}
  192. </div>
  193. </section>
  194. <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js"></script>
  195. {% block scripts %}{% endblock %}
  196. </body>
  197. </html>