impl. partial IconheaderSubheaderText for streamlined textrendering
This commit is contained in:
parent
b1735c862c
commit
6d5d93fae1
3 changed files with 74 additions and 77 deletions
|
|
@ -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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue