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

27 lines
1.2 KiB
HTML

<!-- heading sections for apps -->
{{ $data := index .Site.Data .Site.Language.Lang }}
{{ $appdata := index $data.apps .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" alt=""/>{{ $appdata.name | safeHTML }}</h1>
<h2>{{ $appdata.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="{{ $appdata.name | safeHTML }} preview" src="/img/full/{{ .AppIndex }}.png"/>
</div>
</div>
<div class="section-end-triangle"></div>
</section>
{{ end }}