lostplaces-frontend/components/03_Organisms/imageGrid/imageGrid.hbs

36 lines
1.3 KiB
Handlebars
Raw Permalink Normal View History

2020-08-09 23:48:51 +02:00
<div class="LP-ImageGrid">
2020-08-25 15:55:02 +02:00
<ul class="LP-ImageGrid__Container">
{{#each images}}
<li class="LP-ImageGrid__Item">
<a href="#{{this.current_id}}" class="LP-Link">
2021-10-24 19:39:00 +02:00
<img class="LP-Image" src="{{this.url}}">
2020-09-25 21:42:18 +02:00
</a>
<span class="LP-ImageGrid__DeleteItem" title="Bild löschen">
<a href="#" class="LP-Link">
<img class="LP-Icon" src="/icons/cancel.svg"/>
</a>
</span>
<div id="{{this.current_id}}" class="LP-ImageGrid__LightBox">
<img class="LP-ImageGrid__FullSizeImage" src="{{this.url}}" loading="lazy"/>
{{#if this.next_id}}
<a href="#{{this.next_id}}" class="LP-ImageGrid__Next">Next</a>
{{/if}}
{{#if this.previous_id}}
<a href="#{{this.previous_id}}" class="LP-ImageGrid__Previous">Previous</a>
{{/if}}
<span class="LP-ImageGrid__Close LP-ImageGrid__DeleteItem" title="Schließen">
<a href="#" class="LP-Link">
<img class="LP-Icon" src="/icons/cancel.svg"/>
</a>
</span>
</div>
</li>
{{/each}}
2020-09-25 21:42:18 +02:00
<li class="LP-ImageGrid__Item LP-ImageGrid__Item--add" title="Bild hinzufügen">
<a class="LP-Link" href="#">
<img class="LP-Icon" src="/icons/plus.svg"/>
</a>
</li>
</ul>
2020-08-09 23:43:40 +02:00
</div>