omegamma/layouts/apps-list.html

56 lines
2.8 KiB
HTML
Raw Permalink Normal View History

2022-01-12 11:22:45 +00:00
{{ define "main" }}
<!--
Omegamma - Hugo theme for ad5001.eu and related websites
2021-12-30 22:58:11 +00:00
2022-01-12 11:22:45 +00:00
Copyright (C) 2021-2022 Ad5001 <mail@ad5001.eu>
2021-12-30 22:58:11 +00:00
2022-01-12 11:22:45 +00:00
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
2021-12-30 22:58:11 +00:00
2022-01-12 11:22:45 +00:00
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
2021-12-30 22:58:11 +00:00
2022-01-12 11:22:45 +00:00
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
{{ partial "section1.html" (dict "Image" "/img/app0.webp" "Content" .Content) }}
2021-09-26 15:39:36 +00:00
<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/svg/{{ $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 "flags.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 }}