feat: optional email heading logo

This commit is contained in:
Paul Werner 2023-10-05 07:34:34 +02:00
parent 8e48911ca4
commit 0e16737407
3 changed files with 17 additions and 3 deletions

View file

@ -2,7 +2,13 @@
<table cellpadding="0" cellspacing="0" border="0" align="center" class="text-center">
<tr class="text-center">
<td align="center" class="text-center">
<img class="h-10" src="https://mailwind.blob.core.windows.net/website/logo.png" alt="logo" />
<#if (properties.headingLogoUrl!"") != "">
<img class="h-10" src="${properties.headingLogoUrl}" alt="logo" />
<#else>
<h1 class="text-center text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white">
${kcSanitize(kcSanitize(realmName!""))}
</h1>
</#if>
</td>
</tr>
</table>

View file

@ -2,7 +2,13 @@
<table cellpadding="0" cellspacing="0" border="0" align="center" class="text-center" style="text-align: center;">
<tr class="text-center" style="text-align: center;">
<td align="center" class="text-center" style="text-align: center;">
<img class="h-10" src="https://mailwind.blob.core.windows.net/website/logo.png" alt="logo" style="height: 40px;">
<#if (properties.headingLogoUrl!"") != "">
<img class="h-10" src="${properties.headingLogoUrl}" alt="logo" style="height: 40px;">
<#else>
<h1 class="text-center text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white" style="text-align: center; font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -0.025em; color: #111827;">
${kcSanitize(kcSanitize(realmName!""))}
</h1>
</#if>
</td>
</tr>
</table>

View file

@ -1 +1,3 @@
parent=base
parent=base
headingLogoUrl=