2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-12 02:05:29 +00:00

Add a carousel for the app index page

This commit is contained in:
Oliver
2021-08-03 00:25:52 +10:00
parent d7ab4f2420
commit 715e9e8891
14 changed files with 154 additions and 117 deletions

View File

@ -0,0 +1,37 @@
{% with image_count=8 %}
{% include "carousel_start.html" %}
{% endwith %}
{% with src="app/screenshots/screen_1.jpg", alt="App screenshot", active=True%}
{% include "carousel_img.html" %}
{% endwith %}
{% with src="app/screenshots/screen_2.jpg", alt="App screenshot" %}
{% include "carousel_img.html" %}
{% endwith %}
{% with src="app/screenshots/screen_3.jpg", alt="App screenshot" %}
{% include "carousel_img.html" %}
{% endwith %}
{% with src="app/screenshots/screen_4.jpg", alt="App screenshot" %}
{% include "carousel_img.html" %}
{% endwith %}
{% with src="app/screenshots/screen_5.jpg", alt="App screenshot" %}
{% include "carousel_img.html" %}
{% endwith %}
{% with src="app/screenshots/screen_6.jpg", alt="App screenshot" %}
{% include "carousel_img.html" %}
{% endwith %}
{% with src="app/screenshots/screen_7.jpg", alt="App screenshot" %}
{% include "carousel_img.html" %}
{% endwith %}
{% with src="app/screenshots/screen_8.jpg", alt="App screenshot" %}
{% include "carousel_img.html" %}
{% endwith %}
{% include "carousel_end.html" %}

View File

@ -11,5 +11,5 @@
{% endif %}
<div class='item{% if active %} active{% endif %}'>
<img src='{{ img_url }}' alt='{{ alt }}' style='width: 100%'>
<img class='center' src='{{ img_url }}' alt='{{ alt }}' style='{% if max_height %}max-height: {{ max_height }}; {% endif %}'>
</div>