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.

48 lines
1.7 KiB

  1. {% set navigation_bar = [
  2. ('/', 'index', 'Home'),
  3. ('/handbook', 'handbook', 'Handbook'),
  4. ('/npc/party', 'npcparty', 'NPC Party'),
  5. ('#', 'treasure', 'Treasure Generator'),
  6. ('#', 'henchmen', 'Henchmen')
  7. ] %}
  8. {% set active_page = active_page|default('index') %}
  9. <!doctype html>
  10. <html>
  11. <head>
  12. <title>{% block title %}{% endblock %} - Atr0phy ACKS</title>
  13. <meta charset="utf-8">
  14. <meta name="viewport" contents="width=device-width, initial-scale=1">
  15. <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
  16. <!-- UIkit CSS -->
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/css/uikit.min.css" />
  18. <!-- UIkit JS -->
  19. <script src="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/js/uikit.min.js"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/uikit@3.2.4/dist/js/uikit-icons.min.js"></script>
  21. {% block head %} {% endblock %}
  22. </head>
  23. <body>
  24. <nav class="uk-navbar-container" uk-navbar>
  25. <div class="uk-navbar-left">
  26. <a href="" class="uk-navbar-item uk-logo">Atr0phy ACKS</a>
  27. </div>
  28. <div class="uk-navbar-center">
  29. <ul class="uk-navbar-nav">
  30. {% for href, id, label in navigation_bar %}
  31. <li {% if id == active_page %} class="uk-active" {% endif %}>
  32. <a href="{{ href|e }}">{{ label|e }}</a>
  33. </li>
  34. {% endfor %}
  35. </ul>
  36. </div>
  37. </nav>
  38. <div class="uk-container">
  39. {% block content %}{% endblock %}
  40. </div>
  41. </body>
  42. </html>