2023-01-25 07:34:35 -06:00
|
|
|
{{ $icon := default "triangle-exclamation" (.Get "icon") }}
|
|
|
|
{{ $cardColor := default "NULL" (.Get "cardColor") }}
|
|
|
|
{{ $iconColor := default "NULL" (.Get "iconColor") }}
|
|
|
|
{{ $textColor := default "NULL" (.Get "textColor") }}
|
|
|
|
|
|
|
|
{{ if eq $cardColor "NULL" }}
|
2022-09-10 14:05:37 -05:00
|
|
|
<div class="flex px-4 py-3 rounded-md bg-primary-100 dark:bg-primary-900">
|
2023-01-25 07:34:35 -06:00
|
|
|
{{ else }}
|
|
|
|
<div class="flex px-4 py-3 rounded-md" style="background-color: {{ $cardColor }}">
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if eq $iconColor "NULL" }}
|
2023-01-16 11:11:34 -06:00
|
|
|
<span class="text-primary-400 ltr:pr-3 rtl:pl-3 flex items-center">
|
2023-01-25 07:34:35 -06:00
|
|
|
{{ else }}
|
|
|
|
<span class="ltr:pr-3 rtl:pl-3 flex items-center" style="color: {{ $iconColor }}">
|
|
|
|
{{ end }}
|
|
|
|
{{ partial "icon.html" $icon }}
|
2022-09-10 14:05:37 -05:00
|
|
|
</span>
|
2023-01-25 07:34:35 -06:00
|
|
|
|
|
|
|
{{ if eq $textColor "NULL" }}
|
2022-09-10 14:05:37 -05:00
|
|
|
<span class="dark:text-neutral-300">
|
2023-01-25 07:34:35 -06:00
|
|
|
{{ else }}
|
|
|
|
<span style="color: {{ $textColor }}">
|
|
|
|
{{ end }}
|
2022-09-10 14:05:37 -05:00
|
|
|
{{- .Inner | markdownify -}}
|
|
|
|
</span>
|
|
|
|
</div>
|