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

28 lines
1.3 KiB
HTML

<!-- heading sections for apps -->
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $i18nAppData := index $data.apps .Data.AppIndex }}
{{ $AppData := index .Site.Data.metadata .Data.AppIndex }}
{{ with .Data }}
<section style="background: {{ .Background | safeCSS }};" class="section-header">
<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/{{ .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;
{{ partial "platforms.html" $AppData.platforms }}
</p>
{{ end }}
<div class="grid flex-right">&nbsp;
{{ partial "links.html" .Links }}
</div>
<br>
</div>
<div class="column col2-3 center flex">
<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 }}