using System;
namespace ManagerService.EmailTemplates
{
///
/// Shared HTML shell for all transactional emails — MyInfoMate branding
/// (cyan #0df2df header, dark logo band, white content card).
///
public static class EmailLayout
{
public static string Render(string title, string bodyHtml, string ctaText = null, string ctaUrl = null)
{
var ctaHtml = "";
if (!string.IsNullOrEmpty(ctaText) && !string.IsNullOrEmpty(ctaUrl))
{
ctaHtml = $@"
";
}
return $@"
|
MyInfoMate
|
{title}
{bodyHtml}
{ctaHtml}
|
|
MyInfoMate — {DateTime.UtcNow.Year}
|
|
";
}
}
}