aboutsummaryrefslogtreecommitdiff
path: root/newsletter/templates/mailing.hbs
blob: d1c8cf4972b4176de3ba7d3d7a62fa5562cf8987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>

  <head>
    <title>{{ title }}</title>
  </head>

  <body style="background: #f2f2f2; padding: 60px; color: #222222; line-height: 22px; font-family: sans-serif, system-ui, -apple-system; font-size: 16px;">

    <div style="width: 650px; background: #ffffff; text-align: left; padding: 40px; margin: 0 auto; border-radius: 10px;">

      {{#each campaign.categories}}
        {{#each this.links}}
          <div style="margin-bottom: 30px;">
            <a href="{{this.url}}" style="color: #3252a8; font-weight: bold;">{{this.title}}</a>
            <div style="margin-block-start: 5px; font-size: 90%;">{{this.excerpt}}</div>
            <div>
              {{#each this.tags}}
                <span style="background: #e6e6e6;
                  color: #777;
                  border-radius: 3px;
                  padding: 0px 10px;
                  font-size: 70%;
                  display: inline-block;
                  margin-top: 5px;
                  font-weight: 600;">{{.}}</span>
              {{/each}}
            </div>
          </div>
        {{/each}}
      {{/each}}

    </div>

    <div style="text-align: center; font-size: 80%; margin-top: 20px;">
      <a style="color: #666; margin: auto 10px" href="https://mitjafelicijan.com/weekly-newsletter-archive/">weekly links archive</a>
      <a style="color: #666; margin: auto 10px" href="https://mitjafelicijan.com">mitjafelicijan.com</a>
      <a style="color: #666; margin: auto 10px" href="https://github.com/mitjafelicijan">github.com/mitjafelicijan</a>
    </div>

  </body>

</html>