You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
5.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. {% set player_bar = [
  2. ('/npc/spells', 'spells', 'Spells', false),
  3. ('/worldmap', 'worldmap', 'Maps', false),
  4. ('/player_tokens', 'tokens', 'Tokens', false),
  5. ('/shares_calculator', 'shares_calc', 'Spoil Shares', false),
  6. ('https://reddit.com/r/PalismaACKS/wiki', 'redditwiki', 'Wiki', true),
  7. ] %}
  8. {% set judge_bar = [
  9. ('/npc/party', 'npcparty', 'Generate Party', false),
  10. ('/npc/single', 'npcsingle', 'Generate NPC', false),
  11. ('/wandering_monster', 'wandering', 'Wandering Monster', false),
  12. ('/lairs', 'lairs', 'Lairs', false),
  13. ('http://autarch.co/treasure', 'treasure', 'Treasure', true),
  14. ('/quest/list', 'questlist', 'Quests', false),
  15. ('/wiki', 'wiki', 'Wiki', false),
  16. ]%}
  17. {% set navigation_bar = [
  18. ('/', 'index', 'Home', false),
  19. ('/handbook', 'handbook', 'Handbook', false),
  20. (player_bar, 'section', 'Player Resources', false),
  21. (judge_bar, 'section', 'Judge Resources', false),
  22. ('https://reddit.com/r/PalismaACKS', 'subreddit', '/r/PalismaACKS', true),
  23. ] %}
  24. {% set active_page = active_page|default('index') %}
  25. <!doctype html>
  26. <html>
  27. <head>
  28. <title>{% block title %}{% endblock %} - Palisma ACKS</title>
  29. <meta charset="utf-8">
  30. <meta name="viewport" contents="width=device-width, initial-scale=1">
  31. <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
  32. <!-- UIkit CSS -->
  33. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.6.8/dist/css/uikit.min.css" />
  34. <!-- UIkit JS -->
  35. <script src="https://cdn.jsdelivr.net/npm/uikit@3.6.8/dist/js/uikit.min.js"></script>
  36. <script src="https://cdn.jsdelivr.net/npm/uikit@3.6.8/dist/js/uikit-icons.min.js"></script>
  37. <style>
  38. h1 strong {
  39. display: block;
  40. font-size: 50%;
  41. opacity: 0.65;
  42. }
  43. .uk-navbar-nav > li > a {
  44. font-size: 1em;
  45. text-transform: none;
  46. }
  47. </style>
  48. {% block head %}
  49. {% endblock %}
  50. </head>
  51. <body>
  52. <nav class="uk-navbar-container" uk-navbar>
  53. <div class="uk-navbar-left">
  54. <a href="" class="uk-hidden@m uk-button-default uk-margin-small-left uk-margin-small-right" uk-toggle="target: #offcanvas-nav" uk-icon="menu"></a>
  55. <a href="" class="uk-navbar-item uk-logo">Palisma ACKS</a>
  56. </div>
  57. <div class="uk-navbar-center uk-visible@m">
  58. <ul class="uk-navbar-nav">
  59. {% for href, id, label, blank in navigation_bar %}
  60. {% if id == 'section' %}
  61. <li>
  62. <a href="" {% if blank is sameas true %} target="_blank" {% endif %}>{{ label|e }}</a>
  63. <div class="uk-navbar-dropdown">
  64. <ul class="uk-nav uk-navbar-dropdown-nav">
  65. {% for phref, pid, plabel, pblank in href %}
  66. <li>
  67. <a href="{{ phref|e }}" {% if pblank is sameas true %} target="_blank" {% endif %}>{{ plabel|e }}</a>
  68. </li>
  69. {% endfor %}
  70. </ul>
  71. </div>
  72. </li>
  73. {% else %}
  74. <li {% if id == active_page %} class="uk-active" {% endif %}>
  75. <a href="{{ href|e }}" {% if blank is sameas true %} target="_blank" {% endif %}>{{ label|e }}</a>
  76. </li>
  77. {% endif %}
  78. {% endfor %}
  79. </ul>
  80. </div>
  81. </nav>
  82. <div id="offcanvas-nav" uk-offcanvas="overlay: true">
  83. <div class="uk-offcanvas-bar uk-flex uk-flex-column">
  84. <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical">
  85. {% for href, id, label, blank in navigation_bar %}
  86. {% if id == 'section' %}
  87. <li class="uk-nav-header uk-margin-large-top">{{ label|e }}</li>
  88. {% for phref, pid, plabel, pblank in href %}
  89. <li {% if pid == active_page %} class="uk-active" {% endif %}>
  90. <a href="{{ phref|e }}" {% if pblank is sameas true %} target="_blank" {% endif %}>{{ plabel|e }}</a>
  91. </li>
  92. {% endfor %}
  93. <li class="uk-margin-large-bottom"/>
  94. {% else %}
  95. <li {% if id == active_page %} class="uk-active" {% endif %}>
  96. <a href="{{ href|e }}" {% if blank is sameas true %} target="_blank" {% endif %}>{{ label|e }}</a>
  97. </li>
  98. {% endif %}
  99. {% endfor %}
  100. </ul>
  101. </div>
  102. </div>
  103. <div id="base_page_content" class="uk-container uk-margin-medium-top">
  104. {% block content %}{% endblock %}
  105. </div>
  106. <footer class="uk-flex uk-flex-top uk-flex-center uk-margin-small uk-margin-medium-top">
  107. <div class="uk-text-center uk-text-small">
  108. Made by <a href="https://binaryatrocity.name">binaryatrocity</a>.
  109. ACKS &amp; related &copy; <a href="http://www.autarch.co/">Autarch</a>.
  110. </div>
  111. </footer>
  112. {% block scripts %}
  113. {% endblock %}
  114. </body>
  115. </html>