omegamma/layouts/partials/section-app-header.html

47 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2021-12-30 22:58:11 +00:00
<!--
Omegamma - Hugo theme for ad5001.eu and related websites
Copyright (C) 2021-2022 Ad5001 <mail@ad5001.eu>
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.
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.
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/>.
-->
<!-- heading sections for apps -->
{{ $data := index .Site.Data .Site.Language.Lang }}
2021-08-11 23:37:14 +00:00
{{ $i18nAppData := index $data.apps .Data.AppIndex }}
{{ $AppData := index .Site.Data.metadata .Data.AppIndex }}
{{ with .Data }}
2021-10-01 15:26:36 +00:00
<section style="background: {{ .Background | safeCSS }};" class="section-header-app">
<div class="columns-container">
<div class="column col3 center text-right vertical-center {{ if .TextWhite }}text-white{{ end }}">
<br>
<h1 class="flex flex-right">&nbsp;<img src="/icons/apps/svg/{{ .AppIndex | safeHTML }}.svg" class="icon-larger-text shadowed" alt="{{ .AppIndex | safeHTML }} app icon"/>{{ $i18nAppData.name | safeHTML }}</h1>
2021-08-11 23:37:14 +00:00
<h2>{{ $i18nAppData.description | safeHTML }}</h2>
{{ if .ShowPlatforms }}
<p class="flex flex-right">{{ i18n "availableOn" }}&nbsp;
2021-08-11 23:37:14 +00:00
{{ partial "platforms.html" $AppData.platforms }}
</p>
{{ end }}
2021-06-14 15:16:22 +00:00
<div class="grid flex-right">&nbsp;
{{ partial "links.html" .Links }}
2021-06-14 15:16:22 +00:00
</div>
<br>
</div>
<div class="column col2-3 center flex">
<img class="vertical-center-img" alt="{{ $i18nAppData.name | safeHTML }} preview" src="/img/full/{{ .AppIndex }}.webp"/>
</div>
</div>
<div class="section-end-triangle"></div>
</section>
{{ end }}