2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-04-27 04:56:45 +00:00

Adds gallery to functions page

This commit is contained in:
Oliver Walters 2022-08-09 11:50:23 +10:00
parent 161ed501ad
commit 43159f75eb
17 changed files with 31 additions and 3 deletions

View File

@ -26,6 +26,35 @@
{% if include.image %}
<img class="object-cover object-center rounded" alt="hero" src="{{ include.image }}">
{% endif %}
{% if include.gallery %}
<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 include.gallery %}
<li class='splide__slide'>
<img src="{{ image.path | relative_url }}" alt="" />
</li>
{% endif %}
{% endfor %}
</ul>
</div>
</section>
{% endif %}
</div>
</div>
</section>
</section>
{% if include.gallery %}
<script>
document.addEventListener( 'DOMContentLoaded', function () {
new Splide('#image-carousel', {
type: 'loop',
perPage: 1,
autoPlay: true,
pagination: false,
}).mount();
});
</script>
{% endif %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@ -3,8 +3,7 @@ layout: default
permalink: /functions
---
{% include block/hero.html title='A wealth of functions' title_2='is provided' image='https://dummyimage.com/860x600' color='by default with InvenTree' detail='By default InvenTree ships with a lot of functions in the area of part, inventory, supplier, manufacturer, machine and BOM managment.
It also enables reports, is extendible and can be extended with plugins.' %}
{% include block/hero.html title='A wealth of functions' title_2='provided' gallery='webgallery/' color='out of the box' detail='InvenTree ships with a wide range of functions for managing parts, inventory, supplier and manufacturer data, machine and BOM managment <em>and so much more</em>!<br>It also enables reports, can be integrated with external applications and can be extended with plugins.' %}
{% include block/functions.html data=site.data.functions.general extend=true no_link=true padding=false %}
{% include block/functions.html data=site.data.functions.extras extend=true padding=false %}