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.

78 lines
3.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
  1. {% extends "base.html" %}
  2. {% set active_page = "lairs" %}
  3. {% block title %}Dynamic Lairs{% 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>Legends of Palisma</strong>Dynamic Lairs</h1>
  7. </div>
  8. <br/>
  9. <div class="uk-container uk-container-small">
  10. <!-- Animal Lairs -->
  11. <h2 class="uk-text-center"><strong>Animal Lairs</strong></h2>
  12. <div uk-slider>
  13. <ul class="uk-slider-nav uk-dotnav uk-flex-center uk-margin"></ul>
  14. <div class="uk-position-relative">
  15. <div class="uk-slider-container uk-light">
  16. <ul id="animal-lairs" class="uk-slider-items uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m">
  17. {% for i in animal %}
  18. <li data-src="{{ i }}" class="gallery-img-li"><img src="{{ i }}"/></li>
  19. {% endfor %}
  20. </ul>
  21. </div>
  22. <a class="uk-position-center-left-out" href="#" uk-slidenav-previous uk-slider-item="previous"></a>
  23. <a class="uk-position-center-right-out" href="#" uk-slidenav-next uk-slider-item="next"></a>
  24. </div>
  25. </div>
  26. <!-- Humanoid Lairs -->
  27. <h2 class="uk-text-center uk-margin-xlarge-top"><strong>Humanoid Lairs</strong></h2>
  28. <div uk-slider>
  29. <ul class="uk-slider-nav uk-dotnav uk-flex-center uk-margin"></ul>
  30. <div class="uk-position-relative">
  31. <div class="uk-slider-container uk-light">
  32. <ul id="humanoid-lairs" class="uk-slider-items uk-child-width-1-2 uk-child-width-1-3@s uk-child-width-1-4@m">
  33. {% for i in humanoid %}
  34. <li data-src="{{ i }}" class="gallery-img-li"><img src="{{ i }}"/></li>
  35. {% endfor %}
  36. </ul>
  37. </div>
  38. <a class="uk-position-center-left-out" href="#" uk-slidenav-previous uk-slider-item="previous"></a>
  39. <a class="uk-position-center-right-out" href="#" uk-slidenav-next uk-slider-item="next"></a>
  40. </div>
  41. </div>
  42. </div>
  43. {% endblock %}
  44. {% block head %}
  45. <style>
  46. li.gallery-img-li {
  47. overflow: hidden;
  48. border-radius: 4px;
  49. border: 2px solid #fff;
  50. height: 300px;
  51. width: 300px;
  52. }
  53. li.gallery-img-li > img {
  54. width: 100%;
  55. height: 100%;
  56. object-fit: cover;
  57. }
  58. </style>
  59. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightgallery.js@1.4.0/dist/css/lightgallery.min.css" integrity="sha256-s47mXWRWvrLQNL9VRQX0ykfkIVSLfNJuingF/SZztsM=" crossorigin="anonymous">
  60. {% endblock %}
  61. {% block scripts %}
  62. <script src="https://cdn.jsdelivr.net/npm/lightgallery.js@1.4.0/dist/js/lightgallery.min.js" integrity="sha256-0Zhc9IDI5elFpwJZlvdAM4u/6qlxi4qIOUlHDVl5wjU=" crossorigin="anonymous"></script>
  63. <script src="https://cdn.jsdelivr.net/npm/lg-thumbnail.js@1.2.0/dist/lg-thumbnail.min.js" integrity="sha256-h70L9O3prxviKHrPHwrId33HakkgnURiB1KBHDyZOJc=" crossorigin="anonymous"></script>
  64. <script src="https://cdn.jsdelivr.net/npm/lg-fullscreen.js@1.2.0/dist/lg-fullscreen.min.js" integrity="sha256-5VFY2GRRpY51CgT/ku3jPvpWybxJ2n+pbDNz05amGwk=" crossorigin="anonymous"></script>
  65. <script src="https://cdn.jsdelivr.net/npm/lg-zoom.js@1.3.0/dist/lg-zoom.min.js" integrity="sha256-pw9GIEB9jGoek+S5xfa2Uz/8dZVjZsIYVJxy3jK3qgI=" crossorigin="anonymous"></script>
  66. <script type="text/javascript">
  67. lightGallery(document.getElementById('animal-lairs'));
  68. lightGallery(document.getElementById('humanoid-lairs'));
  69. </script>
  70. {% endblock %}