omegamma/layouts/apps-list.html
2021-09-26 17:39:36 +02:00

37 lines
2 KiB
HTML

{{ define "main" }}
{{ partial "section1.html" (dict "Image" "/img/app0.webp" "Content" .Content) }}
<div id="appslist" class="grid center section-max-108">
{{ $site := .Site }}
{{ range .Site.Data.list }}
{{ $index := . }}
{{ $i18nData := index $site.Data $site.Language.Lang }}
{{ $i18nAppData := index $i18nData.apps $index }}
{{ $AppData := index $site.Data.metadata $index }}
<div class="padding-container">
<div class="block-preview" style="background-image: url(/img/preview/{{ $index }}.webp);">
<a href="{{ $index }}/" class="label-link" alt="{{ $i18nAppData.name }}">
<div class="label">
<h2>
<span class="flex app-name" style="float: left">
&nbsp;<img src="/icons/apps/{{ $index }}.svg" loading="lazy" class="icon-larger-text" alt=""/> {{ $i18nAppData.name }}
</span>
<span class="right-icon"><i class="icon-lookup icon-as-text" alt="{{ i18n "learnMore" }}"/></i></span> <!-- Hint that you can click -->
&nbsp;
</h2>
<p class="show-on-hover">{{ $i18nAppData.description }}</p>
<p class="show-on-hover">{{ i18n "status" }} {{ $i18nAppData.status }}</p>
<p class="flex show-on-hover">{{ i18n "worksOn" }}&nbsp;
{{ partial "platforms.html" $AppData.platforms }}
</p>
<p class="flex show-on-hover">{{ i18n "translated" }}&nbsp;
{{ partial "translations.html" $AppData.translated }}
</p>
<p class="primary" role="button"><i class="icon-lookup icon-as-text" alt="{{ i18n "learnMore" }}"></i>{{ i18n "learnMore" }}</p>
</div>
</a>
</div>
</div>
{{ end }}
</div>
{{ end }}