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.

62 lines
2.4 KiB

  1. {% set navigation_bar = [
  2. ('/', 'index', 'Home'),
  3. ('/handbook', 'handbook', 'Handbook'),
  4. ('/npc/party', 'npcparty', 'NPC Party'),
  5. ('/npc/single', 'npcsingle', 'Single NPC'),
  6. ('/npc/spells', 'spells', 'Spells'),
  7. ('/api/schema', 'api', 'API'),
  8. ('/worldmap', 'worldmap', 'World Map'),
  9. ] %}
  10. {% set active_page = active_page|default('index') %}
  11. <!doctype html>
  12. <html>
  13. <head>
  14. <title>{% block title %}{% endblock %} - Atr0phy ACKS</title>
  15. <meta charset="utf-8">
  16. <meta name="viewport" contents="width=device-width, initial-scale=1">
  17. <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
  18. <!-- UIkit CSS -->
  19. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/css/uikit.min.css" />
  20. <!-- UIkit JS -->
  21. <script src="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/js/uikit.min.js"></script>
  22. <script src="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/js/uikit-icons.min.js"></script>
  23. {% block head %} {% endblock %}
  24. </head>
  25. <body>
  26. <nav class="uk-navbar-container" uk-navbar>
  27. <div class="uk-navbar-left">
  28. <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>
  29. <a href="" class="uk-navbar-item uk-logo">Atr0phy ACKS</a>
  30. </div>
  31. <div class="uk-navbar-center uk-visible@m">
  32. <ul class="uk-navbar-nav">
  33. {% for href, id, label in navigation_bar %}
  34. <li {% if id == active_page %} class="uk-active" {% endif %}>
  35. <a href="{{ href|e }}">{{ label|e }}</a>
  36. </li>
  37. {% endfor %}
  38. </ul>
  39. </div>
  40. </nav>
  41. <div id="offcanvas-nav" uk-offcanvas="overlay: true">
  42. <div class="uk-offcanvas-bar uk-flex uk-flex-column">
  43. <ul class="uk-nav uk-nav-primary uk-nav-center uk-margin-auto-vertical">
  44. {% for href, id, label in navigation_bar %}
  45. <li {% if id == active_page %} class="uk-active" {% endif %}>
  46. <a href="{{ href|e }}">{{ label|e }}</a>
  47. </li>
  48. {% endfor %}
  49. </ul>
  50. </div>
  51. </div>
  52. <div class="uk-container">
  53. {% block content %}{% endblock %}
  54. </div>
  55. </body>
  56. </html>