hackatime/app/views/layouts/mailer.html.erb
Mahad Kalam d5d987a8f4
Email layout v2 (#1015)
* Better emails!

* Fix tests?

* bit o' cleanup

* add rant

* pt2

* pt3

* Update tests

* oop

* man what on earth

* ffs!!!!!

* Revert "ffs!!!!!"

This reverts commit b58bfed0f4c6288e95d0a111aeb3d7d7900ac9e7.

* Revert "man what on earth"

This reverts commit 8752cc2200eb3b852ea545d10ccbd555ab09d2b4.

* Revert "Fix tests?"

This reverts commit 810ebde73376ff7da0595e6b927f1b464d62b4a4.

* Ignore external Google Fonts link in premailer
2026-03-01 07:18:24 +00:00

38 lines
1.3 KiB
Text

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Spline+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" data-premailer="ignore">
<%= stylesheet_link_tag "mailer" %>
</head>
<body class="m-0 p-0 bg-gray-50 text-gray-900 text-base leading-relaxed" style="font-family: 'Spline Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;">
<div class="w-full py-5 px-5 mx-auto max-w-[600px]">
<table width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
<thead>
<tr>
<th class="text-left font-normal">
<%= render "layouts/mailer/header" %>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="px-4 pt-2 pb-6">
<%= yield %>
</div>
</td>
</tr>
<tr>
<td>
<div class="px-4 py-5 text-center text-xs text-gray-400">
<p class="my-1">15 Falls Road, Shelburne, VT 05482, United States</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>