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

29 lines
1.3 KiB
HTML
Raw Normal View History

<!-- 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>
2021-08-11 23:37:14 +00:00
<h1 class="flex flex-right">&nbsp;<img src="/icons/apps/{{ .AppIndex | safeHTML }}.svg" class="icon-larger-text shadowed" alt="{{ .AppIndex | safeHTML }} app icon"/>{{ $i18nAppData.name | safeHTML }}</h1>
<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">
2021-08-11 23:37:14 +00:00
<img class="vertical-center-img" alt="{{ $i18nAppData.name | safeHTML }} preview" src="/img/full/{{ .AppIndex }}.png"/>
</div>
</div>
<div class="section-end-triangle"></div>
</section>
{{ end }}