mitodl / ol-keycloak

Custom theme and extensions for Keycloak SSO
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Style email templates to match mockups #49

Closed rhysyngsun closed 3 months ago

rhysyngsun commented 3 months ago

What are the relevant tickets?

Closes #48

Description (What does it do?)

Adds email templates for the following:

Screenshots (if appropriate):

aNe8z5usdpjXTLCX3A6DEa NtP7KYn5mVdEVdbWfVyPbD

How can this be tested?

Additional Context

Writing HTML emails that look good across all email clients is a headache. In the past dealing with this has been to copy/paste a static template someone has put up somewhere, but for this effort I pulled in the tool mjml, which gives you a very lightweight markup syntax that the tool transforms into a full html email. This has the tradeoff of not being able to nested FTL templates, because the tool can't convert partial files, but I think that's a net win. This tool appears to be the industry standard these days for generating well styled html emails and is maintained by the email marketing platform Mailjet so I don't think it's going anywhere anytime soon.

I also added a github action that verifies there's no changes to the MJML templates that haven't been compiled and committed.