Add the logo and the web wordmark colors to e-mails
CI / Deploy / PHP 8.5 (push) Successful in 1m6s
CI / Deploy / PHP 8.4 (push) Successful in 1m10s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped

The HTML layout now shows the logo (inline CID attachment, generated with
the favicon script) before "Plenar" in the text color and "IO" in the primary
color, like the site header. Muted gray and background match the web tokens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-16 15:08:13 +01:00
1 parent 8262411225
commit 72b688186f
9 files changed
+96 -11

No files matched your search

+18 -3
View File
@@ -1,17 +1,32 @@
<?php
/**
* HTML mail layout. Colors mirror the web tokens in webroot/css/plenario.css (light theme):
* --bg #f5f6fb, --surface #fff, --text #1d1f33, --muted #5d6280, --primary #4b3fe0.
* Inline styles and a table for the brand row: mail clients ignore stylesheets and flexbox.
*
* @var \App\View\AppView $this
*/
use App\Mailer\PollMailer;
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="color-scheme" content="light">
<title><?= $this->fetch('title') ?></title>
</head>
<body style="margin:0;padding:24px;background:#f4f5fb;font-family:Segoe UI,Helvetica,Arial,sans-serif;color:#1d1f33;">
<div style="max-width:560px;margin:0 auto;background:#ffffff;border-radius:12px;padding:32px;">
<p style="margin:0 0 24px;font-size:20px;font-weight:700;color:#4b3fe0;">PlenarIO</p>
<body style="margin:0;padding:24px;background:#f5f6fb;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#1d1f33;">
<div style="max-width:560px;margin:0 auto;background:#ffffff;border-radius:12px;padding:32px;color:#1d1f33;">
<table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin:0 0 24px;">
<tr>
<td style="padding:0 10px 0 0;vertical-align:middle;">
<img src="cid:<?= PollMailer::LOGO_CID ?>" width="32" height="32" alt="" style="display:block;border:0;border-radius:8px;">
</td>
<td style="vertical-align:middle;font-size:20px;font-weight:800;line-height:1;color:#1d1f33;">Plenar<span style="color:#4b3fe0;">IO</span></td>
</tr>
</table>
<?= $this->fetch('content') ?>
</div>
</body>