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.

86 lines
3.0 KiB

  1. {% extends "base.html" %}
  2. {% set active_page = "quest_detail" %}
  3. {% block title %}ACKS Quest Detail{% endblock %}
  4. {% block content %}
  5. <div class="uk-flex uk-flex-center uk-margin-bottom uk-margin-top">
  6. <h1 class="uk-text-center"><strong>Adventurer Conqueror King</strong>Quest Detail</h1>
  7. </div>
  8. {% if quest %}
  9. <div class="uk-container uk-container-small">
  10. <div class="uk-text-center uk-margin-large">
  11. <h1 class="uk-heading-xlarge">{{ quest['name'] }}</h1>
  12. </div>
  13. <div class="uk-flex uk-flex-center uk-margin-large-bottom">
  14. <a href="{{ quest['info']['url'] }}" class="uk-button uk-button-default" target="_blank">Info Window</a>
  15. {% if quest['tsv'] %}
  16. <a href="{{ quest['tsv']['url'] }}" class="uk-button uk-button-default">TSV File</a>
  17. {% endif %}
  18. <a href="{{ url_for('quest_manager.quest_download', level=quest['download'][0], quest_name=quest['download'][1]) }}" class="uk-button uk-button-default" target="_blank">Download</a>
  19. </div>
  20. <ul uk-accordion="multiple: true">
  21. <li>
  22. <a class="uk-accordion-title" href="#">Information</a>
  23. <div class="uk-accordion-content">
  24. <h3 class="uk-text-center">Quest Info</h3>
  25. <div id="frame-container">
  26. <iframe id="quest-frame" src="{{ quest['info']['url'] }}"></iframe>
  27. </div>
  28. </div>
  29. </li>
  30. <li class="uk-open">
  31. <a class="uk-accordion-title" href="#">Assets</a>
  32. <div class="uk-accordion-content">
  33. <h3 class="uk-text-center">Quest Assets</h3>
  34. <div uk-slideshow="animation: push">
  35. <ul class="uk-slideshow-nav uk-dotnav uk-flex-center uk-margin"></ul>
  36. <div class="uk-position-relative uk-visible-toggle uk-light" tabindex="-1">
  37. <ul class="uk-slideshow-items" uk-lightbox>
  38. {% for a in quest['assets'] %}
  39. <li>
  40. <a href="{{ a['url'] }}"><img src="{{ a['url'] }}" alt="" width="800" uk-cover></a>
  41. <div class="uk-overlay uk-overlay-primary uk-position-bottom uk-text-center uk-transition-slide-bottom">
  42. <h3 class="uk-margin-remove">{{ a['display'] }}</h3>
  43. </div>
  44. </li>
  45. {% endfor %}
  46. </ul>
  47. </div>
  48. <ul class="uk-slideshow-nav uk-dotnav uk-flex-center uk-margin"></ul>
  49. </div>
  50. </div>
  51. </li>
  52. </ul>
  53. </div>
  54. {% endif %}
  55. {% endblock %}
  56. {% block head %}
  57. <style>
  58. #asset-view img {
  59. max-width: 300px;
  60. max-height: 500px;
  61. }
  62. #frame-container {
  63. display: flex;
  64. width: 100%;
  65. height: 85vh;
  66. flex-direction: column:
  67. }
  68. #quest-frame {
  69. flex-grow: 1;
  70. border: none;
  71. margin: 0;
  72. padding: 0;
  73. }
  74. h1 strong {
  75. display: block;
  76. font-size: 50%;
  77. opacity: 0.65;
  78. }
  79. </style>
  80. <script>
  81. </script>
  82. {% endblock %}