2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-06-12 01:55:37 +00:00

Update app page with new "hero" approach

This commit is contained in:
Oliver Walters
2022-08-09 12:00:21 +10:00
parent 43159f75eb
commit 74e4e659af
3 changed files with 4 additions and 32 deletions

View File

@ -1,26 +0,0 @@
<section id='image-carousel' class='splide'>
<div class='splide__track'>
<ul class='splide__list' style='list-style-type: none; list-style: none;'>
{% for image in site.static_files %}
{% if image.path contains 'appgallery/' %}
<li class='splide__slide'>
<img src="{{ image.path | relative_url }}" alt="" />
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</section>
<script>
document.addEventListener( 'DOMContentLoaded', function () {
new Splide('#image-carousel', {
type: 'loop',
perPage: 3,
autoPlay: true,
pagination: false,
// pagination: false,
// focus: 'center',
}).mount();
});
</script>

View File

@ -50,11 +50,11 @@
document.addEventListener( 'DOMContentLoaded', function () {
new Splide('#image-carousel', {
type: 'loop',
perPage: 1,
perMove: 1,
perPage: {% if include.perPage %}{{ include.perPage }}{% else %}1{% endif %},
autoPlay: true,
pagination: false,
}).mount();
});
</script>
{% endif %}