impl. partial IconheaderSubheaderText for streamlined textrendering

This commit is contained in:
Andreas Hnida 2024-02-16 08:54:15 +00:00
commit 6d5d93fae1
3 changed files with 74 additions and 77 deletions

View file

@ -0,0 +1,18 @@
{{ define "IconHeaderSubheaderText" }}
<div class="flex items-center space-x-4">
{{ with .icon }}
<i class="fas fa-{{ . }} fa-fw text-5xl text-primary py-10"></i>
{{ end }}
<div>
{{ with .headline }}
<h2 class="text-xl font-bold">{{ . }}</h2>
{{ end }}
{{ with .subline }}
<h3 class="text-lg text-gray-500">{{ . }}</h3>
{{ end }}
{{ with .text }}
<p class="text-base text-gray-700">{{ . }}</p>
{{ end }}
</div>
</div>
{{ end }}